Opened 15 years ago

Closed 15 years ago

#2947 closed defect (duplicate)

Swig 1.3.38 failure

Reported by: frankie Owned by: hobu
Priority: normal Milestone:
Component: PythonBindings Version: 1.6.0
Severity: major Keywords:
Cc:

Description

Same result with both python 2.5 and 2.6, just for notes.

klecker:~/debian/debian-gis/supported/gdal/gdal-1.6.0/swig/python$ make generate swig -Wall -I../include -I../include/python -I../include/python/docs -outdir "osgeo" -I/users/frankie/debian/debian-gis/supported/gdal/gdal-1.6.0 -c++ -python -o extensions/gdal_wrap.cpp gdal.i SWIG:1: Warning(125): Use of the include path to find the input file is deprecated and will not work with ccache. Please include the path when specifying the input file. swig -Wall -I../include -I../include/python -I../include/python/docs -outdir "osgeo" -I/users/frankie/debian/debian-gis/supported/gdal/gdal-1.6.0 -python -o extensions/gdalconst_wrap.c gdalconst.i SWIG:1: Warning(125): Use of the include path to find the input file is deprecated and will not work with ccache. Please include the path when specifying the input file. swig -Wall -I../include -I../include/python -I../include/python/docs -outdir "osgeo" -I/users/frankie/debian/debian-gis/supported/gdal/gdal-1.6.0 -c++ -python -o extensions/ogr_wrap.cpp ogr.i SWIG:1: Warning(125): Use of the include path to find the input file is deprecated and will not work with ccache. Please include the path when specifying the input file. swig -Wall -I../include -I../include/python -I../include/python/docs -outdir "osgeo" -I/users/frankie/debian/debian-gis/supported/gdal/gdal-1.6.0 -c++ -python -o extensions/osr_wrap.cpp osr.i SWIG:1: Warning(125): Use of the include path to find the input file is deprecated and will not work with ccache. Please include the path when specifying the input file. klecker:~/debian/debian-gis/supported/gdal/gdal-1.6.0/swig/python$ make build /usr/bin/python2.6 setup.py build setup.py:78: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.

import popen2

running build running build_py creating build creating build/lib.linux-i686-2.6 copying gdal.py -> build/lib.linux-i686-2.6 copying ogr.py -> build/lib.linux-i686-2.6 copying osr.py -> build/lib.linux-i686-2.6 copying gdalconst.py -> build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/osgeo copying osgeo/gdalconst.py -> build/lib.linux-i686-2.6/osgeo copying osgeo/gdal_array.py -> build/lib.linux-i686-2.6/osgeo copying osgeo/gdal.py -> build/lib.linux-i686-2.6/osgeo copying osgeo/ogr.py -> build/lib.linux-i686-2.6/osgeo copying osgeo/osr.py -> build/lib.linux-i686-2.6/osgeo copying osgeo/init.py -> build/lib.linux-i686-2.6/osgeo copying osgeo/gdalnumeric.py -> build/lib.linux-i686-2.6/osgeo running build_ext building 'osgeo._gdal' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/extensions gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.6 -I. -I/users/frankie/debian/debian-gis/supported/gdal/gdal-1.6.0/include -c extensions/gdal_wrap.cpp -o build/temp.linux-i686-2.6/extensions/gdal_wrap.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ extensions/gdal_wrap.cpp: In function 'int PyProgressProxy(double, const char*, void*)': extensions/gdal_wrap.cpp:2865: warning: the address of '_Py_NoneStruct' will never be NULL extensions/gdal_wrap.cpp: In function 'PyObject* _wrap_MajorObject_SetMetadataSWIG_0(PyObject*, PyObject*)': extensions/gdal_wrap.cpp:5205: warning: deprecated conversion from string constant to 'char*' extensions/gdal_wrap.cpp: In function 'PyObject* _wrap_RegenerateOverviews(PyObject*, PyObject*, PyObject*)': extensions/gdal_wrap.cpp:13843: error: 'PySwigObject' was not declared in this scope extensions/gdal_wrap.cpp:13843: error: 'sobj' was not declared in this scope extensions/gdal_wrap.cpp:13852: warning: unused variable 'v' error: command 'gcc' failed with exit status 1 make: * [build] Error 1

Change History (1)

comment:1 by Even Rouault, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #2872 that has been fixed in trunk (r16607, r16608) and branches/1.6 (r16629)

Note: See TracTickets for help on using tickets.