Hiya guys. I'm having an odd error when compiling FreeRadius on my Gentoo machine (using the Gentoo emerge package system).

The error occurs when trying to compile the rlm_unix module. Here's the full output from this:




Making static dynamic in rlm_unix...
gmake[6]: Entering directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules/rlm_unix'
gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c rlm_unix.c -o rlm_unix.o
rlm_unix.c: In function `groupcmp':
rlm_unix.c:194: warning: unused parameter `req'
rlm_unix.c: In function `unix_instantiate':
rlm_unix.c:301: warning: cast discards qualifiers from pointer target type
rlm_unix.c:303: warning: cast discards qualifiers from pointer target type
rlm_unix.c:305: warning: cast discards qualifiers from pointer target type
rlm_unix.c:307: warning: cast discards qualifiers from pointer target type
rlm_unix.c: In function `unix_detach':
rlm_unix.c:346: warning: cast discards qualifiers from pointer target type
rlm_unix.c:348: warning: cast discards qualifiers from pointer target type
rlm_unix.c:350: warning: cast discards qualifiers from pointer target type
rlm_unix.c:352: warning: cast discards qualifiers from pointer target type
rlm_unix.c: In function `unix_accounting':
rlm_unix.c:715: warning: comparison between signed and unsigned
gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c cache.c -o cache.o
gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c compat.c -o compat.o
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=link ld \
-module -static -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include rlm_unix.o cache.o compat.o -o rlm_unix.a
mkdir .libs
ar cru rlm_unix.a rlm_unix.o cache.o compat.o
ranlib rlm_unix.a
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=compile gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c rlm_unix.c
gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c rlm_unix.c -fPIC -DPIC -o rlm_unix.lo
rlm_unix.c: In function `groupcmp':
rlm_unix.c:194: warning: unused parameter `req'
rlm_unix.c: In function `unix_instantiate':
rlm_unix.c:301: warning: cast discards qualifiers from pointer target type
rlm_unix.c:303: warning: cast discards qualifiers from pointer target type
rlm_unix.c:305: warning: cast discards qualifiers from pointer target type
rlm_unix.c:307: warning: cast discards qualifiers from pointer target type
rlm_unix.c: In function `unix_detach':
rlm_unix.c:346: warning: cast discards qualifiers from pointer target type
rlm_unix.c:348: warning: cast discards qualifiers from pointer target type
rlm_unix.c:350: warning: cast discards qualifiers from pointer target type
rlm_unix.c:352: warning: cast discards qualifiers from pointer target type
rlm_unix.c: In function `unix_accounting':
rlm_unix.c:715: warning: comparison between signed and unsigned
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=compile gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c cache.c
gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c cache.c -fPIC -DPIC -o cache.lo
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=compile gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c compat.c
gcc -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c compat.c -fPIC -DPIC -o compat.lo
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=link gcc -release 1.0.1 \
-module -export-dynamic -pipe -O3 -march=pentium3 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include \
-o rlm_unix.la -rpath /usr/lib rlm_unix.lo cache.lo compat.lo -lcrypt -lshadow -lnsl -lresolv -lpthread -lcrypto -lssl
rm -fr .libs/rlm_unix.la .libs/rlm_unix.* .libs/rlm_unix-1.0.1.*
gcc -shared rlm_unix.lo cache.lo compat.lo -Wl,--whole-archive /usr/lib/libshadow.a -Wl,--no-whole-archive -lcrypt /usr/lib/libshadow.a -lnsl -lresolv -lpthread -lcrypto -lssl -Wl,-soname -Wl,rlm_unix-1.0.1.so -o .libs/rlm_unix-1.0.1.so
/usr/lib/libshadow.a: member /usr/lib/libshadow.a(libmisc.a) in archive is not an object
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_unix.la] Error 1
gmake[6]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules/rlm_unix'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1'
make: *** [all] Error 2


!!! ERROR: net-dialup/freeradius-1.0.1 failed.
!!! Function src_compile, Line 83, Exitcode 2
!!! (no error message)



I'm not entirely sure why it's doing this. I assume there is something wrong with my libshadow? Some help would be greatly appreciated, as I'm not sure where to procede from here. Thanks.

-Ryan Bourgeois


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

Reply via email to