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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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
>
>
>   
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to