[xslt] Compile error on AIX 5.2 - libxslt-1.1.12



I'm having a compile error on AIX 5.2. I've built and configured
libxml with iconv support and pointed it to /usr. No problems on that
compile. When I try to compile with libxslt it chokes on
libexslt/date.c referring to a section in encoding.h which has a and
ifdef'd section in a struct for iconv support. Any ideas?

A member posted the same problem before but there wasn't a response...


gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I..
-I../libxslt -I../libexslt
-I/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include
-I/fs2_dev.mpichett/provls/vsync/lib/include/libxml2
-I/usr/include -g -O2 -Wall -g -O2 -Wall -c date.c
-Wp,-MD,.deps/date.TPlo  -DPIC -o .libs/date.o
In file included from
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/parser.h:796,
                 from
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/globals.h:18,
                 from
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/threads.h:35,
                 from
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/xmlmemory.h:216,
                 from
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/tree.h:1121,
                 from date.c:35:
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:136:
parse error before `iconv_t'
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:136:
warning: no semicolon at end of struct or union
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:137:
warning: type defaults to `int' in declaration of `iconv_out'
/fs2_dev.mpichett/provls/vsync/lib/libxml2-2.6.17/include/libxml/encoding.h:137:
warning: data definition has no type or storage class
date.c: In function `exsltDateCurrent':
date.c:764: warning: implicit declaration of function `localtime_r'
date.c:783: warning: implicit declaration of function `gmtime_r'
make[2]: *** [date.lo] Error 1
make[2]: Leaving directory
`/d1/p4/fs2_dev.mpichett.aixvid3/provls/vsync/lib/libxslt-1.1.12/libexslt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/d1/p4/fs2_dev.mpichett.aixvid3/provls/vsync/lib/libxslt-1.1.12'
make: *** [all] Error 2
[aixvid3:/fs2_dev.mpichett:mpichett]:/fs2_dev.mpichett/provls/vsync/lib/libxslt-1.1.12

The section of encoding.h it chokes on is included below:

typedef xmlCharEncodingHandler *xmlCharEncodingHandlerPtr;
struct _xmlCharEncodingHandler {
    char                       *name;
    xmlCharEncodingInputFunc   input;
    xmlCharEncodingOutputFunc  output;
#ifdef LIBXML_ICONV_ENABLED
    iconv_t                    iconv_in;
    iconv_t                    iconv_out;
#endif /* LIBXML_ICONV_ENABLED */
};

-- 
The secret of genius is to carry the spirit of the child into old age,
which means never losing your enthusiasm.
--Aldous Huxley


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