Subject: pkg/9598: devel/gettext doesn't compile
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/11/2000 05:33:37
>Number:         9598
>Category:       pkg
>Synopsis:       devel/gettext fails in link phase.
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 11 05:33:00 2000
>Originator:     D'Arcy J.M. Cain
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.
>Release:        NetBSD-current
System: NetBSD 1.4U NetBSD 1.4U (DRUID) #0: Fri Mar 10 08:34:01 EST 2000 i386

When building gettext from pkgsrc, the build fails with the following error.

===>  Building for gettext-0.10.35
make all-recursive
Making all in doc
Making all in lib
Making all in intl
Making all in src
/bin/sh ../libtool --mode=link cc -O2 -Wl,-R/usr/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o gettext  gettextp.o ../lib/libnlsut.a ../intl/libintl.a 
cc -O2 -Wl,-R/usr/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o gettext gettextp.o ../lib/libnlsut.a ../intl/libintl.a
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: In function `usage':
gettextp.o(.text+0x32f): undefined reference to `gettext'
gettextp.o(.text+0x354): more undefined references to `gettext' follow
collect2: ld returned 1 exit status
*** Error code 1

I have tried this on a number of machines including one that was freshly
built with pkgsrc supped into an empty directory.

Go to devel/gettext and run make.