Subject: pkg/25109: buildlink under IRIX not buildlinking
To: None <>
From: None <>
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
>Originator:     Jan Schaumann
>Release:        NetBSD 1.6ZK
System: NetBSD 1.6ZK NetBSD 1.6ZK (BOCK.current) #0: Tue Mar 9 11:41:58 EST 2004 i386
Architecture: i386
Machine: i386

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.


cd /usr/pkgsrc/devel/gettext && bmake


Well, not a fix, but a work-around and a sign that this is in fact the problem:


        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.