Subject: pkg/18570: buildlink seems to assume absolute location for libintl.*
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jschauma@cs.stevens-tech.edu>
List: netbsd-bugs
Date: 10/07/2002 11:23:12
>Number: 18570
>Category: pkg
>Synopsis: buildlink seems to assume absolute location for libintl.*
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 07 08:24:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jan Schaumann
>Release: NetBSD 1.6
>Organization:
>Environment:
System: NetBSD becasse.cs.stevens-tech.edu 1.6 NetBSD 1.6 (BOCK) #12: Wed Oct 2 12:03:43 EDT 2002 jschauma@amstel.cs.stevens-tech.edu:/usr/src/sys/arch/i386/compile/BOCK i386
Architecture: i386
Machine: i386
>Description:
On Linux, using pkgsrc, many packages have a dependency on gettext-lib,
so in general it is sufficient to add
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
DEPENDS+= gettext-lib>=0.10:../../devel/gettext-lib
LDFLAGS+= -L${PREFIX}/lib
.endif
However, when trying to build graphics/imlib, I get the following error:
[...]
===> Buildlinking for imlib-1.9.14nb1
/bin/ls: /usr/lib/libintl.*: No such file or directory
/usr/bin/dirname: too few arguments
Try `/usr/bin/dirname --help' for more information.
/usr/bin/basename: too few arguments
Try `/usr/bin/basename --help' for more information.
libtool: link: the `-version-info' option requires an argument
Try `libtool --help --mode=link' for more information.
libtool: install: `.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
/bin/sed: can't read /usr/pkgsrc/graphics/imlib/work/.buildlink/.tmp/inst/.la: No such file or directory
*** Error code 2
The line
/bin/ls: /usr/lib/libintl.*: No such file or directory
indicates the problem -- libintl.* are in ${PREFIX}/lib on this
system.
>How-To-Repeat:
Install bootstrap-pkgsrc on a Linux system.
cd /usr/pkgsrc/graphics/imlib
bmake
>Fix:
Let buildlink (or is it libtool?) look for libintl (and possibly other
libraries) in other places (PREFIX) if they are not found in the
default location.
>Release-Note:
>Audit-Trail:
>Unformatted: