pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45822: time/p5-DateTime Undefined symbol "PL_thr_key"
>Number: 45822
>Category: pkg
>Synopsis: time/p5-DateTime Undefined symbol "PL_thr_key"
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 12 09:10:01 +0000 2012
>Originator: B.ICT A.P. deBROUWER Jr.
>Release: 5.99.59
>Organization:
-none-
>Environment:
NetBSD 10.0.2.17 5.99.59 NetBSD 5.99.59 (MONOLITHIC) #0: Tue Dec 27 01:19:12
UTC 2011
builds%b8.netbsd.org@localhost:/home/builds/ab/HEAD/i386/201112261820Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/MONOLITHIC
i386
>Description:
using time/p5-DateTime we get:
Can't load
'/usr/pkg/lib/perl5/vendor_perl/5.14.0/i386-netbsd-thread-multi/auto/DateTime/DateTime.so'
for module DateTime:
/usr/pkg/lib/perl5/vendor_perl/5.14.0/i386-netbsd-thread-multi/auto/DateTime/DateTime.so:
Undefined symbol "PL_thr_key" (symnum = 6) at
/usr/pkg/lib/perl5/5.14.0/XSLoader.pm line 71.
at /usr/pkg/lib/perl5/vendor_perl/5.14.0/i386-netbsd-thread-multi/DateTime.pm
line 23
>How-To-Repeat:
echo 'PKG_OPTIONS.libpurple+=perl'>>/etc/mk.conf
cd wip/pidgin-status-to-twitter && make install
pidgin
>Fix:
add p5-DateTime/patches/patch-aa and
a patch to time/p5-DateTime/Makefile:
$NetBSD$
link against libperl, so PL_thr_key is known.
--- Build.PL.orig 2012-01-12 08:43:37.000000000 +0000
+++ Build.PL 2012-01-12 08:46:03.000000000 +0000
@@ -38,7 +38,9 @@
);
-my $build = Module::Build->new(%module_build_args);
+my $build = Module::Build->new(%module_build_args,
+extra_linker_flags => '@extra_linker_flags@',
+);
if ( grep { $_ eq '--pp' } @ARGV ) {
$build->build_elements(
--- Makefile.orig 2012-01-12 11:05:14.000000000 +0000
+++ Makefile 2012-01-12 11:17:06.000000000 +0000
@@ -22,6 +22,11 @@
PERL5_PACKLIST= auto/DateTime/.packlist
PERL5_MODULE_TYPE= Module::Build
+SUBST_CLASSES+= flags
+SUBST_STAGE.flags= post-patch
+SUBST_FILES.flags= Build.PL
+SUBST_SED.flags+= -e
's|@extra_linker_flags@|-Wl,-R${PERL5_INSTALLARCHLIB}/CORE
-L${PERL5_INSTALLARCHLIB}/CORE -lperl|'
+
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../lang/perl5/module.mk"
Home |
Main Index |
Thread Index |
Old Index