Subject: pkg/18034: "ncurses" buildlink support broken on a.out platforms
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 08/22/2002 09:12:26
>Number: 18034
>Category: pkg
>Synopsis: "ncurses" buildlink support broken on a.out platforms
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 22 00:13:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5.4_ALPHA 2002-08-22 package sources
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Environment:
System: NetBSD mckusick.zhadum.de 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (MCKUSICK) #0: Sun Aug 18 22:11:03 CEST 2002 tron@mckusick.zhadum.de:/src/sys/compile/MCKUSICK amiga
Architecture: m68k
Machine: amiga
>Description:
When I tried to build version 1.4 of the "mutt" package on a NetBSD-amiga
system the package got built and installed but I got a report that the
"mutt" binary has an unresolvable shared library reference to "libncurses".
The problem is caused by "pkgsrc/devel/ncurses/buildlink.mk" which creates
these links in the buildlink directory:
lrwxr-xr-x 1 tron krull 20 Aug 22 09:10 libncurses.a -> /usr/lib/libcurses.a
lrwxr-xr-x 1 tron krull 25 Aug 22 09:10 libncurses.so.3.6 -> /usr/lib/libcurses.so.3.6
While this hack works fine on ELF platforms where the linker extracts
the shared library name it causes problems on a.out platform because
the linker takes the filename literally.
>How-To-Repeat:
cd /usr/pkgsrc/mail/mutt
env PKG_DEVELOPER=yes make install
>Fix:
Always using "ncurses" on a.out platforms would do the trick.
>Release-Note:
>Audit-Trail:
>Unformatted: