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" fiIt 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 BehalfOfbyron 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 "CompilernotANSIcompliant" 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 $CCHave you exported CC into the environment? CC=gcc ./configure ... would do so temporarily (which is sufficient). -- James