Subject: pkg/18705: devel/popt build failure
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/19/2002 21:44:11
>Number:         18705
>Category:       pkg
>Synopsis:       devel/popt build failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 19 04:43:00 PDT 2002
>Originator:     grant beattie
>Release:        -current pkgsrc
System: NetBSD mofo 1.6I NetBSD 1.6I (MOFO) #0: Sun Oct 6 00:57:53 EST 2002 grant@mofo:/data1/netbsd/current/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
devel/popt fails to build.

/bin/sh ./libtool --mode=link cc  -O2 -I/usr/pkg/include  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o test1 -all-static test1.o
cc -O2 -I/usr/pkg/include -Wl,-R/usr/pkg/lib -o test1 -static test1.o  -L/usr/pkg/lib ./.libs/libpopt.a
./.libs/libpopt.a(popt.o): In function `poptGetNextOpt':
popt.o(.text+0x1691): undefined reference to `dgettext'
./.libs/libpopt.a(popt.o): In function `poptStrerror':
popt.o(.text+0x1e16): undefined reference to `dgettext'
./.libs/libpopt.a(popthelp.o): In function `getArgDescrip':
popthelp.o(.text+0x14e): undefined reference to `dgettext'
./.libs/libpopt.a(popthelp.o): In function `singleOptionDefaultValue':
popthelp.o(.text+0x16c): undefined reference to `dgettext'
./.libs/libpopt.a(popthelp.o): In function `singleOptionHelp':
popthelp.o(.text+0x3a2): undefined reference to `dgettext'
./.libs/libpopt.a(popthelp.o)(.text+0x9ce): more undefined references to `dgettext' follow

The libtool generated fails to specify -lintl in
dependancy_libs. Manually hacking this in makes it work.

cd devel/popt; make