Opened 12 years ago

Closed 12 years ago

#15965 closed defect (duplicate)

freeradius 2.0.4 - build failure on Mac OS 10.5.4 / Intel

Reported by: richard@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

When I attempt to install freeradius I get the following build error:

--->  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.

I started with a completely virgin MacPorts 1.6.0 environment before attempting to install freeradius 2.0.4. A search of previous tickets revealed a very similar error occurred previously (ticket #13503).

Change History (1)

comment:1 Changed 12 years ago by blb@…

Resolution: duplicate
Status: newclosed

Dup of ticket #13503.

Note: See TracTickets for help on using tickets.