[SGVLUG] trouble compiling libxslt2-2.6.27

Claude Felizardo cafelizardo at gmail.com
Thu Mar 29 13:29:52 PST 2007


On 3/29/07, James Neff <jneff at tethyshealth.com> wrote:
> Claude Felizardo wrote:
> > 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
> >
> Claude, thanks for the response.
>
>  gcc -v
> Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-58)

sounds like you have a recent enough compiler.  I was hoping you were
using pre 3.x which might explain the C89 warnings but they are just
that - warnings - but actually I don't recall when gcc 3.0 came out.


> Tried installing RPM:
>
>  rpm -Uhv libxml2-2.6.27-1.i386.rpm
> warning: libxml2-2.6.27-1.i386.rpm: V3 DSA signature: NOKEY, key ID de95bc1f
> error: Failed dependencies:
>         libc.so.6(GLIBC_2.3.4) is needed by libxml2-2.6.27-1
>         libc.so.6(GLIBC_2.4) is needed by libxml2-2.6.27-1
>         rtld(GNU_HASH) is needed by libxml2-2.6.27-1
>
>
> Is it safe for me to update GLIBC?  last time I did that I had a bad day.
>
> Thanks,
> James

I do enough code development during the day so I don't feel like doing
builds for stuff at home so I generally try the RPM route first.  You
might be able to install a parallel set of libraries but the last time
I tried that I gave up after several days of dependency hell and just
reinstalled to the latest distro.  Get's rid of a lot of cruft and I
usually need more disk space so it makes sense for me to do a fresh
install.

claude


More information about the SGVLUG mailing list