Subject: pkg/18357: gettext fails to build on Mac OS X/Darwin
To: None <gnats-bugs@gnats.netbsd.org>
From: None <maccult@pacbell.net>
List: netbsd-bugs
Date: 09/20/2002 11:40:30
>Number:         18357
>Category:       pkg
>Synopsis:       gettext fails to build on Mac OS X/Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 20 11:41:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Randy Beaudreault
>Release:        
>Organization:
>Environment:
Darwin localhost 5.5 Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
Building gettext on Mac OS X.1.5 gives this error:
cc -I/usr/pkgsrc/devel/gettext/work/.buildlink/include -O -o gettext gettextp.o  -L/usr/pkgsrc/devel/gettext/work/.buildlink/lib ../lib/libnlsut.a -L/usr/pkg/lib -lintl
/usr/bin/ld: Undefined symbols:
__tolower

There is supposedly a patch for this but I haven't gotten the patch to work yet.  (I've included the potential patch below.)
>How-To-Repeat:
Build gettext under pkgsrc.
>Fix:
--- intl/l10nflist.c.orig       Sat Apr 20 00:14:00 2002
+++ intl/l10nflist.c    Sat Apr 20 00:14:06 2002
@@ -382,7 +382,7 @@

       for (cnt = 0; cnt < name_len; ++cnt)
        if (isalpha (codeset[cnt]))
-         *wp++ = _tolower (codeset[cnt]);
+         *wp++ = tolower (codeset[cnt]);
        else if (isdigit (codeset[cnt]))
          *wp++ = codeset[cnt];

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