Bug#332313: autoconf-archive: acx_pthread.m4 doesn't work

2005-11-24 Thread Lennart Poettering
On Tue, 22.11.05 16:16, Steven G. Johnson ([EMAIL PROTECTED]) wrote:

 
 On Mon, 21 Nov 2005, Qingning Huo wrote:
 acx_pthread.m4 doesn't work. It detects -pthread as sufficient as
 CFLAGS, which is not correct on my machine. You need -lthread
 too. Shuffling the order of the variable acx_pthread_flags so that
 
 I'm guessing that the reporter is not using the macro correctly.
 
 As is clearly described in the documentation for this macro, it expects 
 you to use the $CFLAGS for *both* compiling *and* linking.  If you do 
 this, then gcc should automatically link -lthread when you pass -pthread 
 during linking.

Mea Culpa! I modified my Makefile.ams now according to your
suggestion and it works indeed. Sorry for the confusion! 

I guess this bug can be closed now!

Lennart

-- 
Lennart Poettering; lennart [at] poettering [dot] de
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#332313: autoconf-archive: acx_pthread.m4 doesn't work

2005-11-22 Thread Steven G. Johnson

On Mon, 21 Nov 2005, Qingning Huo wrote:

acx_pthread.m4 doesn't work. It detects -pthread as sufficient as
CFLAGS, which is not correct on my machine. You need -lthread
too. Shuffling the order of the variable acx_pthread_flags so that


I'm guessing that the reporter is not using the macro correctly.

As is clearly described in the documentation for this macro, it expects 
you to use the $CFLAGS for *both* compiling *and* linking.  If you do 
this, then gcc should automatically link -lthread when you pass -pthread 
during linking.


Cordially,
Steven G. Johnson


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#332313: autoconf-archive: acx_pthread.m4 doesn't work

2005-11-22 Thread Qingning Huo
On Tue, Nov 22, 2005 at 04:16:38PM -0500, Steven G. Johnson wrote:
 On Mon, 21 Nov 2005, Qingning Huo wrote:
 acx_pthread.m4 doesn't work. It detects -pthread as sufficient as
 CFLAGS, which is not correct on my machine. You need -lthread
 too. Shuffling the order of the variable acx_pthread_flags so that
 
 I'm guessing that the reporter is not using the macro correctly.
 
 As is clearly described in the documentation for this macro, it expects 
 you to use the $CFLAGS for *both* compiling *and* linking.  If you do 
 this, then gcc should automatically link -lthread when you pass -pthread 
 during linking.
 
 Cordially,
 Steven G. Johnson
 

Hi Steven,

Many thanks for your feedback.

Lennart, can you confirm your situation, and whether using $CFLAGS when
linking solves the problem?

Thanks,
Qingning


signature.asc
Description: Digital signature


Bug#332313: autoconf-archive: acx_pthread.m4 doesn't work

2005-11-21 Thread Qingning Huo
[I am copying the mail to the author of acx_pthread.m4: Steven G.
Johnson].

On Wed, Oct 05, 2005 at 09:28:38PM +0200, Lennart Poettering wrote:
 Package: autoconf-archive
 Version: 20050920-1
 Severity: normal
 
 acx_pthread.m4 doesn't work. It detects -pthread as sufficient as
 CFLAGS, which is not correct on my machine. You need -lthread
 too. Shuffling the order of the variable acx_pthread_flags so that
 pthread comes before -pthread fixes the problem for me. But I guess
 this isn't the whole story, since -pthread is no longer passed when I
 do that. Probably both -pthread and -lpthread should be defined.
 
 Lennart
  

Hi,

Many thanks for the bug report.  Can you tell us on what platform this
problem is spotted?

Thanks,
Qingning


signature.asc
Description: Digital signature


Bug#332313: autoconf-archive: acx_pthread.m4 doesn't work

2005-10-05 Thread Lennart Poettering
Package: autoconf-archive
Version: 20050920-1
Severity: normal

acx_pthread.m4 doesn't work. It detects -pthread as sufficient as
CFLAGS, which is not correct on my machine. You need -lthread
too. Shuffling the order of the variable acx_pthread_flags so that
pthread comes before -pthread fixes the problem for me. But I guess
this isn't the whole story, since -pthread is no longer passed when I
do that. Probably both -pthread and -lpthread should be defined.

Lennart
 
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

autoconf-archive depends on no packages.

Versions of packages autoconf-archive recommends:
ii  autoconf  2.59a-4automatic configure script builder

-- no debconf information

-- 
Lennart Poettering; lennart [at] poettering [dot] de
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/


signature.asc
Description: Digital signature