Subject: pkg/33469: misc/rpm Solaris10 gcc X86_64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 05/12/2006 14:05:00
>Number:         33469
>Category:       pkg
>Synopsis:       misc/rpm Solaris10 gcc X86_64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 12 14:05:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


gcc -I/pkg/obj/misc/rpm/work/rpm-2.5.4 -I/pkg/obj/misc/rpm/work/rpm-2.5.4 -O -I/usr/pkg/include -I/usr/pkg/include/db4 -I/usr/include  -DHAVE_CONFIG_H -I/pkg/obj/misc/rpm/work/rpm-2.5.4/lib -I/pkg/obj/misc/rpm/work/rpm-2.5.4/misc -I/usr/pkg/include -I/usr/pkg/include/db4 -I/usr/include  -c -o rpmlead.o rpmlead.c
gcc -R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/pkg/obj/misc/rpm/work/rpm-2.5.4/lib -L/pkg/obj/misc/rpm/work/rpm-2.5.4/build -L/pkg/obj/misc/rpm/work/rpm-2.5.4/misc  rpmlead.o ../lib/librpm.a -ldb4 -lnsl -lsocket -lz -lmisc   -o rpmlead
Undefined                       first referenced
 symbol                             in file
libintl_gettext                     ../lib/librpm.a(rpmlead.o)
ld: fatal: Symbol referencing errors. No output written to rpmlead
collect2: ld returned 1 exit status
gmake[1]: *** [rpmlead] Error 1
gmake[1]: Leaving directory `/pkg/obj/misc/rpm/work/rpm-2.5.4/tools'
gmake: *** [make-subdirs] Error 1
*** Error code 2



>How-To-Repeat:


bmake in misc/rpm


>Fix:


add the line in Makefile

LDFLAGS.SunOS+=                -R/usr/pkg/lib -lintl



I thinks the two options --without-libiconv-prefix --with-libintl-prefix=/usr/pkg is incompatible and need a patch in configure.