Re: [xslt] xsltlocale compilation issue



Rob Richards wrote:
The libxslt library is building fine, but I ran into issues trying to build PHP with the lib. I don't think the tests for determining the type of xsltLocale are correct.
Note that this all does build and link correctly under windows.

It errors out when hitting line 24 in xsltlocale.h:
typedef locale_t xsltLocale;

In order to get that defined though in /usr/include/locale.h in order to get locale_t defined I need __USE_GNU defined, which it is not during the PHP compile.
It does compile fine though if I use typedef __locale_t xsltLocale

Due to the locale changes _GNU_SOURCE should be defined for source code that links against libxslt. If that's a problem we can also change the typedef like you did.

Nick


--
aevum gmbh
rumfordstr. 4
80469 münchen
germany

tel: +49 89 3838 0653
http://aevum.de/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]