Subject: pkg/22016: "iconv" buildlink2 handling breaks (at least) "wv" package
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 06/30/2003 09:02:45
>Number: 22016
>Category: pkg
>Synopsis: "iconv" buildlink2 handling breaks (at least) "wv" package
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 30 07:03:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6U with 2003-06-30 packages sourecs
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.6U NetBSD 1.6U (LYSSA) #0: Fri Jun 27 09:40:28 CEST 2003 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
The latest versions of "pkgsrc/converters/libiconv/buildlink2.mk" - I 've got
revision 1.7 here - try to use NetBSD-current's builtin "iconv" support.
Unfortunately it doesn't populate the buildink2 are with the required links.
This results in build failures in e.g. the "wv" package:
===> Configuring for wv-0.7.4nb2
[...]
checking for wmf_stream_create in -lwmf... no
configure: error: * * * libwmf >= 0.2.1 required * * *
*** Error code 1
Stop.
A look into "config.log" reveals what went wrong:
configure:2590: cc -E -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/inc
lude -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/include/libw
mf conftest.c >/dev/null 2>conftest.out
configure:2608: checking for wmf_stream_create in -lwmf
configure:2627: cc -o conftest -O2 -I/usr/pkg/include -I/usr/X11R6/include -I/
usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/f
reetype2 -I/usr/X11R6/include -I/usr/pkg/include/libwmf -Wl,-R/usr/pkg/lib -L/u
sr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/pkg/lib -lwmf -lwmflite
-L/usr/X11R6/lib -lfreetype -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lSM -lICE -l
X11 -lxml2 -lz -lpthread -liconv -lm -lpng -lz -lm conftest.c -lwmf -L/usr/pkg/l
ib -lwmf -lwmflite -L/usr/X11R6/lib -lfreetype -L/usr/X11R6/lib -Wl,-R/usr/X11R6
/lib -lSM -lICE -lX11 -lxml2 -lz -lpthread -liconv -lm -lpng -lz -lm 1>&5
ld: cannot find -liconv
configure: failed program was:
#line 2616 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char wmf_stream_create();
int main() {
wmf_stream_create()
; return 0; }
And there indeed no shared library links in the buildlink2 directory:
tron@lyssa:/usr/pkgsrc/converters/wv>find work/.buildlink -name "*iconv*"
work/.buildlink/include/iconv.h
work/.buildlink/.iconv_buildlink_done
to use NetBSD-current's
>How-To-Repeat:
cd pkgsrc/converters/wv
make
>Fix:
Building the package with "USE_GNU_ICONV" set to "YES" avoid the problem.
But it's not a real solution.
>Release-Note:
>Audit-Trail:
>Unformatted: