Subject: Re: Should '.include "../../devel/gettext-lib/buildlink[23].mk"'...
To: None <>
From: Aaron J. Grier <>
List: tech-pkg
Date: 03/15/2004 23:26:46
On Sun, Mar 14, 2004 at 12:24:38PM +0100, Bernd Ernesti wrote:
> On Sun, Mar 14, 2004 at 11:45:25AM +0100, Markus W Kilbinger wrote:
> > Hi!
> > 
> > ... in pkg's Makefiles not ensure that
> >   /usr/pkg/lib/libintl.*
> > is used for compiling/linking!?
> You shouldn't need to have /usr/pkg/lib/libintl.* if you are using
> -current and it will only cause problems if you still have some old
> packages which use that.

1.6.2 doesn't have _nl_locale_name or _nl_expand_alias, and -current
doesn't appear to either.  I'm getting the following error when
attempting to build gettext from current pkgsrc, presumably due to
the GNU libintl being skipped:

gcc -O2 -march=pentiumpro -I/var/tmp/obj/pkgsrc/devel/gettext/work.i386/.buildlink/include -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/i386--netbsdelf/3.3.3 -Wl,-R/usr/pkg/lib -o .libs/msginit msginit.o  ./.libs/ -L/var/tmp/obj/pkgsrc/devel/gettext/work.i386/gettext-0.11.5/lib/.libs /var/tmp/obj/pkgsrc/devel/gettext/work.i386/gettext-0.11.5/lib/.libs/ -L/var/tmp/obj/pkgsrc/devel/gettext/work.i386/.buildlink/gcc3/lib/gcc-lib/i386--netbsdelf/3.3.3 -L/var/tmp/obj/pkgsrc/devel/gettext/work.i386/.buildlink/gcc3/lib -L/var/tmp/obj/pkgsrc/devel/gettext/work.i386/.buildlink/lib -lc -lintl -Wl,--rpath -Wl,/usr/pkg/lib
msginit.o: In function `main':
msginit.o(.text+0x239): undefined reference to `_nl_locale_name'
msginit.o(.text+0x25c): undefined reference to `_nl_expand_alias'
collect2: ld returned 1 exit status

_nl_locale_name and _nl_expand_alias are defined in localename.c and
localealias.c, in GNU libintl, respectively.

  Aaron J. Grier | "Not your ordinary poofy goof." |
  "someday the industry will have throbbing frontal lobes and will be able
  to write provably correct software.  also, I want a pony." -- Zach Brown