[gdal-dev] Problem installing gdal from source - dxf-related?

Andreas Neumann a.neumann at carto.net
Mon Oct 1 05:52:31 PDT 2012


 Hi,

 I tried to test the latest DXF fixes - but get an error message during 
 installation. The compile works fine, but during install I get the 
 following message:

 --------------------------------

 make[3]: Entering directory `/home/an/dev/gdal/ogr/ogrsf_frmts/dxf'
 /bin/bash /home/an/dev/gdal/libtool --mode=compile --tag=CXX g++ -g -O2 
 -Wall  -I.. -I../.. -I/home/an/dev/gdal/port -I/home/an/dev/gdal/gcore 
 -I/home/an/dev/gdal/alg -I/home/an/dev/gdal/ogr 
 -I/home/an/dev/gdal/ogr/ogrsf_frmts -DOGR_ENABLED 
 -I/home/an/dev/gdal/port  -c -o ../o/ogrdxfwriterlayer.lo 
 ogrdxfwriterlayer.cpp
 libtool: compile:  g++ -g -O2 -Wall -I.. -I../.. 
 -I/home/an/dev/gdal/port -I/home/an/dev/gdal/gcore 
 -I/home/an/dev/gdal/alg -I/home/an/dev/gdal/ogr 
 -I/home/an/dev/gdal/ogr/ogrsf_frmts -DOGR_ENABLED 
 -I/home/an/dev/gdal/port -c ogrdxfwriterlayer.cpp  -fPIC -DPIC -o 
 ../o/.libs/ogrdxfwriterlayer.o
 ogrdxfwriterlayer.cpp: In member function 'OGRErr 
 OGRDXFWriterLayer::WritePOINT(OGRFeature*)':
 ogrdxfwriterlayer.cpp:384:1: error: a function-definition is not 
 allowed here before '{' token
 ogrdxfwriterlayer.cpp:332:19: warning: unused variable 'poTool' 
 [-Wunused-variable]
 ogrdxfwriterlayer.cpp:1178:1: error: expected '}' at end of input
 ogrdxfwriterlayer.cpp:1178:1: warning: control reaches end of non-void 
 function [-Wreturn-type]
 make[3]: *** [../o/ogrdxfwriterlayer.lo] Error 1
 make[3]: Leaving directory `/home/an/dev/gdal/ogr/ogrsf_frmts/dxf'
 make[2]: *** [dxf-target] Error 2
 make[2]: Leaving directory `/home/an/dev/gdal/ogr/ogrsf_frmts'
 make[1]: *** [sublibs] Error 2
 make[1]: Leaving directory `/home/an/dev/gdal/ogr'
 make: *** [ogr-target] Error 2

 ----------------------------

 Tonight I will test on a different machine to see if the problem is 
 reproducible.

 Thank you if you have any idea how I can fix the problem,
 Andreas

-- 
 --
 Andreas Neumann
 Böschacherstrasse 10A
 8624 Grüt (Gossau ZH)
 Switzerland


More information about the gdal-dev mailing list