[SGVLUG] trouble compiling libxslt2-2.6.27
Claude Felizardo
cafelizardo at gmail.com
Thu Mar 29 12:56:33 PST 2007
On 3/29/07, James Neff <jneff at tethyshealth.com> 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.
>
> Right now trying to get libxml compiled and installed.
>
> ./configure went well.
>
> make gave me the problems below. I'll paste where it starts to look bad.
> Any assistance would be greatly appreciated.
>
> Thanks,
> James
>
>
>
> Making all in .
> make[3]: Entering directory `/home/mcsi/libxml2-2.6.27/python'
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I.. -I/usr/include/python2.2 -I../inclu
> de -I../include -I../python -g -O2 -pedantic -W -Wformat -Wunused
> -Wimplicit -Wreturn-type -Wswitch -Wcomment -
> Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses
> -Wshadow -Wpointer-arith -Wcast-align -Wwrite-
> strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
> -Wnested-externs -Winline -Wredundant-decls -M
> T libxml.lo -MD -MP -MF ".deps/libxml.Tpo" -c -o libxml.lo libxml.c; \
> then mv -f ".deps/libxml.Tpo" ".deps/libxml.Plo"; else rm -f
> ".deps/libxml.Tpo"; exit 1; fi
> 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
> libxml.lo -MD -MP -MF .deps/libxml.Tpo -c libx
> ml.c -fPIC -DPIC -o .libs/libxml.o
> In file included from /usr/include/python2.2/Python.h:73,
> from libxml.c:14:
> /usr/include/python2.2/longobject.h:48: warning: ISO C89 does not
> support `long long'
> /usr/include/python2.2/longobject.h:49: warning: ISO C89 does not
> support `long long'
> /usr/include/python2.2/longobject.h:50: warning: ISO C89 does not
> support `long long'
> /usr/include/python2.2/longobject.h:51: warning: ISO C89 does not
> support `long long'
[sniip]
What version of the gcc compiler are you using? What's the minimal
required to compile this version of libxml?
According to wikipedia, C89 means the 1989 version of ANSI C but looks
like 'long long' was added to C99 (1999/2000). Was your build
configured correctly?
I haven't compiled libxml on linux but I did on solaris a few years
ago and I think we were using gcc 3.2.2 then.
When you tried to install via RPM, did it say what version of the
compiler it wanted to install?
Try gcc -v to get the version info. If you have more than one version
installed, make sure you are using the correct one.
claude
More information about the SGVLUG
mailing list