[xml] Compilation error



I'm trying to update libxml2 and libxslt on my system.

Linux version 2.4.2-2 (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-79)) #1 Sun Apr 8 20:41:30 EDT 2001

I compiled and installed libxml2 (2.6.29) without problem.
Then I tryed to do the same with libxslt:

rpm --rebuild libxslt-1.1.21-1.src.rpm

After a while I get this error:

i386-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python1.5 -I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -O2 -march=i386 -mcpu=i686 -Wall -MT libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c libxslt.c -fPIC -DPIC -o .libs/libxslt.o i386-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python1.5 -I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -O2 -march=i386 -mcpu=i686 -Wall -MT libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c libxslt.c -o libxslt.o >/dev/null 2>&1 if /bin/sh ../libtool --tag=CC --mode=compile i386-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python1.5 -I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -O2 -march=i386 -mcpu=i686 -Wall -MT types.lo -MD -MP -MF ".deps/types.Tpo" -c -o types.lo types.c; \ then mv -f ".deps/types.Tpo" ".deps/types.Plo"; else rm -f ".deps/types.Tpo"; exit 1; fi i386-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python1.5 -I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -O2 -march=i386 -mcpu=i686 -Wall -MT types.lo -MD -MP -MF .deps/types.Tpo -c types.c -fPIC -DPIC -o .libs/types.o
types.c: In function `libxml_xmlXPathObjectPtrConvert':
types.c:432: parse error before `PyBool_Check'
types.c:432: warning: implicit declaration of function `PyBool_Check'
types.c:432: parse error before `{'
types.c:436: warning: control reaches end of non-void function
types.c: At top level:
types.c:445: warning: type defaults to `int' in declaration of `str'
types.c:445: `obj' undeclared here (not in a function)
types.c:446: `obj' undeclared here (not in a function)
types.c:446: warning: initialization makes integer from pointer without a cast
types.c:446: initializer element is not constant
types.c:446: warning: data definition has no type or storage class
types.c:447: warning: type defaults to `int' in declaration of `ret'
types.c:447: warning: passing arg 1 of `xmlXPathWrapString' makes pointer from integer without a cast types.c:447: warning: initialization makes integer from pointer without a cast
types.c:447: initializer element is not constant
types.c:447: warning: data definition has no type or storage class
types.c:448: parse error before `}'
types.c:455: warning: type defaults to `int' in declaration of `set'
types.c:455: conflicting types for `set'
types.c:453: previous declaration of `set'
types.c:455: warning: initialization makes integer from pointer without a cast
types.c:455: initializer element is not constant
types.c:455: warning: data definition has no type or storage class
types.c:457: parse error before `for'
types.c:462: warning: type defaults to `int' in declaration of `cur'
types.c:462: conflicting types for `cur'
types.c:452: previous declaration of `cur'
types.c:462: warning: initialization makes integer from pointer without a cast
types.c:462: warning: data definition has no type or storage class
types.c:463: parse error before `if'
types.c:470: `inst' undeclared here (not in a function)
types.c:472: parse error before `if'
types.c:477: parse error before `if'
types.c:477: parse error before `&&'
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: warning: data definition has no type or storage class
types.c:477: parse error before `}'
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously declared here
types.c:477: `type' undeclared here (not in a function)
types.c:477: `__s2' undeclared here (not in a function)
types.c:477: parse error before `if'
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously defined here
types.c:477: warning: data definition has no type or storage class
types.c:477: parse error before `}'
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: warning: data definition has no type or storage class
types.c:477: parse error before `}'
types.c:477: redefinition of `__result'
types.c:477: `__result' previously defined here
types.c:477: `__s1' undeclared here (not in a function)
types.c:477: parse error before `if'
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously defined here
types.c:477: warning: data definition has no type or storage class
types.c:477: parse error before `}'
types.c:494: warning: type defaults to `int' in declaration of `ret'
types.c:494: redefinition of `ret'
types.c:447: `ret' previously defined here
types.c:494: warning: passing arg 1 of `xmlXPathWrapNodeSet' makes pointer from integer without a cast types.c:494: warning: initialization makes integer from pointer without a cast
types.c:494: initializer element is not constant
types.c:494: warning: data definition has no type or storage class
types.c:495: parse error before `}'
make[3]: *** [types.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/libxslt-1.1.21/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/libxslt-1.1.21/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/libxslt-1.1.21'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.51226 (%build)

Am I missing something?
How can I update my libxslt?

Best regards

Marco




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