Subject: pkg/25109: buildlink under IRIX not buildlinking
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jschauma@netmeister.org>
List: pkgsrc-bugs
Date: 04/08/2004 17:15:59
>Number: 25109
>Category: pkg
>Synopsis: buildlink under IRIX not buildlinking
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 08 21:17:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Jan Schaumann
>Release: NetBSD 1.6ZK
>Organization:
>Environment:
System: NetBSD dogfish-head.cs.stevens-tech.edu 1.6ZK NetBSD 1.6ZK (BOCK.current) #0: Tue Mar 9 11:41:58 EST 2004 jschauma@doppelbock.hpcf.cs.stevens-tech.edu:/share/src/sys/arch/i386/compile/obj/BOCK.current i386
Architecture: i386
Machine: i386
>Description:
It appears that buildlink is not doing it's job under Irix. Several GNU
packages (such as gettext, gtexinfo, etc.) rely on libiconv or libintl.
During the buildlink process, AFAIUI, buildlink is supposed to create
symbolic links from ${WRKDIR}/.buildlink/lib to ${PREFIX}/lib/libiconv.*
and ${PREFIX}/lib/libintl.* etc. This does not appear to be the case.
Subsequently, packages such as gtexinfo, gettext etc. fail to configure,
displaying the error ``C compiler cannot create executables'', and the
config.log confirms that this is due to the linker not finding -lintl
or -liconv.
>How-To-Repeat:
On IRIX:
cd /usr/pkgsrc/devel/gettext && bmake
>Fix:
Well, not a fix, but a work-around and a sign that this is in fact the problem:
Adding:
post-buildlink:
cd ${WRKDIR}/.buildlink/lib && ln -s /usr/pkg/lib/libintl* .
cd ${WRKDIR}/.buildlink/lib && ln -s /usr/pkg/lib/libiconv* .
cd ${WRKDIR}/.buildlink/include && ln -s /usr/pkg/include/libintl* .
to the Makefile allows the package to configure and build.
>Release-Note:
>Audit-Trail:
>Unformatted: