graphics/gdal 1.9.0 does not build on CURRENT

Rainer Hurling rhurlin at gwdg.de
Wed May 23 15:51:59 UTC 2012


On 22.05.2012 22:45 (UTC+1), Rainer Hurling wrote:
> On 22.05.2012 20:15 (UTC+1), coder.tuxfamily wrote:
>> I have rewrote the patch.
>>
>> Maybe with this new patch...
>
> Thanks, but again it gives me the same failure:
>
> libtool: compile: cc -DNDEBUG -O2 -pipe -O2 -fno-strict-aliasing -pipe
> -msse3 -O2 -pipe -O2 -fno-strict-aliasing -pipe -msse3 -Wall
> -Wdeclaration-after-statement -DOGR_ENABLED -I/usr/local/include
> -I/usr/ports/graphics/gdal/work/gdal-1.9.0/port -I/usr/local/include
> -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local
> -I/usr/local/include -I/usr/local -I/usr/local/include
> -I/usr/local/include -I/usr/local/include -I/usr/local
> -I/usr/local/include -I/usr -I/usr/include -fPIC -I../../port
> -I../../gcore -I../../alg -I../../ogr/ -I/usr/local/include/python2.7
> -I/usr/local/lib/python2.7/site-packages/numpy/core/include
> -I/usr/ports/graphics/gdal/work/gdal-1.9.0/include -c
> extensions/gdal_wrap.cpp -fPIC -DPIC -o
> build/temp.freebsd-10.0-CURRENT-amd64-2.7/extensions/.libs/gdal_wrap.o
> cc1plus: warning: command line option "-Wdeclaration-after-statement" is
> valid for C/ObjC but not for C++
> extensions/gdal_wrap.cpp: In function 'PyObject*
> _wrap_VSIFTruncateL(PyObject*, PyObject*)':
> extensions/gdal_wrap.cpp:6845: error: 'VSIFTruncateL' was not declared
> in this scope
> extensions/gdal_wrap.cpp: In function 'PyObject*
> _wrap_MajorObject_SetMetadata__SWIG_0(PyObject*, PyObject*)':
> extensions/gdal_wrap.cpp:7220: warning: deprecated conversion from
> string constant to 'char*'
> error: command '/bin/sh' failed with exit status 1
> gmake[2]: *** [build] Fehler 1
> gmake[2]: Leaving directory
> `/usr/ports/graphics/gdal/work/gdal-1.9.0/swig/python'
> gmake[1]: *** [build] Fehler 2
> gmake[1]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.9.0/swig'
> gmake: *** [swig-modules] Fehler 2
> *** [do-build] Error code 1
> Stop in /usr/ports/graphics/gdal.
>
>
> I don't think there is a problem with finding libtool or some python
> scripts. I will rebuild all my py27- ports and swig, just to be sure.

OK, I think I get it. This failure does not happen, if swig is not 
installed. Then it builds and installs fine.

Do you have any idea what is going wrong with swig here?


More information about the freebsd-ports mailing list