error compiling freeradius-1.1.0 on fedora core three
hello all, first time posting tothe list. i'm trying to compile freeradius-1.1.0 from source on a proliant ml350 with dual pentium III's. the box is running fedora core 3, kernel 2.6.12-1.1381_FC3smp, gcc 3.4.4 although configure goes off without a hitch the compile bombs out after three minutes with the following error: gmake[7]: Entering directory `/root/freeradius-1.1.0/src/modules/ rlm_otp/cardops' gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I/usr -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 -I/usr -DOTP_MODULE_NAME="rlm_otp" -DFREERADIUS / usr -c cryptocard.c -o cryptocard.o gcc: /usr: linker input file unused because linking not done cc1: /usr: No such file or directory gmake[7]: *** [cryptocard.o] Error 1 gmake[7]: Leaving directory `/root/freeradius-1.1.0/src/modules/ rlm_otp/cardops' gmake[6]: *** [cardops/cryptocard.lo] Error 2 gmake[6]: Leaving directory `/root/freeradius-1.1.0/src/modules/rlm_otp' gmake[5]: *** [common] Error 2 gmake[5]: Leaving directory `/root/freeradius-1.1.0/src/modules' gmake[4]: *** [all] Error 2 gmake[4]: Leaving directory `/root/freeradius-1.1.0/src/modules' gmake[3]: *** [common] Error 2 gmake[3]: Leaving directory `/root/freeradius-1.1.0/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/root/freeradius-1.1.0/src' gmake[1]: *** [common] Error 2 gmake[1]: Leaving directory `/root/freeradius-1.1.0' make: *** [all] Error 2 a google search revealed that an 'if defined' statement in this doc 'src/modules/rlm_otp/otp_state.c' of the source package was incorrect: #if defined(__linux__) || defined(__APPLE__) #include <sys/un.h> #endif and should be changed to: #ifdef HAVE_SYS_UN_H #include <sys/un.h> #endif to fix the compile problem. i've made the correction but i still get the same compile error. my 'c' programming is a little rusty. is there anyone who can suggest what further steps i should take to try and debug this? thanx in advance. any help will be greatly appreciated. ax :-) Tony Alexander System Administrator Center for Biodiversity and Conservation American Museum of Natural History Central Park West at 79th Street New York, NY 10024 Phone: 212 496 3474 Fax: 212 769 5292 Mobile: 917 548 0560 http://cbc.amnh.org
Tony Alexander <axx@amnh.org> wrote:
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I/usr -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 -I/usr -DOTP_MODULE_NAME="rlm_otp" -DFREERADIUS / usr -c cryptocard.c -o cryptocard.o gcc: /usr: linker input file unused because linking not done
Where the heck is the reference to /usr coming from? It looks to me like something on your system is very broken. Alan DeKok.
On Jan 25, 2006, at 1:22 PM, Alan DeKok wrote:
Tony Alexander <axx@amnh.org> wrote:
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -I/usr -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 -I/usr -DOTP_MODULE_NAME="rlm_otp" -DFREERADIUS / usr -c cryptocard.c -o cryptocard.o gcc: /usr: linker input file unused because linking not done
Where the heck is the reference to /usr coming from?
alan, not sure. it's a stock fc3 install from iso images, i've made no modifications to the system.
It looks to me like something on your system is very broken.
i'll have to check deeper. thanx for the reply. ax :-)
participants (2)
-
Alan DeKok -
Tony Alexander