Discussion:
FreeRadius and MAC OS X Install
Saurabh Bhasin
2008-10-22 22:19:10 UTC
Permalink
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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Anders Holm
2008-10-23 07:06:31 UTC
Permalink
Do you have a need for the Perl module? If not, disable it.

Sent from my iPhone
Post by Saurabh Bhasin
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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Elie Hani
2008-10-23 07:56:39 UTC
Permalink
Hi;

I am configuring a freeradius server with mikrotik hostpot, all is working
fine while creating the users in the users file.

When I launch the SQL database, and change the authentication in
radiusd.conf, to check the sql files, I get always the error about the
rlm_sql.so; even though it is present.

Thanks for the help.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
t***@kalik.net
2008-10-23 08:38:45 UTC
Permalink
It's in the FAQ:

http://wiki.freeradius.org/FAQ#It_says_.22Could_not_link_..._file_not_found.22.2C_what_do_I_do.3F

Ivan Kalik
Kalik Informatika ISP
Post by Elie Hani
Hi;
I am configuring a freeradius server with mikrotik hostpot, all is working
fine while creating the users in the users file.
When I launch the SQL database, and change the authentication in
radiusd.conf, to check the sql files, I get always the error about the
rlm_sql.so; even though it is present.
Thanks for the help.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Saurabh Bhasin
2008-10-23 17:12:19 UTC
Permalink
No, I don't....So, I did the following:

$sudo ./configure --without-rlm_perl

and it went well from there. Thanks for the pointer, Andres.
-Saurabh
Post by Anders Holm
Do you have a need for the Perl module? If not, disable it.
Sent from my iPhone
Post by Saurabh Bhasin
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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Paul Bartell
2008-10-24 01:15:12 UTC
Permalink
I recently installed on leopard, even with the perl module disabled,
it would not work. the latest CVS version compiled fine though.
Post by Saurabh Bhasin
$sudo ./configure --without-rlm_perl
and it went well from there. Thanks for the pointer, Andres.
-Saurabh
Post by Anders Holm
Do you have a need for the Perl module? If not, disable it.
Sent from my iPhone
Post by Saurabh Bhasin
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
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
--
Random quote of the week/month/whenever i get to updating it:
"Opportunity knocked. My doorman threw him out." - Adrienne Gusoff

"At school you don't get parole, good behavior only brings a longer
sentence." - The History Boys
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Loading...