Subject: pkg/20396: building gettext-0.11.5 on darwin 6
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yves@gnu-darwin.org>
List: netbsd-bugs
Date: 02/17/2003 13:20:08
>Number:         20396
>Category:       pkg
>Synopsis:       building gettext-0.11.5 on darwin 6
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 17 13:21:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Yves de Champlain
>Release:        
>Organization:
gnu-darwin
>Environment:
Darwin Bilbo.local. 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 PST 2003; root:xnu/xnu-344.26.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
build fails with libgettext undefined symbol
>How-To-Repeat:
bmake install in devel/gettext
>Fix:
I fixed the problem with this patch :

--- Makefile.orig	Sun Feb 16 14:33:17 2003
+++ Makefile	Sun Feb 16 14:33:37 2003
@@ -32,6 +32,12 @@
 CONFIGURE_ENV+=		HAVE_JAVAC_IN_PATH=
 CONFIGURE_ENV+=		HAVE_JIKES_IN_PATH=
 
+.include "../../mk/bsd.prefs.mk"
+
+.if	${OPSYS} == "Darwin"
+CPPFLAGS+=		"-D_INTL_REDIRECT_MACROS=1"
+.endif
+
 post-install:
 	cd ${WRKSRC}/intl; ${MAKE_PROGRAM} install-data

>Release-Note:
>Audit-Trail:
>Unformatted: