FreeBSD Port: freeradius-2.1.6

Nick Rogers ncrogers at gmail.com
Tue Feb 2 17:52:03 UTC 2010


I had pretty much the same problem. To solve it and get a workable package I
had to manually upgrade the current port to 2.1.8, which involved updating
the port's plist, distinfo and of course the version. I also had to add the
below patch which was pointed out to me by Alan DeKok over at the FreeRADIUS
mailing list. Apparently FreeRADIUS still relies on libtool1.5 but has some
code to use the libtool2.2 API, but it is not yet enabled. Enabling it for
FreeBSD is necessary because libtool1.5 was completely removed from the
ports tree some time between 7.2 and 8.0-RELEASE.

--- modules.c 2010-02-02 09:16:35.000000000 -0800
+++ modules.c 2010-02-02 09:17:06.000000000 -0800
@@ -207,6 +207,7 @@
  * Solve the issues of libraries linking to other libraries
  * by using a newer libltdl API.
  */
+#define HAVE_LT_DLADVISE_INIT
 #ifndef HAVE_LT_DLADVISE_INIT
 #define fr_dlopenext lt_dlopenext
 #else

I've attached a copy of the port directory that I used to build a working
2.1.8 package in case anyone wants to give that a go. I'm not 100% sure the
new PLIST is correct but the important part is the new "patch-libltdl-api"
file that I added. It would be great if the port maintainer could upgrade to
2.1.8 in the proper manner and include this patch.

On Tue, Feb 2, 2010 at 6:46 AM, Søren Schrøder
<soeren.schroeder at gmail.com>wrote:

> Greeting
>
> I have problems with FreeRadius 2.1.6 and rlm_perl
>
> I updated from 2.1.1 (using portmaster) and perl support got broken.
>
> according to freeradius mailinglist, this is due to some libtool2.2 vs
> libtool 1.5 issue. (or libltld - not much info avaliable)
>
>
> http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg60275.html
>
> I fetched the 2.1.8 tarball from the project and did a "configure/gmake
> install" and it works now
>
> I verified the bug on a system that never had freeradius installed before
> (claen install) and got the bug there too. I tested with perl 5.8.9 and
> 5.10.1 and the bug follows freeradius, not perl.
>
> ---------
>
> radiusd -f -X
>
> server ggsn {
>  modules {
>  Module: Checking authenticate {...} for more modules to load
>  Module: Linked to module rlm_perl
>  Module: Instantiating perl
>  perl {
>        module = "/usr/local/etc/raddb/perl/sch.pm"
>        func_authorize = "authorize"
>        func_authenticate = "authenticate"
>        func_accounting = "accounting"
>        func_preacct = "preacct"
>        func_checksimul = "checksimul"
>        func_detach = "detach"
>        func_xlat = "xlat"
>        func_pre_proxy = "pre_proxy"
>        func_post_proxy = "post_proxy"
>        func_post_auth = "post_auth"
>  }
> Can't load '/usr/local/lib/perl5/5.10.1/mach/auto/Data/Dumper/Dumper.so'
> for
> module Data::Dumper:
> /usr/local/lib/perl5/5.10.1/mach/auto/Data/Dumper/Dumper.so: Undefined
> symbol "PL_sv_undef" at /usr/local/lib/perl5/5.10.1/mach/XSLoader.pm line
> 70.
>  at /usr/local/lib/perl5/5.10.1/mach/Data/Dumper.pm line 36
> Compilation failed in require at /usr/local/etc/raddb/perl/sch.pm line 7.
> BEGIN failed--compilation aborted at /usr/local/etc/raddb/perl/sch.pm line
> 7.
> rlm_perl: perl_parse failed: /usr/local/etc/raddb/perl/sch.pm not found or
> has syntax errors.
> /usr/local/etc/raddb/radiusd.conf[166]: Instantiation failed for module
> "perl"
> /usr/local/etc/raddb/radiusd.conf[290]: Failed to find module "perl".
> /usr/local/etc/raddb/radiusd.conf[290]: Failed to parse "perl" entry.
> Errors initializing modules
>
>
> Kind regards (and thanks for your work)
>
> Søren Schrøder
>
> Happy FreeBSD user since 1.x
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>


More information about the freebsd-ports mailing list