FreeRadius and MAC OS X Install

Saurabh Bhasin saurabh at bhasin.in
Thu Oct 23 00:19:10 CEST 2008


Folks,

I've been trying to compile (using MacPorts 1.600) freeradius on  
Leopard (10.5.5) and continue to get the following error. I've been  
able to trace this down to https://trac.macports.org/ticket/13503 but  
it looks like there was no closure there and nothing definitive on  
what's supposed to work....I'd appreciate if you could please point me  
in the right direction.

--->  Building freeradius with target all
Error: Target org.macports.build returned: shell command " cd "/opt/ 
local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_freeradius/work/freeradius- 
server-2.0.4" && make all " returned error 2
Command output: Making all in rlm_krb5...
make[6]: Nothing to be done for `all'.
Making all in rlm_ldap...
Making all in rlm_logintime...
Making all in rlm_mschap...
Making all in rlm_otp...
Making all in rlm_pam...
Making all in rlm_pap...
Making all in rlm_passwd...
Making all in rlm_perl...
/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_freeradius/work/freeradius- 
server-2.0.4/libtool --mode=link /usr/bin/gcc-4.0 -release 2.0.4 \
	-module -export-dynamic -L/opt/local/lib  -o rlm_perl.la     \
	-rpath /opt/local/lib rlm_perl.lo rlm_perl.c /opt/local/var/macports/ 
build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_freeradius/work/freeradius- 
server-2.0.4/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!
rm -fr  .libs/rlm_perl-2.0.4.so .libs/rlm_perl.a .libs/rlm_perl.so
/usr/bin/gcc-4.0 ${wl}-flat_namespace ${wl}-undefined ${wl}suppress - 
o .libs/rlm_perl-2.0.4.so -bundle  .libs/rlm_perl.o  -L/opt/local/lib / 
opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_freeradius/work/freeradius- 
server-2.0.4/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 /opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_freeradius/work/freeradius- 
server-2.0.4/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.4.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

Error: Status 1 encountered during processing.


Thanks,
-Saurabh



More information about the Freeradius-Users mailing list