On Mon, 28 Jul 2003 07:15:11 -0500 "Josh Whitver" <[EMAIL PROTECTED]> wrote:
> 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! That looks more like it isn't finding a library that has the relivant functions (ld is complaining).. not sure on the mac, but try adding -lsocket to the libraries. Have a mooch through the Makefile and look for the LIBS definition and try adding -lsocket to that. Sounds similar to the way solaris does it's socket stuff.. in seperate libraries :) not sure but you may need -lnsl too. BTW these are all just guesses from errors I have had with stuff in past on Solaris. hope it's of help -- ----- Graeme Hinchliffe (BSc) Core Team Member Zen Internet (http://www.zen.co.uk) ICQ 3842605 (link) Direct: 01706 900 212 Sales : 0870 6000 971 Fax : 0870 6000 972 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
