Hello!  I'm a new subscriber to the list, and I've been trying to compile
the latest freeradius release on Mac OS X Server.  I've got the December
2002 Dev. Tools installed, as well as the gcc 3.3 update (though 3.1 is my
default compiler).   Here's the error I'm getting:



Making static dynamic in rlm_dbm...
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-DNDEBUG  -I../../include -DHAVE_NDBM_H -c rlm_dbm.c -o rlm_dbm.o
rlm_dbm.c: In function `sm_parse_user':
rlm_dbm.c:172: warning: assignment discards qualifiers from pointer target
type
rlm_dbm.c:206: warning: passing arg 2 of `paircmp' discards qualifiers
from pointer target type
/Users/admin/Desktop/freeradius-0.9.0/libtool --mode=link ld \
-module -static  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall
-D_GNU_SOURCE -DNDEBUG  -I../../include -DHAVE_NDBM_H rlm_dbm.o -o
rlm_dbm.a 
mkdir .libs
ar cru rlm_dbm.a rlm_dbm.o  
ranlib rlm_dbm.a
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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
/Users/admin/Desktop/freeradius-0.9.0/libtool --mode=link gcc
rlm_dbm_parser.o ../../lib/libradius.a -lpthread   -o rlm_dbm_parser
gcc rlm_dbm_parser.o -o rlm_dbm_parser  ../../lib/libradius.a -lpthread
ld: Undefined symbols:
_gethostbyaddr_r
_gethostbyname_r
make[6]: *** [rlm_dbm_parser] Error 1
make[5]: *** [common] Error 1
make[4]: *** [all] Error 2
make[3]: *** [common] Error 1
make[2]: *** [all] Error 2
make[1]: *** [common] Error 1
make: *** [all] Error 2


I've been told that it looks like the include path for the header file
which contains prototype
definitions for the items _gethostbyaddr_r and _gethostbyname_r is wrong. 
Can anyone tell me what I need to change in the source to get this to
compile properly?  Thanks!
--
Josh Whitver
[EMAIL PROTECTED] / [EMAIL PROTECTED]



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

Reply via email to