Subject: pkg/18034: "ncurses" buildlink support broken on a.out platforms
To: None <>
From: Matthias Scheler <>
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
>Release:        NetBSD 1.5.4_ALPHA 2002-08-22 package sources
Matthias Scheler                        
System: NetBSD 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (MCKUSICK) #0: Sun Aug 18 22:11:03 CEST 2002 amiga
Architecture: m68k
Machine: amiga
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/" 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 -> /usr/lib/

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.

cd /usr/pkgsrc/mail/mutt
env PKG_DEVELOPER=yes make install

Always using "ncurses" on a.out platforms would do the trick.