Hi,

Try: --without-threads

Regards

Alex Kasatkin escreveu:
Hi!

There is the problem with gethostbyname detection in 0.9.1:

dev:~/freeradius-0.9.1# uname -prs
FreeBSD 4.8-RELEASE-p4 i386

configure says:

checking gethostbyaddr_r() syntax... GNU-style
checking gethostbyname_r() syntax... configure: warning:  ****** BSD Style 
gethostbyname might NOT be thread-safe! ******
BSD-style

config.log:

configure:7978: checking gethostbyaddr_r() syntax
configure:7990: gcc -o conftest -g -O2 -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 -g -O2 -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/ccuKg0wk.o: In function `main':
/home/snoop/freeradius-0.9.1/configure(.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 -g -O2 -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/ccoZBWNY.o: In function `main':
/home/snoop/freeradius-0.9.1/configure(.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 -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG   
conftest.c  1>&5


Building fails at this point:


gcc  -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG  -I../../include 
-DHAVE_NDBM_H -c rlm_dbm_parser.c -o rlm_dbm_parser.o
rlm_dbm_parser.c: In function `storecontent':
rlm_dbm_parser.c:160: warning: assignment discards qualifiers from pointer target type
/vol1/home/snoop/freeradius-0.9.1/libtool --mode=link gcc rlm_dbm_parser.o 
../../lib/libradius.a   -o rlm_dbm_parser
gcc rlm_dbm_parser.o -o rlm_dbm_parser  ../../lib/libradius.a
../../lib/libradius.a(misc.o): In function `ip_hostname':
/vol1/home/snoop/freeradius-0.9.1/src/lib/misc.c:63: undefined reference to 
`gethostbyaddr_r'

When I've add -lc_r, rlm_dbm_parser links normally, but with some warnings.

There is the bug or feature ?

regards.

P.S. radwho hangs with same error too.



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

Reply via email to