compiling libdap on linux

James Gallagher jhrg at mac.com
Tue Nov 28 09:53:49 PST 2006


On Nov 27, 2006, at 5:56 PM, Roy Mendelssohn wrote:

> I have been trying to get libdap to compile on a Red hat Linux  
> machine.  Whether I use libdap-3.7.3 or libdap-3.6.2 I get the same  
> error, given below.  Help appreciated  (actually what I really am  
> trying to do is build gdal with opendap and I need the opendap  
> stuff to do that.)

Ouch! OK, what red hat, what compiler and what version of libxml2.  
I've been building with -Werror so I'm going to guess that the  
problem is with a new(er) libxml2, but that seems very odd.

But in the interim, try this. Run configure to build a Makefile,  
config.h, et c., and then edit config.h so that LIBXML2_6_16 is  
undefined (#define LIBXML.... --> #undef LIBXML2_6_16). Now try the  
build.

James
>
> -Roy M.
>
>
> if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H - 
> I. -I. -I. -I.  -I./gl -I/usr/local/include/libxml2 -I./GNU -g -O2 - 
> MT DataDDS.lo -MD -MP -MF ".deps/DataDDS.Tpo" -c -o DataDDS.lo  
> DataDDS.cc; \
> then mv -f ".deps/DataDDS.Tpo" ".deps/DataDDS.Plo"; else rm -f  
> ".deps/DataDDS.Tpo"; exit 1; fi
>  g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./gl -I/usr/local/include/ 
> libxml2 -I./GNU -g -O2 -MT DataDDS.lo -MD -MP -MF .deps/DataDDS.Tpo  
> -c DataDDS.cc  -fPIC -DPIC -o .libs/DataDDS.o
>  g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./gl -I/usr/local/include/ 
> libxml2 -I./GNU -g -O2 -MT DataDDS.lo -MD -MP -MF .deps/DataDDS.Tpo  
> -c DataDDS.cc -o DataDDS.o >/dev/null 2>&1
> if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H - 
> I. -I. -I. -I.  -I./gl -I/usr/local/include/libxml2 -I./GNU -g -O2 - 
> MT DDXParser.lo -MD -MP -MF ".deps/DDXParser.Tpo" -c -o  
> DDXParser.lo DDXParser.cc; \
> then mv -f ".deps/DDXParser.Tpo" ".deps/DDXParser.Plo"; else rm -f  
> ".deps/DDXParser.Tpo"; exit 1; fi
>  g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./gl -I/usr/local/include/ 
> libxml2 -I./GNU -g -O2 -MT DDXParser.lo -MD -MP -MF .deps/ 
> DDXParser.Tpo -c DDXParser.cc  -fPIC -DPIC -o .libs/DDXParser.o
> DDXParser.cc:863: excess elements in aggregate initializer
> make[2]: *** [DDXParser.lo] Error 1
> make[2]: Leaving directory `/home/rmendels/libdap-3.6.2'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rmendels/libdap-3.6.2'
> make: *** [all] Error 2
>
> -- 
> **********************
> "The contents of this message do not reflect any position of the  
> U.S. Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> 1352 Lighthouse Avenue
> Pacific Grove, CA 93950-2097
>
> e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
> voice: (831)-648-9029
> fax: (831)-648-8440
> www: http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
>

--
James Gallagher                jgallagher at opendap.org
OPeNDAP, Inc                   406.723.8663

-------------- next part --------------



More information about the Opendap-tech mailing list