Subject: pkg/15768: p5-GD fails to load libX11.so
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 03/01/2002 05:23:16
>Number: 15768
>Category: pkg
>Synopsis: p5-GD fails to load libX11.so
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 28 12:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Hiramatsu Yoshifumi
>Release: -current 1.5ZA
>Organization:
>Environment:
<machine, os, target, libraries (multiple lines)>
System: NetBSD river.my.domain 1.5ZA NetBSD 1.5ZA (River) #1: Sat Feb 16 01:29:44 JST 2002 hiramatsu@river.my.domain:/usr/src/sys/arch/i386/compile/River i386
Architecture: i386
Machine: i386
>Description:
graphics/p5-GD doesn't work because it cannot find libX11.so.
This machine's LOCALBASE is /usr/river.
river% perl -e 'use GD;'
Can't load '/usr/river/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/GD/GD.so' for module GD: Shared object "libX11.so.6" not found at /usr/river/lib/perl5/5.6.1/i386-netbsd/DynaLoader.pm line 206.
at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
river% ldd /usr/river/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/GD/GD.so
/usr/river/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/GD/GD.so:
-lperl => /usr/river/lib/perl5/5.6.1/i386-netbsd/CORE/libperl.so
-lz.0 => /usr/lib/libz.so.0
-lm.0 => /usr/lib/libm387.so.0
-lm.0 => /usr/lib/libm.so.0
-lpng.2 => /usr/river/lib/libpng.so.2
-ljpeg.62 => /usr/river/lib/libjpeg.so.62
-lintl.0 => /usr/lib/libintl.so.0
-lttf.4 => /usr/river/lib/libttf.so.4
-lgd.1 => /usr/river/lib/libgd.so.1
-lX11.6 => not found
-lXpm.4 => /usr/river/lib/libXpm.so.4
>How-To-Repeat:
>Fix:
This patch make 'perl -e "use GD;"' exits cleanly.
--- p5-GD.orig/Makefile Fri Mar 1 04:50:32 2002
+++ p5-GD/Makefile Fri Mar 1 04:51:53 2002
@@ -14,6 +14,8 @@
USE_BUILDLINK_ONLY= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/GD/.packlist
+MAKE_ENV+= GD_LIBS="${LDFLAGS}"
+
do-configure:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
>Release-Note:
>Audit-Trail:
>Unformatted: