Subject: Re: My Latest Error (gettext)
To: Randy Beaudreault <maccult@mac.com>
From: Jeffrey Putsch <jdputsch@attbi.com>
List: tech-pkg
Date: 07/20/2002 19:10:51
On Saturday, July 20, 2002, at 06:38  PM, Randy Beaudreault wrote:

> I have encountered another error with a build on Darwin/OS X (although 
> I don't think this is OS X related).  I get this error when attempting 
> to build gettext:
> 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 -lintl /usr/bin/ld: Undefined symbols: __tolower
> I assume this is related to the gettext code and not any OS X-pkgsrc 
> errors?
> -- Randy
>
Yup. I had to add a file (I called it patches/patch-local-jp) with these 
contents:

--- 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];

Jeff.