Subject: freeradius fails to build
To: None <port-amiga@netbsd.org>
From: DataZap <az@datazap.net>
List: port-amiga
Date: 08/25/2007 21:11:20
Hi,

I would like to use freeradius with mysql support, but no matter what I do
it doesn't seem to finish the build.

Here is the error message:
creating .libs/radiusdS.c
(cd .libs && cc  -O2 -m68060 -I/usr/include -c -fno-builtin "radiusdS.c")
rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS
.libs/radiusd.nmT
cc .libs/radiusdS.o -Wl,-R/usr/local/lib -Wl,-R/usr/local/lib/mysql -o
.libs/radiusd .libs/acct.o .libs/auth.o .libs/client.o .libs/conffile.o
.libs/exec.o .libs/files
.o .libs/log.o .libs/mainconfig.o .libs/modules.o .libs/modcall.o
.libs/nas.o .libs/proxy.o .libs/radiusd.o .libs/radius_snmp.o
.libs/request_list.o .libs/session.o .l
ibs/smux.o .libs/threads.o .libs/util.o .libs/valuepair.o .libs/version.o
.libs/timestr.o .libs/xlat.o -Wl,--export-dynamic
-L/usr/pkgsrc/net/freeradius/work/.buildli
nk/lib -L/usr/pkgsrc/net/freeradius/work/.buildlink/lib/mysql -lresolv
../lib/.libs/libradius.so -lcrypt
/usr/pkgsrc/net/freeradius/work/.buildlink/lib/libltdl.so  -Wl
,--rpath -Wl,/usr/local/lib -Wl,--rpath
-Wl,/usr/pkgsrc/net/freeradius/work/.buildlink/lib
.libs/request_list.o: In function `refresh_request':
request_list.c:(.text+0xa9e): undefined reference to `pthread_cancel'
.libs/threads.o: In function `spawn_thread':
threads.c:(.text+0x238): undefined reference to `pthread_attr_init'
threads.c:(.text+0x244): undefined reference to
`pthread_attr_setdetachstate'
threads.c:(.text+0x25a): undefined reference to `pthread_create'
threads.c:(.text+0x26c): undefined reference to `pthread_attr_destroy'
.libs/threads.o: In function `thread_pool_clean':
threads.c:(.text+0x506): undefined reference to `sem_post'
threads.c:(.text+0x540): undefined reference to `sem_post'
.libs/threads.o: In function `thread_pool_addrequest':
threads.c:(.text+0x5ea): undefined reference to `sem_post'
threads.c:(.text+0x71a): undefined reference to `sem_post'
.libs/threads.o: In function `request_handler_thread':
threads.c:(.text+0x7b0): undefined reference to `sem_wait'
threads.c:(.text+0x7e8): undefined reference to `sem_wait'
.libs/threads.o: In function `thread_pool_init':
threads.c:(.text+0xa78): undefined reference to `sem_init'

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/net/freeradius/work/.gcc/bin/gcc .libs/radiusdS.o
-Wl,-R/usr/local/lib -Wl,-R/usr/local/lib/mysql -o .libs/radiusd
.libs/acct.o .libs/auth.o .libs/client.o
 .libs/conffile.o .libs/exec.o .libs/files.o .libs/log.o
.libs/mainconfig.o .libs/modules.o .libs/modcall.o .libs/nas.o
.libs/proxy.o .libs/radiusd.o .libs/radius_snmp
.o .libs/request_list.o .libs/session.o .libs/smux.o .libs/threads.o
.libs/util.o .libs/valuepair.o .libs/version.o .libs/timestr.o
.libs/xlat.o -Wl,--export-dynamic -
L/usr/pkgsrc/net/freeradius/work/.buildlink/lib
-L/usr/pkgsrc/net/freeradius/work/.buildlink/lib/mysql
../lib/.libs/libradius.so -Wl,--rpath,/usr/local/lib -I/usr/pkgs
rc/net/freeradius/work/.buildlink/include -lresolv -lcrypt -lltdl

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/local/bin/libtool --mode=link cc -export-dynamic -dlopen self
-L/usr/pkgsrc/net/freeradius/work/.buildlink/lib -Wl,-R/usr/local/lib
-L/usr/pkgsrc/net/freeradius/w
ork/.buildlink/lib/mysql -Wl,-R/usr/local/lib/mysql -o radiusd acct.lo
auth.lo client.lo conffile.lo exec.lo files.lo log.lo mainconfig.lo
modules.lo modcall.lo nas.lo
 proxy.lo radiusd.lo radius_snmp.lo request_list.lo session.lo smux.lo
threads.lo util.lo valuepair.lo version.lo timestr.lo xlat.lo -lresolv
../lib/libradius.la -lltd
l
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory
`/usr/pkgsrc/net/freeradius/work/freeradius-1.1.4/src/main'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory
`/usr/pkgsrc/net/freeradius/work/freeradius-1.1.4/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/usr/pkgsrc/net/freeradius/work/freeradius-1.1.4/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory
`/usr/pkgsrc/net/freeradius/work/freeradius-1.1.4'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/net/freeradius
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/freeradius
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/freeradius

Any ideas?

Thanks,
Al