I tried to follow what you said but I'm still getting the same error:

Missing type converters:
...:1  xsltTopLevelFunction:2  xsltNumberDataPtr:1  xmlXPathObjectPtr:1  
xsltPointerListPtr:4  xmlNodePtr *:3  xmlChar **:2  
xmlXPathCompExprPtr:4  xsltExtInitFunction:2  xsltPreComputeFunction:1  
xsltCompilerCtxtPtr:2  char **:2  xsltElemPreCompPtr:2  
xmlXPathFunction:4  xmlNodeSetPtr:2  xmlXPathObjectPtr *:1  
xsltDecimalFormatPtr:2  xsltDebugTraceCodes:2  xsltSecurityPrefsPtr:11  
xmlDictPtr:1  xsltTransformFunction:5  xsltCompMatchPtr:3  void *:13  
xmlOutputBufferPtr:1  xmlHashTablePtr:1  pythonObject *:5  
xsltSortFunc:2  xsltNsMapPtr:1  xsltDocumentPtr:8  xsltStackElemPtr:3  
xsltTemplatePtr:4
touch gen_prog
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I. -I.. -I/usr/include/python2.2 -I/usr/include/libxml2 -I../libxslt 
-I.. -I../libexslt    -g -O2 -Wall -MT libxslt.lo -MD -MP -MF 
".deps/libxslt.Tpo" -c -o libxslt.lo libxslt.c; \
then mv -f ".deps/libxslt.Tpo" ".deps/libxslt.Plo"; else rm -f 
".deps/libxslt.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.2 
-I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -g -O2 -Wall -MT 
libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c libxslt.c  -fPIC -DPIC -o 
.libs/libxslt.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.2 
-I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -g -O2 -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 gcc -DHAVE_CONFIG_H -I. 
-I. -I.. -I/usr/include/python2.2 -I/usr/include/libxml2 -I../libxslt 
-I.. -I../libexslt    -g -O2 -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
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.2 
-I/usr/include/libxml2 -I../libxslt -I.. -I../libexslt -g -O2 -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/local/home/siteadm/download/NEW/libxslt-1.1.21/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/usr/local/home/siteadm/download/NEW/libxslt-1.1.21/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/usr/local/home/siteadm/download/NEW/libxslt-1.1.21'
make: *** [all] Error 2

Now I'm usind python 2.2.
Any hints how to solve this problem and install libxslt ?

Best regards

Marco


Daniel Veillard ha scritto:
> On Thu, Jul 26, 2007 at 12:18:55PM +0200, Marco Spinetti wrote:
>   
>> I compiled python 2.2.1 and installed in my system.
>> Now I have python 1.5 and 2.2.1 installed.
>>
>> ls -la /usr/bin/python*
>> -rwxr-xr-x    2 root     root       412236 Mar  3  2001 /usr/bin/python
>> -rwxr-xr-x    2 root     root       412236 Mar  3  2001 /usr/bin/python1.5
>> -rwxr-xr-x    2 root     root       837918 Jul 26 11:11 /usr/bin/python2
>> -rwxr-xr-x    2 root     root       837918 Jul 26 11:11 /usr/bin/python2.2
>>
>> The problerm is that whn I try to compile libxslt, it finds python 1.5 
>> and not 2.2.1.
>> can i tell it to use python2?
>>     
>
>   you will obviously need to rebuild libxml2 against that python
> and then libxslt:
> paphio:~/XML -> ./configure --help | grep python
>   --with-python[=DIR]     build Python bindings if found
> paphio:~/XML -> 
>
>   you need to point where the python 2.2 stuff has been installed
> export PYTHON=/usr/bin/python2.2 ; ./configure
>   may work too
>
> Daniel
>
>   

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to