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



On Fri, Nov 09, 2007 at 05:50:35PM -0600, 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.

  That's clearly not libxml2 code:

paphio:~/XML -> grep 'export CC' ./configure.in ./configure
paphio:~/XML ->

  Don't use the HP-UX source archives if they happen do do such horrible
kludges, trust the community work instead, sorry !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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