On Thu, 2004-02-19 at 15:32, Alan DeKok wrote:
>   You shouldn't need any packages, other than standard compilation
> tools.  The basic RADIUS functionality is pretty self-contained.

OK, then i guess something on my system is totally buggered.

Here is the last bit of the make. This was done using configure without
any params

-----------------------------------------------------
creating .libs/radiusdS.c
(cd .libs && gcc -c -fno-builtin -fno-rtti -fno-exceptions "radiusdS.c")
rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT
gcc .libs/radiusdS.o -g -O2 -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow 
-Wpointer-arith -Wcast-qual -Wcast-align
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -W -Wredundant-decls -Wundef -I../include -DHOSTINFO=\"\" 
-DRADIUSD_VERSION=\"1.0.0-pre0\" -o .libs/radiusd radiusd.o files.o util.o acct.o 
nas.o log.o valuepair.o version.o proxy.o exec.o auth.o timestr.o conffile.o modules.o 
modcall.o session.o xlat.o threads.o smux.o radius_snmp.o client.o request_list.o 
mainconfig.o -Wl,--export-dynamic  -L/home/devillj/bbjcvs/freeradius/radiusd/src/lib 
-lcrypt -lnsl -lresolv 
/home/devillj/bbjcvs/freeradius/radiusd/src/lib/.libs/libradius.so /usr/lib/libltdl.so 
-ldl -Wl,--rpath -Wl,/usr/local/lib
threads.o(.text+0x72): In function `request_enqueue':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:242: undefined reference to 
`sem_post'
threads.o(.text+0x291): In function `request_handler_thread':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:414: undefined reference to 
`sem_wait'
threads.o(.text+0x5cc): In function `spawn_thread':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:581: undefined reference to 
`pthread_create'
threads.o(.text+0x73f): In function `thread_pool_init':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:695: undefined reference to 
`sem_init'
threads.o(.text+0xa4b): In function `thread_pool_clean':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:903: undefined reference to 
`sem_post'
threads.o(.text+0xa64):/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:882: 
undefined reference to `sem_post'
threads.o(.text+0xc45): In function `rad_fork':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:1058: undefined reference 
to `sem_init'
threads.o(.text+0xc93):/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:1029:
 undefined reference to `sem_destroy'
threads.o(.text+0xd13): In function `rad_waitpid':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:1131: undefined reference 
to `sem_wait'
threads.o(.text+0xd36):/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:1144:
 undefined reference to `sem_destroy'
threads.o(.text+0xd67):/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:1125:
 undefined reference to `sem_trywait'
threads.o(.text+0xde0): In function `rad_savepid':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/threads.c:1189: undefined reference 
to `sem_post'
request_list.o(.text+0x54a): In function `refresh_request':
/home/devillj/bbjcvs/freeradius/radiusd/src/main/request_list.c:494: undefined 
reference to `pthread_cancel'
collect2: ld returned 1 exit status
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory `/home/devillj/bbjcvs/freeradius/radiusd/src/main'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/home/devillj/bbjcvs/freeradius/radiusd/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/devillj/bbjcvs/freeradius/radiusd/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/home/devillj/bbjcvs/freeradius/radiusd'
make: *** [all] Error 2
----------------------------------------------------
This seems to have something to do with threads ( or semaphores ), so i checked out 
the configure results
and noticed the following
checking for pthread.h... yes
checking for pthread_create in -lpthread... no
checking for pthread_create in -lc_r... no
... and also
checking for resource.h... no
although i know that file is present
/usr/include/asm/resource.h
/usr/include/linux/resource.h
/usr/include/bits/resource.h
/usr/include/sys/resource.h



Ideas ?

John


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

Reply via email to