re,

Paul Hampson [EMAIL PROTECTED] wrote:
> > From: Alex Kasatkin
> > Sent: Thursday, 11 September 2003 12:16 AM
> 
> > Paul Hampson [EMAIL PROTECTED] wrote:
> 
> > [skipped]
> > > What's c_r? Is that where the ghostby{addr,name}_r stuff lives? I guess that 
> > > could be detected as
> > > a required library for the gethostby{addr,name}_r function-using modules 
> > > (hopefully just libradius)
> 
> > AFAIR it's threaded c library.
> 
> > man 3 pthread_create
> > 
> > NAME
> >      pthread_create - create a new thread
> > 
> > LIBRARY
> >      Reentrant C Library (libc_r, -pthread)
> 
> Is this a FreeBSD-only thing?

AFAIK OpenBSD has it too, not sure about NetBSD.

> If you run
> CFLAGS=-lc_r ./configure {etc}
> what types get detected for gethostby{addr,name}_r? It _might_ be worth having
> an extra check for that once we know what style is in the library.

dev:~/freeradius-0.9.1# setenv CFLAGS -lc_r ; ./configure ... blablabla.

checking whether the C compiler (gcc -lc_r -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE 
-DNDEBUG ) works... yes
checking whether the C compiler (gcc -lc_r -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE 
-DNDEBUG ) is a cross-compiler... no
...
checking gethostbyaddr_r() syntax... GNU-style
checking gethostbyname_r() syntax... configure: warning:  ****** BSD Style 
gethostbyname might NOT be thread-safe! ******
BSD-style



configure:7978: checking gethostbyaddr_r() syntax
configure:7990: gcc -o conftest -lc_r -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE 
-DNDEBUG   conftest.c  1>&5
configure: In function `main':
configure:7986: warning: implicit declaration of function `gethostbyaddr_r'
configure:8068: checking gethostbyname_r() syntax
configure:8080: gcc -o conftest -lc_r -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE 
-DNDEBUG   conftest.c  1>&5
configure: In function `main':
configure:8076: warning: implicit declaration of function `gethostbyname_r'
/tmp/ccPdZdUM.o: In function `main':
/tmp/ccPdZdUM.o(.text+0x16): undefined reference to `gethostbyname_r'
configure: failed program was:
#line 8070 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <netdb.h>

int main() {
 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
; return 0; }
configure:8106: gcc -o conftest -lc_r -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE 
-DNDEBUG   conftest.c  1>&5
configure: In function `main':
configure:8102: warning: implicit declaration of function `gethostbyname_r'
/tmp/ccEe8ds7.o: In function `main':
/tmp/ccEe8ds7.o(.text+0x14): undefined reference to `gethostbyname_r'
configure: failed program was:
#line 8096 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <netdb.h>

int main() {
 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
; return 0; }
configure:8133: gcc -o conftest -lc_r -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE 
-DNDEBUG   conftest.c  1>&5


> 
> --
> =========================================================
> Paul "TBBle" Hampson
> Bubblesworth Pty Ltd (ABN: 51 095 284 361)
> [EMAIL PROTECTED]
> 
> This is a one line proof...if we start
> sufficiently far to the left.
>       -- Cambridge University Math Department
> ---------------------------------------------------------
> Random signature generator 3.0 by Paul "TBBle" Hampson
> =========================================================
> 
> 
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-- 
S.N.O.O.P.: Synthetic Networked Organism Optimized for Peacekeeping

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to