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

Sam Varshavchik <[email protected]> Tue, 22 Dec 2015 06:55:03 -0500
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Christian Ebert writes:

> * 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.

xlocale.h is probably the correct include file.

Recently I removed the internal code that uses unicode_local_chset_l(). You  
can patch this out of the header file, and the entire function from  
unicode.c, and this should work fine.

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

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJWeToXAAoJEGs6Yr4nnb8lmO0QAMiLD0umQ0LpGXhYSv2QWEss
Jh3nx5vvCkOpEgkG3uRY3kVf6ADG7b/ApMs+FwT7dJgQ8C1B1pE0N8d5eCwdqQFQ
RilJFksomGTme4mdntidWf+yvrqk6qslShPuxXU0qo8dvgxB8rOgsZyu/N9jOOF9
7KaX6B6blZBfAl6Hgibw9p/+M8BKhxyNjviN8llSkV94dmxXCIytdodCNXaOYHZ/
cg7Timi8z7teFrmrFqW+Ocgh46GJg9wNMyTHWqZVS4r8PAcb9mUtchCc1ARwVvbr
XVj4g10G33tNGnz7VyEyCl/PPZA/g1+NKZVFCZnN2j6hHvlGYIbzBW+3XO4IqY6U
UhbVHireh2tn4HdI56j0z43FH6mCsgL3M5m05ddUxbepEpTKYaYIWkYoku7TzrDF
/oXrBSrmtv1uMfPx7hkUwfwOhAZzZ+WkESk8yJa5ajq0U51ZqkXyuwkr+p9tVsze
u44UBPxrfbfqGbZqBqy4DZD+SIIoM9oVS13dMZe4AXFK32WZoyXIkF9HFfvMEqpM
UdJXtAIugMnxkXYP/ImKhGTQtqt98c6djb26Fv0MlodWK77vTJbfuiFqzd6JCEOh
qkR7UeBfZCVTw8TFriOvvPe790kRHxGjw7rvkyC8mNVOqMKRYQDRtkxvHR2A3nja
9HxF1uIkUqdXKGDiJJMB
=PwUc
-----END PGP SIGNATURE-----