freeradius install on mac server help

Raymond Norton admin at lctn.org
Wed Mar 2 18:19:22 CET 2011


  I am trying to install freeradius-2.1.0 on a mac server (10.5.8). Make 
runs fine, until it gets to the errors below. I am not a mac guy, so not 
sure where to look for the cause of the error.




Making all in rlm_perl...
/usr/bin/make  -C rlm_perl all
/Users/raymond/Downloads/freeradius-server-2.1.10/libtool --mode=compile 
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DDARWIN -Wall 
-D_GNU_SOURCE -DNDEBUG 
-I/Users/raymond/Downloads/freeradius-server-2.1.10/src 
-I/Users/raymond/Downloads/freeradius-server-2.1.10/libltdl `perl 
-MExtUtils::Embed -e ccopts` -c rlm_perl.c
mkdir .libs
  gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DDARWIN -Wall 
-D_GNU_SOURCE -DNDEBUG 
-I/Users/raymond/Downloads/freeradius-server-2.1.10/src 
-I/Users/raymond/Downloads/freeradius-server-2.1.10/libltdl -arch ppc 
-arch i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp 
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include 
-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -c 
rlm_perl.c  -fno-common -DPIC -o .libs/rlm_perl.o
rlm_perl.c: In function 'rlm_perl_make_key':
rlm_perl.c:246: warning: passing argument 2 of 'pthread_key_create' from 
incompatible pointer type
rlm_perl.c: In function 'rlm_perl_make_key':
rlm_perl.c:246: warning: passing argument 2 of 'pthread_key_create' from 
incompatible pointer type
rlm_perl.c: In function 'perl_xlat':
rlm_perl.c:373: warning: format '%d' expects type 'int', but argument 3 
has type 'size_t'
rlm_perl.c:373: warning: format '%d' expects type 'int', but argument 5 
has type 'size_t'
rlm_perl.c: In function 'perl_xlat':
rlm_perl.c:373: warning: format '%d' expects type 'int', but argument 3 
has type 'size_t'
rlm_perl.c:373: warning: format '%d' expects type 'int', but argument 5 
has type 'size_t'
rlm_perl.c: In function 'perl_instantiate':
rlm_perl.c:410: warning: unused variable 'envp'
rlm_perl.c: In function 'perl_instantiate':
rlm_perl.c:410: warning: unused variable 'envp'
rlm_perl.c: In function 'perl_store_vps':
rlm_perl.c:541: warning: assignment discards qualifiers from pointer 
target type
rlm_perl.c: In function 'perl_store_vps':
rlm_perl.c:541: warning: assignment discards qualifiers from pointer 
target type
  gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DDARWIN -Wall 
-D_GNU_SOURCE -DNDEBUG 
-I/Users/raymond/Downloads/freeradius-server-2.1.10/src 
-I/Users/raymond/Downloads/freeradius-server-2.1.10/libltdl -arch ppc 
-arch i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp 
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include 
-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -c 
rlm_perl.c -o rlm_perl.o >/dev/null 2>&1
/Users/raymond/Downloads/freeradius-server-2.1.10/libtool --mode=link 
gcc -release 2.1.10 \
     -module -export-dynamic   -o rlm_perl.la     \
     -rpath /usr/local/lib rlm_perl.lo rlm_perl.c 
/Users/raymond/Downloads/freeradius-server-2.1.10/src/lib/libfreeradius-radius.la 
`perl -MExtUtils::Embed -e ldopts` -framework DirectoryService -lresolv  
-lpthread

*** 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.1.10.so -bundle  .libs/rlm_perl.o  
/Users/raymond/Downloads/freeradius-server-2.1.10/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 ppc -arch i386 -framework 
DirectoryService
ld warning: in 
/Users/raymond/Downloads/freeradius-server-2.1.10/src/lib/.libs/libfreeradius-radius.dylib, 
file is not of required architecture
dsymutil .libs/rlm_perl-2.1.10.so || :
(cd .libs && rm -f rlm_perl.so && ln -s rlm_perl-2.1.10.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
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]: *** [rlm_perl] Error 2
make[4]: *** [all] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [all] Error 2
make[1]: *** [src] Error 2
make: *** [all] Error 2




More information about the Freeradius-Users mailing list