ports/143487: net/freeradius2 libtool+perl problem workaround

Ryan Steinmetz rpsfa at rit.edu
Tue Feb 2 17:20:02 UTC 2010


>Number:         143487
>Category:       ports
>Synopsis:       net/freeradius2 libtool+perl problem workaround
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 02 17:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        FreeBSD 7.2
>Organization:
Rochester Institute of Technology
>Environment:
FreeBSD XXX.rit.edu 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #5: Fri Oct  2 21:03:59 EDT 2009     root at XXX.rit.edu:/usr/obj/usr/src/sys/XXX  i386
>Description:
When launching net/freeradius2 with perl support, one gets the following error:

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 "Perl_sv_cmp" 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/example.pl line 30.
BEGIN failed--compilation aborted at /usr/local/etc/raddb/example.pl line 30.
rlm_perl: perl_parse failed: /usr/local/etc/raddb/example.pl not found or has syntax errors.  
/usr/local/etc/raddb/modules/perl[7]: Instantiation failed for module "perl"

Information/workarounds/discussion regarding this issue can be located all over the net.
>How-To-Repeat:
Build and install net/freeradius2, with perl support and attempt to launch.  (Ensuring FR has the perl module instantiated/used in some way)
>Fix:
Apply the attached patch to activate the new code in FR 2.1.8 to support the newer libtool API as mentioned in http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg60579.html.  This will only take place whenever WITH_PERL is defined.

Potential issues:
-Alan DeKok says the new code is untested, however, it does appear to eliminate the need for the LD_PRELOAD workaround that has been floating around, as mentioned in http://bbs.archlinux.org/viewtopic.php?id=64557.
-This is a temporary workaround that will most likely need to be removed once 2.2.x of FR has been released and someone has confirmed that this has been resolved without the extra define.


Patch attached with submission follows:

--- /usr/ports/net/freeradius2/Makefile	2010-02-02 12:04:50.000000000 -0500
+++ /tmp/Makefile	2010-02-02 12:04:45.000000000 -0500
@@ -144,6 +144,8 @@
 USE_PERL5=	yes
 CONFIGURE_ARGS+=--with-rlm_perl
 PLIST_SUB+=	RLMPERL=""
+# temporary workaround for libtool issue until FR 2.2.x is released
+CFLAGS+=	-DHAVE_LT_DLADVISE_INIT
 .else
 CONFIGURE_ARGS+=--without-perl --without-rlm_perl
 PLIST_SUB+=	RLMPERL="@comment "


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list