[MacPorts] #13503: freeradius does not compile under Leopard (10.5.1)/Intel
MacPorts
noreply at macports.org
Sat Dec 13 18:58:34 PST 2008
#13503: freeradius does not compile under Leopard (10.5.1)/Intel
----------------------------+-----------------------------------------------
Reporter: jms@… | Owner: macports-tickets@…
Type: defect | Status: reopened
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.5.2
Resolution: | Keywords:
Port: freeradius |
----------------------------+-----------------------------------------------
Changes (by jmr@…):
* keywords: freeradius =>
* port: => freeradius
Old description:
> Under Leopard (10.5.1) on Intel CPU, FreeRADIUS does not compile.
>
> ---> Fetching freeradius
> ---> Attempting to fetch freeradius-1.1.7.tar.gz from
> ftp://ftp.freeradius.org/pub/radius/
> ---> Verifying checksum(s) for freeradius
> ---> Extracting freeradius
> ---> Configuring freeradius
> ---> 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-1.1.7"
> && make all " returned error 2
> Command output:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/libtool
> --mode=compile gcc -O2 -I/opt/local/include -D_REENTRANT
> -D_POSIX_PTHREAD_SEMANTICS -DDARWIN -Wall -D_GNU_SOURCE -DNDEBUG
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/include
> -arch i386 -arch ppc -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 -no-cpp-
> precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
> aliasing -Wdeclaration-after-statement -I/usr/local/include -c rlm_perl.c
> mkdir .libs
> gcc -O2 -I/opt/local/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DDARWIN -Wall -D_GNU_SOURCE -DNDEBUG
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/include
> -arch i386 -arch ppc -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 -no-cpp-
> precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
> aliasing -Wdeclaration-after-statement -I/usr/local/include -c rlm_perl.c
> -fno-common -DPIC -o .libs/rlm_perl.o
> rlm_perl.c: In function 'perl_xlat':
> rlm_perl.c: In function 'perl_xlat':rlm_perl.c:658: warning: ISO C90
> forbids mixed declarations and code
> rlm_perl.c:658: warning: ISO C90 forbids mixed declarations and code
>
> rlm_perl.c:700: warning: format '%d' expects type 'int', but argument 5
> has type 'size_t'
> rlm_perl.c:700: warning: format '%d' expects type 'int', but argument 5
> has type 'size_t'
> gcc -O2 -I/opt/local/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DDARWIN -Wall -D_GNU_SOURCE -DNDEBUG
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/include
> -arch i386 -arch ppc -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 -no-cpp-
> precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
> aliasing -Wdeclaration-after-statement -I/usr/local/include -c rlm_perl.c
> -o rlm_perl.o >/dev/null 2>&1
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/libtool
> --mode=link gcc -release 1.1.7 \
> -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-1.1.7/src/lib/libradius.la
> \
> `perl -MExtUtils::Embed -e ldopts` -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-1.1.7.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-1.1.7/src/lib/.libs/libradius.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
> ld: warning in
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/lib/.libs/libradius.dylib,
> file is not of required architecture
> (cd .libs && rm -f rlm_perl.so && ln -s rlm_perl-1.1.7.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.
New description:
Under Leopard (10.5.1) on Intel CPU, FreeRADIUS does not compile.
{{{
---> Fetching freeradius
---> Attempting to fetch freeradius-1.1.7.tar.gz from
ftp://ftp.freeradius.org/pub/radius/
---> Verifying checksum(s) for freeradius
---> Extracting freeradius
---> Configuring freeradius
---> 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-1.1.7"
&& make all " returned error 2
Command output:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/libtool
--mode=compile gcc -O2 -I/opt/local/include -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -DDARWIN -Wall -D_GNU_SOURCE -DNDEBUG
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/include
-arch i386 -arch ppc -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 -no-cpp-
precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
aliasing -Wdeclaration-after-statement -I/usr/local/include -c rlm_perl.c
mkdir .libs
gcc -O2 -I/opt/local/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DDARWIN -Wall -D_GNU_SOURCE -DNDEBUG
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/include
-arch i386 -arch ppc -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 -no-cpp-
precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
aliasing -Wdeclaration-after-statement -I/usr/local/include -c rlm_perl.c
-fno-common -DPIC -o .libs/rlm_perl.o
rlm_perl.c: In function 'perl_xlat':
rlm_perl.c: In function 'perl_xlat':rlm_perl.c:658: warning: ISO C90
forbids mixed declarations and code
rlm_perl.c:658: warning: ISO C90 forbids mixed declarations and code
rlm_perl.c:700: warning: format '%d' expects type 'int', but argument 5
has type 'size_t'
rlm_perl.c:700: warning: format '%d' expects type 'int', but argument 5
has type 'size_t'
gcc -O2 -I/opt/local/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DDARWIN -Wall -D_GNU_SOURCE -DNDEBUG
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/include
-arch i386 -arch ppc -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 -no-cpp-
precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-
aliasing -Wdeclaration-after-statement -I/usr/local/include -c rlm_perl.c
-o rlm_perl.o >/dev/null 2>&1
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/libtool
--mode=link gcc -release 1.1.7 \
-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-1.1.7/src/lib/libradius.la
\
`perl -MExtUtils::Embed -e ldopts` -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-1.1.7.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-1.1.7/src/lib/.libs/libradius.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
ld: warning in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_freeradius/work/freeradius-1.1.7/src/lib/.libs/libradius.dylib,
file is not of required architecture
(cd .libs && rm -f rlm_perl.so && ln -s rlm_perl-1.1.7.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.
}}}
--
--
Ticket URL: <http://trac.macports.org/ticket/13503#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list