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: Instantiation failed for module "perl"
Information/workarounds/discussion regarding this issue can be located all over the net.
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://email@example.com/msg60579.html. This will only take place whenever WITH_PERL is defined.
-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:
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)
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:
Edwin Groothuis via the GNATS Auto Assign Tool
Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
I'll take it.
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.
wxs 2010-02-22 14:46:37 UTC
FreeBSD ports repository
- 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 <firstname.lastname@example.org>
Approved by: maintainer timeout
Feature safe: yes
Revision Changes Path
1.82 +3 -0 ports/net/freeradius2/Makefile
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"