Re: courier-unicode fails to build on Mac OS 10.10.5

Christian Ebert <[email protected]> Tue, 22 Dec 2015 09:36:40 +0000
Newsgroups gmane.mail.maildrop
Organization Black Trash Productions http://www.blacktrash.org
Message-ID <[email protected]>
* Sam Varshavchik on Monday, December 21, 2015 at 20:34:07 -0500
> Christian Ebert writes:
>> In file included from unicode.c:8:
>> ./courier-unicode.h:44:43: error: unknown type name 'locale_t'
>> extern const char *unicode_locale_chset_l(locale_t l);
>>                                          ^
>> unicode.c:41:36: error: unknown type name 'locale_t'
>> const char *unicode_locale_chset_l(locale_t l)
>>                                   ^
>> unicode.c:43:21: warning: implicit declaration of function
>> 'nl_langinfo_l' is invalid in C99
>>      [-Wimplicit-function-declaration]
>>        return fix_charset(nl_langinfo_l(CODESET, l));
>>                           ^
>> 1 warning and 2 errors generated.
>> Makefile:748: recipe for target 'unicode.lo' failed
>> make[1]: *** [unicode.lo] Error 1
>> make[1]: Leaving directory '/Users/chris/src/courier-unicode-1.4'
>> Makefile:556: recipe for target 'all' failed
>> make: *** [all] Error 2
>> 
>> 
>> $ sw_vers
>> ProductName:	Mac OS X
>> ProductVersion:	10.10.5
>> BuildVersion:	14F1509
>> $ uname -mprsv
>> Darwin 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09
>> PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64 i386
>> 
>> Any ideas?
> 
> Where do you have locale_t defined? Grep your system include files.

$ grep -rl locale_t *
_xlocale.h
c++/4.2.1/bits/locale_facets.h
c++/4.2.1/bits/time_members.h
libxslt/xsltlocale.h
printf.h
xlocale/__wctype.h
xlocale/_ctype.h
xlocale/_inttypes.h
xlocale/_langinfo.h
xlocale/_monetary.h
xlocale/_regex.h
xlocale/_stdio.h
xlocale/_stdlib.h
xlocale/_string.h
xlocale/_time.h
xlocale/_wchar.h
xlocale/_wctype.h
xlocale.h

I experimented with including [_]xlocale.h, but got type errors.

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions

------------------------------------------------------------------------------