[SGVLUG] trouble compiling libxslt2-2.6.27

Matt Wette matt.wette at earthlink.net
Thu Mar 29 16:57:58 PST 2007


James Neff wrote:
> I'm having trouble getting libxml and libxslt installed for our PHP 
> installation.  OS is RHE3 and i quickly get into dependency hell if I 
> try RPMs.  Our vendor wants us to simply upgrade to RHE5 and I'm trying 
> to save our company some money by doing it myself.

> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.2 -I../include 
> -I../include -I../python -g -O2 -pedantic
> -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment 
> -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitia
> lized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align 
> -Wwrite-strings -Waggregate-return -Wstrict-prototypes -
> Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT 
> types.lo -MD -MP -MF .deps/types.Tpo -c types.
> c  -fPIC -DPIC -o .libs/types.o
> In file included from /usr/include/python2.2/Python.h:73,
>                 from libxml_wrap.h:1,
>                 from types.c:9:
> /usr/include/python2.2/longobject.h:48: warning: ISO C89 does not 
> support `long long'

You could try removing "-pedantic" from the CFLAGS

> types.c: In function `libxml_xmlXPathObjectPtrConvert':
> types.c:528: syntax error before "PyBool_Check"
> types.c:528: warning: implicit declaration of function `PyBool_Check'
> types.c:528: syntax error before '{' token 

Did you check this file to see what the offending token is?

The above "long long" warnings are just that: warnings.




More information about the SGVLUG mailing list