Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-25 Thread Carlos A. M. dos Santos
On Wed, 24 Jan 2001, Maxim Sobolev wrote: It's not a very accurate estimate, as the magic can be in the distfile itself, i.e. properly written configure script or makefile may know that FreeBSD need a -pthread and -D_THREAD_SAFE. For some unknown reason, math.h needs _REENTRANT in

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Maxim Sobolev
"Daniel M. Eischen" wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked together via -lc_r. If you're running -current and have any threaded apps built using libc_r.so.5, you'll need to rebuild them without the -pthread option

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Jason Evans
On Wed, Jan 24, 2001 at 03:37:24PM +0200, Maxim Sobolev wrote: "Daniel M. Eischen" wrote: For porters, the __FreeBSD_version has been bumped to 500016 to reflect the above change. Could you please bump version number of libc/libc_r shared libraries, so the programs linked with older

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Daniel Eischen
On Wed, 24 Jan 2001, Maxim Sobolev wrote: "Daniel M. Eischen" wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked together via -lc_r. If you're running -current and have any threaded apps built using libc_r.so.5, you'll

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Maxim Sobolev
Daniel Eischen wrote: On Wed, 24 Jan 2001, Maxim Sobolev wrote: "Daniel M. Eischen" wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked together via -lc_r. If you're running -current and have any threaded apps built

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Alfred Perlstein
* Daniel M. Eischen [EMAIL PROTECTED] [010124 05:26] wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked together via -lc_r. If you're running -current and have any threaded apps built using libc_r.so.5, you'll need to rebuild

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Daniel Eischen
On Wed, 24 Jan 2001, Alfred Perlstein wrote: * Daniel M. Eischen [EMAIL PROTECTED] [010124 05:26] wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked together via -lc_r. If you're running -current and have any threaded apps

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Jordan Hubbard
What's not clear ;-) Use -lc_r instead of -pthread. gcc -Wall -o foo foo.c -lc_r The old way was: gcc -Wall -D_THREAD_SAFE -o foo foo.c -pthread H. And does the -pthread argument do anything anymore? If not, why not have it default to simply linking in libc_r for

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Daniel Eischen
On Wed, 24 Jan 2001, Jordan Hubbard wrote: What's not clear ;-) Use -lc_r instead of -pthread. gcc -Wall -o foo foo.c -lc_r The old way was: gcc -Wall -D_THREAD_SAFE -o foo foo.c -pthread H. And does the -pthread argument do anything anymore? If not, why not

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Dan Nelson
In the last episode (Jan 24), Daniel Eischen said: On Wed, 24 Jan 2001, Alfred Perlstein wrote: * Daniel M. Eischen [EMAIL PROTECTED] [010124 05:26] wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked together via -lc_r. If

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Alfred Perlstein
* Dan Nelson [EMAIL PROTECTED] [010124 10:32] wrote: In the last episode (Jan 24), Daniel Eischen said: On Wed, 24 Jan 2001, Alfred Perlstein wrote: * Daniel M. Eischen [EMAIL PROTECTED] [010124 05:26] wrote: As discussed a few days ago, I've just committed the changes to libc and

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Maxim Sobolev
Dan Nelson wrote: In the last episode (Jan 24), Daniel Eischen said: On Wed, 24 Jan 2001, Alfred Perlstein wrote: * Daniel M. Eischen [EMAIL PROTECTED] [010124 05:26] wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow them to be linked

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Daniel Eischen
On Wed, 24 Jan 2001, Dan Nelson wrote: In the last episode (Jan 24), Daniel Eischen said: On Wed, 24 Jan 2001, Alfred Perlstein wrote: * Daniel M. Eischen [EMAIL PROTECTED] [010124 05:26] wrote: As discussed a few days ago, I've just committed the changes to libc and libc_r to allow

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Dan Nelson
In the last episode (Jan 24), Maxim Sobolev said: Dan Nelson wrote: I thought the old way was just -pthread, and it would handle everything. I did a quick scan of the devel/ and net/ branches of our ports tree, and of 43 thread-using ports, 36 of the ports simply add -pthread. Only 7

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Maxim Sobolev
Dan Nelson wrote: In the last episode (Jan 24), Maxim Sobolev said: Dan Nelson wrote: I thought the old way was just -pthread, and it would handle everything. I did a quick scan of the devel/ and net/ branches of our ports tree, and of 43 thread-using ports, 36 of the ports simply

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Warner Losh
In message [EMAIL PROTECTED] Alfred Perlstein writes: : -D_THREAD_SAFE used to (or still does) make various foo_r function : prototypes available. Currently it does not do this. The foo_r prototypes are always available. Well, when we aren't compiling _ANSI_SOURCE or _POSIX_SOURCE. Dan was

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Craig Hawco
On Wed, 24 Jan 2001, Daniel Eischen wrote: Using -pthread will prevent linking to libc and only link to libc_r. After the change I just committed, you need to link to both libc_r and libc (in that order), just like you would for a threaded application on just about any other OS (only

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Garrett Rooney
On Wed, Jan 24, 2001 at 07:07:20PM -0400, Craig Hawco wrote: On Wed, 24 Jan 2001, Daniel Eischen wrote: Using -pthread will prevent linking to libc and only link to libc_r. After the change I just committed, you need to link to both libc_r and libc (in that order), just like you

Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps

2001-01-24 Thread Craig Hawco
On Wed, 24 Jan 2001, Garrett Rooney wrote: On Wed, Jan 24, 2001 at 07:07:20PM -0400, Craig Hawco wrote: On Wed, 24 Jan 2001, Daniel Eischen wrote: Using -pthread will prevent linking to libc and only link to libc_r. After the change I just committed, you need to link to