Building FreeRadius 2.0 on Mac OS X fails

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Mon Jan 21 14:25:03 CET 2008


Walter Krivanek, VividVisions wrote:
> Hi,
>
> I'm trying to build the current version of freeradius on my Mac OS X 
> 10.5 Intel 64bit computer.
>
> First, I have troubles with the configure script. Even if I show the 
> script my exact location of the MySQL include files using 
> --with-mysql-include-dir and similar, I'm getting warnings that 
> mysql.h has not been found and that the MySQL module will be disabled. 
> BTW: This also happens on my Debian server, where MySQL is installed 
> in the standard directories.
>
> Then, when running make, I'm getting the following error:
> ranlib: archive member: .libs/rlm_perl.a(DynaLoader.a) fat file for 
> cputype (18) cpusubtype (0) is not an object file (bad magic number)
> ar: internal ranlib command failed
>
> Any thoughts?
>
> Thanks for your help!
> Walter
>
> ------------------------------------------------------------------------
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
CVS head fails at

_tls.c
 gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DDARWIN -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/usr/local/src/freeradius-cvscurrent/src 
-I/usr/local/src/freeradius-cvscurrent/libltdl -I../.. -I../../libeap 
-DOPENSSL_NO_KRB5 -c rlm_eap_tls.c  -fno-common -DPIC -o .libs/rlm_eap_tls.o
 gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DDARWIN -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/usr/local/src/freeradius-cvscurrent/src 
-I/usr/local/src/freeradius-cvscurrent/libltdl -I../.. -I../../libeap 
-DOPENSSL_NO_KRB5 -c rlm_eap_tls.c -o rlm_eap_tls.o >/dev/null 2>&1
/usr/local/src/freeradius-cvscurrent/libtool --mode=link gcc -release 
2.0.1-pre \
    -module -export-dynamic   -o rlm_eap_tls.la     \
    -rpath /usr/local/freeradius-cvs210108/lib rlm_eap_tls.lo 
rlm_eap_tls.c 
/usr/local/src/freeradius-cvscurrent/src/lib/libfreeradius-radius.la 
../../libeap/libfreeradius-eap.la -lcrypto -lssl -lcrypto -framework 
DirectoryService -lresolv  -lpthread
rm -fr  .libs/rlm_eap_tls.a .libs/rlm_eap_tls.la .libs/rlm_eap_tls.lai 
.libs/rlm_eap_tls.so
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o 
.libs/rlm_eap_tls-2.0.1-pre.so -bundle  .libs/rlm_eap_tls.o  
/usr/local/src/freeradius-cvscurrent/src/lib/.libs/libfreeradius-radius.dylib 
../../libeap/.libs/libfreeradius-eap.dylib -lssl -lcrypto -lresolv 
-lpthread -framework DirectoryService
ld: file not found: 
/usr/local/freeradius-cvs100108/lib/libfreeradius-radius-2.0.0-beta.dylib
collect2: ld returned 1 exit status
make[9]: *** [rlm_eap_tls.la] Error 1

Can confirm the other two issues on stable 2.0.0.

*** Warning: Linking the shared library rlm_perl.la against the
*** static library 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a 
is not portable!
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o 
.libs/rlm_perl-2.0.0.so -bundle  .libs/rlm_perl.o  
/usr/local/src/freeradius-server-2.0.0/src/lib/.libs/libfreeradius-radius.dylib 
-L/usr/local/lib 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a 
-L/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -lperl -ldl 
-lm -lutil -lc -lresolv -lpthread -arch i386 -arch ppc -framework 
DirectoryService
ld: warning in 
/usr/local/src/freeradius-server-2.0.0/src/lib/.libs/libfreeradius-radius.dylib, 
file is not of required architecture
(cd .libs && rm -f rlm_perl.so && ln -s rlm_perl-2.0.0.so rlm_perl.so)
ar cru .libs/rlm_perl.a 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a  
rlm_perl.o 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
ranlib: archive member: .libs/rlm_perl.a(DynaLoader.a) fat file for 
cputype (18) cpusubtype (0) is not an object file (bad magic number)
ar: internal ranlib command failed
make[6]: *** [rlm_perl.la] Error 1
make[5]: *** [common] Error 2
make[4]: *** [all] Error 2
make[3]: *** [common] Error 2
make[2]: *** [all] Error 2
make[1]: *** [common] Error 2
make: *** [all] Error 2




-- 
Arran Cudbard-Bell (A.Cudbard-Bell at sussex.ac.uk)
Authentication, Authorisation and Accounting Officer
Infrastructure Services | ENG1 E1-1-08 
University Of Sussex, Brighton
EXT:01273 873900 | INT: 3900




More information about the Freeradius-Users mailing list