Opened 19 years ago
Last modified 19 years ago
#888 closed defect (fixed)
GDAL CVS 12:30 11.07.2005 fails to build at ili2reader.o
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | minor | Keywords: | |
Cc: |
Description
Here go few lines of output prior to failure: g++ -Wall -march=athlon-xp -O2 -mfpmath=sse -s -pipe -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/xercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../alg -I../../../ogr -I../../../ogr/ogrsf_frmts -I/usr/include/python2.3/Numeric -I/usr/include/mpatrol -I/usr/include/freetype2 -I/usr/lib/qt3/include -I/usr/include/pgsql -I/usr/include/readline -D_FILE_OFFSET_BITS=64 -I../../../port -DHAVE_XERCES=1 -c ili1reader.cpp -o ../o/ili1reader.o >/dev/null 2>&1 /bin/sh ../../../libtool --mode=compile g++ -Wall -march=athlon-xp -O2 -mfpmath=sse -s -pipe -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/xercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../alg -I../../../ogr -I../../../ogr/ogrsf_frmts -I/usr/include/python2.3/Numeric -I/usr/include/mpatrol -I/usr/include/freetype2 -I/usr/lib/qt3/include -I/usr/include/pgsql -I/usr/include/readline -D_FILE_OFFSET_BITS=64 -I../../../port -DHAVE_XERCES=1 -c -o ../o/ili2reader.o ili2reader.cpp g++ -Wall -march=athlon-xp -O2 -mfpmath=sse -s -pipe -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/xercesc -I.. -I../.. -I../../../port -I../../../gcore -I../../../alg -I../../../ogr -I../../../ogr/ogrsf_frmts -I/usr/include/python2.3/Numeric -I/usr/include/mpatrol -I/usr/include/freetype2 -I/usr/lib/qt3/include -I/usr/include/pgsql -I/usr/include/readline -D_FILE_OFFSET_BITS=64 -I../../../port -DHAVE_XERCES=1 -c ili2reader.cpp -fPIC -DPIC -o ../o/.libs/ili2reader.o In file included from ogr_ili2.h:40, from ili2reader.cpp:36: ili2reader.h:57: error: expected `0' before "" ili2reader.h:57: error: invalid initializer for virtual method `virtual std::list<OGRLayer*, std::allocator<OGRLayer*> > IILI2Reader::GetLayers()' ili2reader.h:57: error: expected `;' before "" In file included from ogr_ili2.h:41, from ili2reader.cpp:36: iom/iom.h:355:7: warning: no newline at end of file make[3]: *** [../o/ili2reader.o] Error 1 make[3]: Leaving directory `/home/trawiarz/src/gdal/ogr/ogrsf_frmts/ili' make[2]: *** [ili-target] Error 2 make[2]: Leaving directory `/home/trawiarz/src/gdal/ogr/ogrsf_frmts' make[1]: *** [sublibs] Error 2 make[1]: Leaving directory `/home/trawiarz/src/gdal/ogr' make: *** [ogr-target] Error 2 Was configured OK as follows: ./configure --with-hdf4=/usr/local/lib --with-grass=no --with-libgrass=no --with-libz=internal --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-geos=yes --with-pg=/usr/bin/pg_config --with-sqlite=/usr/local/lib --with-xerces Maciek Sieczka
Change History (4)
comment:2 by , 19 years ago
> I don't seem to be seeing the same problem, but I did have to make a > number > of changes to get the code Interlis code building on my system. Could you > try again with the latest in CVS? > > What version of Xerces do you have installed? From Maciek: libxerces-c25-2.5.0-0.20040818.1mdk.i586.rpm > I have 2.2 and had to fiddle to get it working. Strange thing is that today's Gdal didn't want to build at all - even with xerces disabled in configure. I'll do the CVS checkout tomorrow and let you know.
comment:3 by , 19 years ago
Gdal from CVS builds fine today. But my setup has changed also: now it's gcc 3.4.3 and friends from Mandrake 10.2/Mandriva 2005 (originally the bug report regarded gcc 3.4.1, Mandrake 10.1), if that matters. However, there is one error though ignored: make[1]: Entering directory `/home/trawiarz/src/gdal/pymod' GNUmakefile:40: warning: overriding commands for target `_gdalmodule.la' GNUmakefile:34: warning: ignoring old commands for target `_gdalmodule.la' swig -python gdal.i make[1]: swig: Command not found make[1]: [gdal_wrap.c] Error 127 (ignored) /bin/sh ../libtool --mode=compile gcc -fPIC -DHAVE_NUMPY -Wall -march=athlon-x p -O2 -mfpmath=sse -s -fomit-frame-pointer -s -pipe -D_FILE_OFFSET_BITS=64 -I ../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts -I/usr/include/python2 .4 -I/usr/include/python2.4 -I/usr/include/python2.3/Numeric -I/usr/include/mpat rol -I/usr/include/freetype2 -I/usr/lib/qt3/include -I/usr/include/pgsql -I/usr/ include/readline -I/usr/include/libgcj-3.4.3 -D_FILE_OFFSET_BITS=64 -I../port - c -o gdal_wrap.o gdal_wrap.c mkdir .libs <snip> gdal_wrap.c:211: warning: 'SWIG_addvarlink' defined but not used I didn't have swig installed, but I didn't specify I wanted it. Or do I have to want it? Seems like this needs a fix at configure. Also, in spite of --with-xerces=no, make.log informs about several missing includes related: cfortHdf.h:283: warning: 'c2fstrv' defined but not used cfortHdf.h:299: warning: 'f2cstrv' defined but not used cfortHdf.h:346: warning: 'vkill_trailing' defined but not used cfortHdf.h:393: warning: 'num_elem' defined but not used cfortHdf.h:443: warning: '__cfztringv' defined but not used cfortHdf.h:283: warning: 'c2fstrv' defined but not used cfortHdf.h:299: warning: 'f2cstrv' defined but not used cfortHdf.h:346: warning: 'vkill_trailing' defined but not used cfortHdf.h:393: warning: 'num_elem' defined but not used cfortHdf.h:443: warning: '__cfztringv' defined but not used cfortHdf.h:283: warning: 'c2fstrv' defined but not used cfortHdf.h:299: warning: 'f2cstrv' defined but not used cfortHdf.h:346: warning: 'vkill_trailing' defined but not used cfortHdf.h:393: warning: 'num_elem' defined but not used cfortHdf.h:443: warning: '__cfztringv' defined but not used Why? Cheers Maciek
comment:4 by , 19 years ago
Maciek, The last set of messages seem to be HDF, not Xerces related. The swig stuff is a danger of building from CVS. If I commit gdal.i file after the gdal_wrap.c derived from it, the makefiles will try and regenerate. The SWIG_addvarlink warning is not significant and can be ignored.
Note:
See TracTickets
for help on using tickets.