Subject: Re: pkgsrc and libintl problems
To: Julio Merino <jmmv@menta.net>
From: Chris Ewert <mlsni3@infolaunch.com>
List: current-users
Date: 11/01/2002 17:23:15
I added the following line to the Makefiles:
.include "../../devel/gettext-lib/buildlink2.mk"
along with the USE_GNU_GETTEXT=yes and tried that, but still ended up with the same error message.  The same thing happens if I try to build the packages without pkgsrc.  Is there an easy way to force the package to use the libintl in /usr/pkg/lib instead of the /usr/lib?


Chris
InfoLaunch Internet
(630) 510-9724


Julio Merino Wrote:
> On Fri, 1 Nov 2002 15:57:08 -0600 (CST)
> Chris Ewert <mlsni3@infolaunch.com> wrote:
> 
> > I gave that a shot but I ran into the same problem with both packages.  
> 
> Hmm... try to add an explicit include of devel/gettext-lib's buildlink, as
> a complement of the USE_GNU_GETTEXT=yes (i.e, add both things).
> 
> HTH
> 
> > 
> > 
> > Chris
> > InfoLaunch Internet
> > (630) 510-9724
> > 
> > 
> > Julio Merino Wrote:
> > > On Fri, 1 Nov 2002 15:30:30 -0600 (CST)
> > > Chris Ewert <mlsni3@infolaunch.com> wrote:
> > > 
> > > > I'm not sure if this is just something obvious that I have overlooked or not, but I can't get a variety of packages to build on 1.6 (fresh install) because they complain about /usr/lib/libintl.la not being present (although /usr/lib/libintl.so, etc are present).  The specific packages I am having this problem with are: chat/gaim and audio/xmms.  Has anyone else seen this?  I tried installing devel/gettext-lib which puts libintl into /usr/pkg/lib, but pkgsrc seems to still use the /usr/lib version instead.  I have also tried to compile these applications by hand with the same result.  Any suggestions?
> > > 
> > > Try setting USE_GNU_GETTEXT=yes in these packages Makefiles and see what
> > > happens...
> > > 
> > > HTH
> > > 
> > > > 
> > > > Thanks,
> > > > 
> > > > Chris
> > > > InfoLaunch Internet
> > > > (630) 510-9724
> > > > 
> > > > -- from chat/gaim --
> > > > gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -I/usr/local/include -I/opt/include -I.. -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include/gdk-pixbuf-1.0 -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/X11R6/include/artsc -fno-strict-aliasing -I/usr/pkg/include  -I/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib/gaim/\"  -c util.c
> > > > /usr/pkg/bin/bash ../libtool --silent --mode=link gcc  -g -O2 -I/usr/local/include -I/opt/include -I.. -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include/gdk-pixbuf-1.0 -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/X11R6/include/artsc -fno-strict-aliasing -I/usr/pkg/include  -I/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib/gaim/\"   -o gaim -export-dynamic about.o aim.o  applet.o away.o browser.o  buddy.o buddy_chat.o  conversation.o core.o  dialogs.o gaimrc.o  gtkimhtml.o gtkspell.o  gtkticker.o html.o idle.o  list.o md5.o module.o  multi.o perl.o plugins.o  prefs.o proxy.o prpl.o  server.o sound.o ticker.o  util.o  -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -L/usr/pkg/lib -Wl!
,-R/!
> > usr/!
> > > > pkg/lib -lgmodule -lglib -lintl -lXi -lXext -lX11 -lm -L/usr/X11R6/lib -lgdk_pixbuf -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgmodule -lglib -lintl -lXi -lXext -lX11 -lm -ltiff -ljpeg -lpng -lz -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lesd -laudiofile -lm -lossaudio -L/usr/X11R6/lib -lartsc -lpthread protocols/oscar/liboscar.a protocols/toc/libtoc.a -Wl,-whole-archive -lgcc -Wl,-no-whole-archive -Wl,-E -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -Wl,-R/usr/pkg/lib -L/usr/pkg/lib /usr/pkg/lib/perl5/5.6.1/i386-netbsd/auto/DynaLoader/DynaLoader.a -L/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -lperl -lm -lcrypt -L/usr/X11R6/lib -lXss ../intl/libintl.a
> > > > libtool: link: cannot find the library `/usr/lib/libintl.la'
> > > > *** Error code 1
> > > > 
> > > > -- from audio/xmms --
> > > > Making all in intl
> > > > gmake[2]: Entering directory `/usr/pkgsrc/audio/xmms/work/xmms-1.2.7/intl'
> > > > gmake[2]: Nothing to be done for `all'.
> > > > gmake[2]: Leaving directory `/usr/pkgsrc/audio/xmms/work/xmms-1.2.7/intl'
> > > > Making all in libxmms
> > > > gmake[2]: Entering directory `/usr/pkgsrc/audio/xmms/work/xmms-1.2.7/libxmms'
> > > > /bin/sh ./libtool --mode=link cc  -O2 -I/usr/pkg/include -Wall -Wpointer-arith -finline-functions -ffast-math -fomit-frame-pointer -funroll-all-loops -Wall -Wpointer-arith -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o libxmms.la -rpath /usr/pkg/lib -export-dynamic -version-info 3:1:2 configfile.lo xmmsctrl.lo dirbrowser.lo util.lo formatter.lo titlestring.lo -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgmodule -lgthread -lglib -lpthread -lintl -lXi -lXext -lX11 -lm  -liconv  -lintl
> > > > grep: /usr/lib/libintl.la: No such file or directory
> > > > sed: /usr/lib/libintl.la: No such file or directory
> > > > libtool: link: `/usr/lib/libintl.la' is not a valid libtool archive
> > > > gmake[2]: *** [libxmms.la] Error 1
> > > > gmake[2]: Leaving directory `/usr/pkgsrc/audio/xmms/work/xmms-1.2.7/libxmms'
> > > > gmake[1]: *** [all-recursive] Error 1
> > > > gmake[1]: Leaving directory `/usr/pkgsrc/audio/xmms/work/xmms-1.2.7'
> > > > gmake: *** [all-recursive-am] Error 2
> > > > *** Error code 2
> > > > 
> > > > Attachment1: 
> > > 
> > > 
> > > -- 
> > > Julio Merino (http://jmmv.dyndns.org/) <jmmv@menta.net>
> > 
> > Attachment1: 
> 
> 
> -- 
> Julio Merino (http://jmmv.dyndns.org/) <jmmv@menta.net>

Attachment1: