Subject: Re: gettext package in current
To: None <itojun@iijlab.net>
From: Ruibiao Qiu <ruibiao@arl.wustl.edu>
List: current-users
Date: 02/09/2001 15:01:53
On Sat, 10 Feb 2001 itojun@iijlab.net wrote:

>	caveat: i haven't tried this, i'm not sure if it works.
>
>	get gettext.m4 from GNU gettext distribution, and put it into
>	/usr/pkg/share/autoconf.
>
>	even if you install pkgsrc/devel/gettext, it only gives you redundant
>	binaries (/usr/bin/msgfmt and /usr/pkg/bin/msgfmt), nothing more.
>	i believe it's harmless.
>	or are you saying you cannot build pkgsrc/devel/gettext by some reason?

Well, I had to make some change to make it build.  Here is one of
the errors.  I just make the gcc to usr "-Wl,-R/usr/lib
-L/usr/lib" first (it was two /usr/pkg/lib).

...
Making all in src
gcc -DLOCALEDIR=\"/usr/pkg/share/locale\" -DHAVE_CONFIG_H -I. -I..
-I../lib -I../intl -I../intl -I/usr/pkg/include -O2 -c gettextp.c
/bin/sh ../libtool --mode=link gcc -O2 -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o gettext
gettextp.o ../lib/libnlsut.a -lintl
mkdir .libs
gcc -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib -o gettext gettextp.o ../lib/libnlsut.a -lintl
gettextp.o: In function `main':
gettextp.o(.text+0x66): undefined reference to `bindtextdomain'
gettextp.o(.text+0x70): undefined reference to `textdomain'
gettextp.o(.text+0x157): undefined reference to `gettext'
gettextp.o(.text+0x16f): undefined reference to `gettext'
gettextp.o(.text+0x1b2): undefined reference to `gettext'
gettextp.o(.text+0x1fa): undefined reference to `gettext'
gettextp.o(.text+0x234): undefined reference to `bindtextdomain'
gettextp.o(.text+0x257): undefined reference to `dgettext'
gettextp.o(.text+0x288): undefined reference to `bindtextdomain'
gettextp.o(.text+0x2bc): undefined reference to `dgettext'
gettextp.o: In function `usage':
gettextp.o(.text+0x32f): undefined reference to `gettext'
gettextp.o(.text+0x354): undefined reference to `gettext'
gettextp.o(.text+0x36c): undefined reference to `gettext'
gettextp.o(.text+0x384): undefined reference to `gettext'
../lib/libnlsut.a(xmalloc.o): In function `fixup_null_alloc':
xmalloc.o(.text+0x22): undefined reference to `gettext'
collect2: ld returned 1 exit status
*** Error code 1

Stop.


            Ruibiao