[xslt] Syntax error before 'xmlXPathCompExprPtr' when cross-compiling



Title: Syntax error before 'xmlXPathCompExprPtr' when cross-compiling

Hi,

I am trying to cross-compile libxslt for arm, but have run into a problem I haven't managed to solve:

-------------
arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I/home/home1/arvid/arm-owb/target/fs/usr/local/include/libxml2 -mcpu=arm926ej-s -Wall -MT attrvt.lo -MD -MP -MF .deps/attrvt.Tpo -c attrvt.c  -fPIC -DPIC -o .libs/attrvt.o
In file included from xsltutils.h:23,
                 from attrvt.c:26:
xsltInternals.h:353: error: syntax error before 'xmlXPathCompExprPtr'
xsltInternals.h:353: warning: no semicolon at end of struct or union
xsltInternals.h:354: warning: type defaults to 'int' in declaration of 'usecomp'
xsltInternals.h:354: warning: data definition has no type or storage class
xsltInternals.h:357: error: syntax error before '}' token
xsltInternals.h:1411: error: syntax error before 'xmlXPathCompExprPtr'
xsltInternals.h:1411: warning: no semicolon at end of struct or union
xsltInternals.h:1414: error: syntax error before '}' token
xsltInternals.h:1437: error: syntax error before 'xmlXPathObjectPtr'
xsltInternals.h:1437: warning: no semicolon at end of struct or union
xsltInternals.h:1445: error: syntax error before '}' token
xsltInternals.h:1697: error: syntax error before 'xmlNodeSetPtr'
xsltInternals.h:1697: warning: no semicolon at end of struct or union
xsltInternals.h:1703: error: syntax error before 'xpathCtxt'
xsltInternals.h:1703: warning: type defaults to 'int' in declaration of 'xpathCtxt'
xsltInternals.h:1703: warning: data definition has no type or storage class
... etc
-------------

I configured libxslt with
"--host=arm-unknown-linux-gnu --prefix=/usr/local --with-libxml-prefix=/home/home1
/arvid/arm-owb/target/fs/usr/local --without-crypto --without-python"

libxml2 is installed in the correct place as far as I can tell - /home/home1/arvid/arm-owb/target/fs/usr/local/include/libxml2 contains a libxml folder which in turn contains header files. (There's also a native installation of libxml2 on the machine.)

My toolchain is gcc-4.0.2 and glibc-2.3.2.

Any ideas?

Best regards,
Arvid Brodin



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