Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id 3122863B86D for ; Wed, 29 Aug 2012 09:01:11 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 0997014A148; Wed, 29 Aug 2012 09:01:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CC5B214A1CF for ; Wed, 29 Aug 2012 09:01:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id eTgPPuokaNIc for ; Wed, 29 Aug 2012 09:01:02 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 04D9E14A1C6 for ; Wed, 29 Aug 2012 09:01:02 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 03963175DD; Wed, 29 Aug 2012 09:01:01 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 29 Aug 2012 09:01:01 +0000 From: "Steven Drake" Subject: CVS commit: pkgsrc/devel/gettext-lib To: pkgsrc-changes@NetBSD.org Reply-To: sbd@netbsd.org X-Mailer: log_accum Message-Id: <20120829090102.03963175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: sbd Date: Wed Aug 29 09:01:01 UTC 2012 Modified Files: pkgsrc/devel/gettext-lib: Makefile PLIST buildlink3.mk Log Message: Problem: 1) The libintl.h from gettext-lib renames the gettext functions so that they are prefixed with 'libintl_' (So that the functions named in libintl don't conflict with any that maybe in libc). 2) gettext-tools is _always_ built with gettext-lib. 3) The tools architecture may make gettext-tools a build dependence or someone may choose to install gettext-tools. 4) The OS has built in gettext. 5) For some reason ${PREFIX}/include is add to the compiler search path and libintl.h from gettext-lib is found before the system one. The result is that all the gettext functions are renamed to have the 'libintl_' prefix but libintl is not linked with and the following happens: ${FILENAME}: undefined reference to `libintl_gettext' ${FILENAME}: undefined reference to `libintl_textdomain' ${FILENAME}: undefined reference to `libintl_bindtextdomain' collect2: error: ld returned 1 exit status Solution: Hide libintl.h from gettext-lib in ${PREFIX}/include/gettext then add that to the compiler search path when realy needed. This should permanently fix PR's pkg/24326 pkg/36201 pkg/40153 pkg/43129 pkg/44009 and pkg/44016. Bump PKGREVISION. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 pkgsrc/devel/gettext-lib/Makefile cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/gettext-lib/PLIST cvs rdiff -u -r1.33 -r1.34 pkgsrc/devel/gettext-lib/buildlink3.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.