gdal make errors
Paul Smith
paul.oduro at SPPS.ORG
Wed Jan 12 14:55:20 PST 2005
On Wed, 12 Jan 2005 12:37:42 -0600, Paul Smith <paul.oduro at SPPS.ORG> wrote:
>Hello All
>
>I am getting make errors (snippet below) when I run
>
>make
>
>after ./configure --with-ogr --with-xerces=/path/to/xerces
>
>I suspect the error is the '--with-xerces' and also gml.
>
>I am using:
>gdal-1.2.5
>xerces-2.3.0
>on SLES9
>gcc-3.3.3-43.24
>
>I know using the newest dist always is setting yourself up but ....
>
>Any help would be greatly appreciated.
>
>paul
>
>ps
>
>Output from make
>.....
>g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c-
>src_2_3_0/include/x
>ercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../ogr -
>I../../../a
>lg -I../../../port -DHAVE_XERCES=1 -c gmlfeature.cpp -o ../o/gmlfeature.o
>>/dev/
>null 2>&1
>/bin/sh ../../../libtool --mode=compile g++ -Wall -O2 -I../xerces-c-
>src_2_3_
>0/include -I../xerces-c-src_2_3_0/include/xercesc -I.. -I../.. -
>I../../../port -
>I../../../gcore -I../../../ogr -I../../../alg -I../../../port -
>DHAVE_XERCES=1 -
>c -o ../o/gmlreader.o gmlreader.cpp
> g++ -Wall -O2 -I../xerces-c-src_2_3_0/include -I../xerces-c-
>src_2_3_0/include/x
>ercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../ogr -
>I../../../a
>lg -I../../../port -DHAVE_XERCES=1 -c gmlreader.cpp -fPIC -DPIC -
>o ../o/.libs/g
>mlreader.o
>In file included from gmlreader.cpp:132:
>gmlreaderp.h:64:34: util/PlatformUtils.hpp: No such file or directory
>gmlreaderp.h:65:35: sax2/DefaultHandler.hpp: No such file or directory
>gmlreaderp.h:66:35: sax2/ContentHandler.hpp: No such file or directory
>gmlreaderp.h:67:34: sax2/SAX2XMLReader.hpp: No such file or directory
>gmlreaderp.h:68:37: sax2/XMLReaderFactory.hpp: No such file or directory
>In file included from gmlreader.cpp:132:
>gmlreaderp.h:77: error: syntax error before `*' token
>gmlreaderp.h:78: error: `XMLCh' was not declared in this scope
>gmlreaderp.h:78: error: syntax error before `,' token
>gmlreaderp.h:79: error: syntax error before `*' token
>gmlreaderp.h:80: error: syntax error before `*' token
>gmlreaderp.h:81: error: syntax error before `*' token
>gmlreaderp.h:90: error: syntax error before `{' token
>gmlreaderp.h:99: error: syntax error before `public'
>gmlreaderp.h:101: error: destructors must be member functions
>gmlreaderp.h:101: error: virtual outside class declaration
>gmlreaderp.h:104: error: syntax error before `*' token
>gmlreaderp.h:110: error: syntax error before `*' token
>gmlreaderp.h:114: error: syntax error before `*' token
>gmlreaderp.h:117: error: syntax error before `&' token
>gmlreaderp.h:162: error: syntax error before `*' token
>gmlreaderp.h:163: error: syntax error before `*' token
>gmlreaderp.h:165: error: 'XMLPScanToken' is used as a type, but is not
>defined
> as a type.
>gmlreaderp.h:209: error: syntax error before `&' token
>gmlreader.cpp: In constructor `GMLReader::GMLReader()':
>gmlreader.cpp:157: error: `m_poGMLHandler' undeclared (first use this
>function)
>gmlreader.cpp:157: error: (Each undeclared identifier is reported only once
>for
> each function it appears in.)
>gmlreader.cpp:158: error: `m_poSAXReader' undeclared (first use this
>function)
>gmlreader.cpp: In member function `int GMLReader::SetupParser()':
>gmlreader.cpp:205: error: `XMLPlatformUtils' undeclared (first use this
> function)
>gmlreader.cpp:205: error: syntax error before `::' token
>gmlreader.cpp:208: error: syntax error before `&' token
>gmlreader.cpp: At global scope:
>gmlreader.cpp:219: error: syntax error before `if'
>gmlreader.cpp:226: error: ISO C++ forbids declaration of `m_poGMLHandler'
>with
> no type
>gmlreader.cpp:226: error: `int m_poGMLHandler' used prior to declaration
>gmlreader.cpp:226: error: syntax error before `(' token
>gmlreader.cpp:228: error: syntax error before `->' token
>gmlreader.cpp:229: error: syntax error before `->' token
>gmlreader.cpp:230: error: syntax error before `->' token
>gmlreader.cpp:231: error: syntax error before `->' token
>gmlreader.cpp:232: error: syntax error before `->' token
>gmlreader.cpp:246: error: syntax error before `->' token
>gmlreader.cpp:248: error: syntax error before `->' token
>gmlreader.cpp:259: error: ISO C++ forbids declaration of `m_bReadStarted'
>with
> no type
>gmlreader.cpp:262: error: ISO C++ forbids declaration of `PushState' with
no
> type
>gmlreader.cpp:262: error: invalid conversion from `GMLReadState*' to `int'
>gmlreader.cpp:264: error: syntax error before `return'
>gmlreader.cpp: In member function `void GMLReader::CleanupParser()':
>gmlreader.cpp:283: error: type `int' argument given to `delete', expected
> pointer
>gmlreader.cpp:284: warning: assignment to non-pointer type `int' from NULL
>gmlreader.cpp:284: warning: argument to non-pointer type `int' from NULL
>gmlreader.cpp: In member function `virtual GMLFeature*
>GMLReader::NextFeature()
> ':
>gmlreader.cpp:305: error: `m_oToFill' undeclared (first use this function)
>gmlreader.cpp:317: error: syntax error before `&' token
>gmlreader.cpp: At global scope:
>gmlreader.cpp:338: error: syntax error before `&' token
>gmlreader.cpp: In member function `void GMLReader::PushFeature(...)':
>gmlreader.cpp:348: error: `pszElement' undeclared (first use this function)
>gmlreader.cpp:371: error: `XMLCh' undeclared (first use this function)
>gmlreader.cpp:371: error: syntax error before `[' token
>gmlreader.cpp:373: error: `anFID' undeclared (first use this function)
>gmlreader.cpp:374: error: `attrs' undeclared (first use this function)
>make[2]: *** [../o/gmlreader.o] Error 1
>make[2]: Leaving directory `/usr/share/gdal-1.2.5/ogr/ogrsf_frmts/gml'
>make[1]: *** [gml-target] Error 2
>make[1]: Leaving directory `/usr/share/gdal-1.2.5/ogr/ogrsf_frmts'
>make: *** [sublibs] Error 2
>
>.....
Hello All
I just noticed there is a bug report (for windows however)
http://208.24.120.44/show_bug.cgi?id=324
Frank W. do you know if this has been resolved yet? Maybe I will be better
of using an older version of xerces then.
Paul
More information about the MapServer-users
mailing list