From nobody@FreeBSD.org  Tue Feb  2 17:16:15 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1C3C01065676
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <rpsfa@rit.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net/freeradius2 libtool+perl problem workaround
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: david@wood2.org.uk

>Number:         143487
>Category:       ports
>Synopsis:       net/freeradius2 libtool+perl problem workaround
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 02 17:20:01 UTC 2010
>Closed-Date:    Mon Feb 22 14:46:54 UTC 2010
>Last-Modified:  Mon Feb 22 14:50:05 UTC 2010
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Feb 2 17:20:12 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143487 
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Tue Feb 2 17:20:58 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143487 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: david@wood2.org.uk
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/143487: net/freeradius2 libtool+perl problem workaround
Date: Tue, 2 Feb 2010 17:20:11 UT

 Maintainer of net/freeradius2,
 
 Please note that PR ports/143487 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/143487
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Ryan Steinmetz <rpsfa@rit.edu>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/143487: net/freeradius2 libtool+perl problem workaround
Date: Thu, 11 Feb 2010 20:52:06 -0500

 This appears to be a duplicate of ports/138445, ports/143493, ports/143656.  It is (in my opinion) the cleanest option.
 
 As there are currently 4 PRs open to fix the same problem, one going back to September, I'd recommend closing the rest and committing the fix in this one.  Even if someone updates the port without removing this particular workaround, the port should still work fine.
 
 I would be interested in taking over maintainership of this port if the current maintainer doesn't have enough free time available.  Eitherway, this has been a problem for around 5 months and should be resolved.
 
 -r
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: wxs 
State-Changed-When: Mon Feb 22 14:46:53 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143487 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/143487: commit references a PR
Date: Mon, 22 Feb 2010 14:46:51 +0000 (UTC)

 wxs         2010-02-22 14:46:37 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/freeradius2      Makefile 
   Log:
   - Fix libtool problem when using perl option. See ports/143487 for information.
   
   PR:             ports/143487, ports/143656, ports/143493, ports/138445
   Submitted by:   Ryan Steinmetz <rpsfa@rit.edu>
   Approved by:    maintainer timeout
   Feature safe:   yes
   
   Revision  Changes    Path
   1.82      +3 -0      ports/net/freeradius2/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
