Re: [xml] build on HP-UX with GCC fails with "Compiler notANSI compliant"



Sorry **mistake** I downloaded the source from http://hpux.connect.org.uk/ not xmlsoft.

libxml2-2.6.30-src-11.11.tar

The available binary libxml2-2.6.30-hppa-11.11.depot.gz was a 32bit binary.

byron wrote:
You could only download a 32bit binary from the HP-UX porting archives - http://hpux.connect.org.uk/ and so I had to download the source from http://www.xmlsoft.org/

byron

Rick Jones wrote:
byron wrote:
Well I've managed to get it compiling now by modifying the configure script in the following section.

if [ "`uname -s`" = "HP-UX" ]
then
export prefix="/usr/local"
export PATH="$prefix/bin:$PATH"
if [ "`uname -m`" = "ia64" ]
then
export libdir="$prefix/lib/hpux32"
fi
* export CC="cc"*
export CFLAGS="-O -I/usr/local/include"
export CPPFLAGS="$CFLAGS"
export CXX="aCC"
export CXXFLAGS="$CFLAGS"
export F77="/bin/true"
export RANLIB="/bin/true"
export enable_shared="yes"
export enable_static="yes"
fi


It was hard coding CC as "cc" so replaced that line with the following* export CC="${CC-cc}" *and was able build the library successfully.

If you got those source bits from the HP-UX porting archives - http://hpux.connect.org.uk/ or its mirrors, then that may be a change they made related to their always using (once again after a haitus) the HP ANSI C compiler - ie the unbundled one.

You might want to compare those bits with the bits you can get directly from http://www.xmlsoft.org/

rick jones





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