Subject: pkg/32723: gettext duplicate symbol locale_charset with native iconv
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jml@ascia.fi>
List: pkgsrc-bugs
Date: 02/04/2006 00:25:00
>Number:         32723
>Category:       pkg
>Synopsis:       gettext duplicate symbol locale_charset with native iconv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 04 00:25:00 +0000 2006
>Originator:     Juha-Matti Liukkonen
>Release:        Mac OS X 10.4.4
>Organization:
Ascia Oy
>Environment:
Darwin rousku.podzone.org 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3 18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc

>Description:
libgettextsrc from gettext and libintl from gettext-lib both declare symbol locale_charset() even if native libiconv is being used (which already declares the said symbol). See discussion in <http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01921.html>. Not fatal, but has side effects; one of which is making prebinding on darwin impossible.
>How-To-Repeat:

>Fix:
Patch to add patch-xx to patch the ...patchy thing, here: <http://www.ascia.fi/~jml/pkgsrc/darwin/gettext-fix.diff>. Apply to both gettext and gettext-lib. Does not include sha1 for distinfos as the patch name is likely to change when officially added to repo. 

Also is not enough to enable prebinding on darwin as gettext configure still adds "-unresolved suppress" linker flag.