From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 2 17:20:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 731DE106568B for ; Tue, 2 Feb 2010 17:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F1B9B8FC1D for ; Tue, 2 Feb 2010 17:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o12HK13P014649 for ; Tue, 2 Feb 2010 17:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o12HK1Mt014648; Tue, 2 Feb 2010 17:20:01 GMT (envelope-from gnats) Resent-Date: Tue, 2 Feb 2010 17:20:01 GMT Resent-Message-Id: <201002021720.o12HK1Mt014648@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ryan Steinmetz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C3C01065676 for ; Tue, 2 Feb 2010 17:16:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0CAC88FC1C for ; Tue, 2 Feb 2010 17:16:15 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o12HGEnH033274 for ; Tue, 2 Feb 2010 17:16:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o12HGEA1033273; Tue, 2 Feb 2010 17:16:14 GMT (envelope-from nobody) Message-Id: <201002021716.o12HGEA1033273@www.freebsd.org> Date: Tue, 2 Feb 2010 17:16:14 GMT From: Ryan Steinmetz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/143487: net/freeradius2 libtool+perl problem workaround X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2010 17:20:02 -0000 >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@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: