Subject: libglade can't find libiconv
To: None <>
From: Simon Burge <>
List: tech-pkg
Date: 09/18/2003 13:43:00
Hi again.

Again, really current pkgsrc on 1.6ish i386.  Trying to build libglade,
I see:

cc -O2 -I/usr/obj/pkg/devel/libglade/work.thoreau/.buildlink/include -I/usr/obj/pkg/devel/libglade/work.thoreau/.buildlink-x11/include -Wall -Wunused -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o .libs/test-libglade test-libglade.o -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib  -L/usr/obj/pkg/devel/libglade/work.thoreau/.buildlink/lib -L/usr/obj/pkg/devel/libglade/work.thoreau/.buildlink-x11/lib glade/.libs/ -L/usr/pkg/lib -L/usr/X11R6/lib glade/.libs/ /usr/pkg/lib/ /usr/pkg/lib/ /usr/pkg/lib/ -lSM -lICE /usr/pkg/lib/ /usr/pkg/lib/ -lintl /usr/pkg/lib/ -lXi -lXext -lX11 /usr/pkg/lib/ /usr/pkg/lib/ -liconv -lc /usr/pkg/lib/ -lossaudio /usr/pkg/lib/ -lm /usr/pkg/lib/ /usr/pkg/lib/ -lz /usr/lib/ /usr/lib/ -Wl,--rpath -Wl,/usr/pkg/lib
ld: cannot find -liconv

Adding the following to the libglade Makefile get the package
building and installing:

Index: Makefile
RCS file: /cvsroot/pkgsrc/devel/libglade/Makefile,v
retrieving revision 1.47
diff -d -p -u -r1.47 Makefile
--- Makefile	2003/08/10 03:15:29	1.47
+++ Makefile	2003/09/18 03:41:30
@@ -31,6 +31,7 @@ MAKE_ENV+=	DISPLAY=${DISPLAY}
 	${RM} ${WRKSRC}/
+.include "../../converters/libiconv/"
 .include "../../devel/gettext-lib/"
 .include "../../textproc/libxml/"
 .include "../../x11/gnome-libs/"

I'm not really buildlink-savvy though.  Ok to commit this?  Or is
there a better/different way to fix it?

Simon Burge                                   <>
NetBSD Development, Support and Service: