Subject: pkg/24090: perl doesn't build
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <recht@NetBSD.org>
List: netbsd-bugs
Date: 01/14/2004 14:24:34
>Number: 24090
>Category: pkg
>Synopsis: perl doesn't build
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 14 13:25:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Marc Recht
>Release: NetBSD 1.6ZH
>Organization:
>Environment:
System: NetBSD leeloo.intern.geht.de 1.6ZH NetBSD 1.6ZH (LEELOO) #0: Sun Jan 11 15:42:10 CET 2004 root@leeloo.intern.geht.de:/usr/obj/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386
>Description:
I get this for perl 5.8 and for 5.6:
rm -f ../../lib/auto/DB_File/DB_File.so
LD_RUN_PATH="/usr/pkg/lib" cc --whole-archive -shared -Wl,-R/usr/pkg/lib -L/usr/pkg/lib version.o DB_File.o -o ../../lib/auto/DB_File/DB_File.so -L/usr/local/lib -ldb -L../.. -Wl,-R/usr/pkg/lib/perl5/5.8.1/i386-netbsd/CORE -Wl,-R../../lib/CORE -lperl
ld: cannot find -ldb
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/perl58/work/perl-5.8.1/ext/DB_File
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/perl58/work/perl-5.8.1
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/perl58
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/perl58
The problem are the EXTRALIBS and LDLOADLIBS in the DB_File's Makefile:
EXTRALIBS = -L/usr/local/lib -ldb
LDLOADLIBS = -L/usr/local/lib -ldb
Which should be removed or made depend on db's buildlink.
>How-To-Repeat:
just build perl:)
>Fix:
Override EXRALIBS, LDLOADLIBS.
>Release-Note:
>Audit-Trail:
>Unformatted: