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



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.

Thanks all
byron*
*
James Dennett wrote:
-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On Behalf
Of
byron
Sent: Friday, November 09, 2007 2:57 PM
To: Rick Jones
Cc: xml gnome org
Subject: Re: [xml] build on HP-UX with GCC fails with "Compiler
notANSI
compliant"

Hi Rick,

I've already been setting the CC variable to gcc but it is still using
the "bundled" compiler?

R9MACG01:/mediacion/estadisticas/byron/libxml2-2.6.30 #echo $CC

Have you exported CC into the environment?
  CC=gcc ./configure ...
would do so temporarily (which is sufficient).

-- James





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