Opened 11 years ago

Closed 11 years ago

#4669 closed defect (fixed)

Java bindings are broken with swig 2.0.6

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.9.2
Component: JavaBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

Compilation issue with CPLXMLNode bindings :

libtool: compile:  gcc -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wdeclaration-after-statement -I/builddir/build/BUILD/gdal-1.9.1-fedora/port -I/builddir/build/BUILD/gdal-1.9.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.9.1-fedora/alg -I/builddir/build/BUILD/gdal-1.9.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.9.1-fedora/ogr/ogrsf_frmts -I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux -c gdalconst_wrap.c -o gdalconst_wrap.o >/dev/null 2>&1
/usr/bin/libtool --mode=compile --tag=CXX g++ -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic  -Wall -Wdeclaration-after-statement  -I/builddir/build/BUILD/gdal-1.9.1-fedora/port -I/builddir/build/BUILD/gdal-1.9.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.9.1-fedora/alg -I/builddir/build/BUILD/gdal-1.9.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.9.1-fedora/ogr/ogrsf_frmts -I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux -c gdal_wrap.cpp
libtool: compile:  g++ -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wdeclaration-after-statement -I/builddir/build/BUILD/gdal-1.9.1-fedora/port -I/builddir/build/BUILD/gdal-1.9.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.9.1-fedora/alg -I/builddir/build/BUILD/gdal-1.9.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.9.1-fedora/ogr/ogrsf_frmts -I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux -c gdal_wrap.cpp  -fPIC -DPIC -o .libs/gdal_wrap.o
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
gdal_wrap.cpp: In function '_CPLXMLNode* new__CPLXMLNode__SWIG_0(const char*)':
gdal_wrap.cpp:1048:45: error: cannot convert 'CPLXMLNode*' to '_CPLXMLNode*' in return
gdal_wrap.cpp: In function '_CPLXMLNode* new__CPLXMLNode__SWIG_1(CPLXMLNodeType, const char*)':
gdal_wrap.cpp:1051:53: error: cannot convert 'CPLXMLNode*' to '_CPLXMLNode*' in return
gdal_wrap.cpp: In function 'void delete__CPLXMLNode(_CPLXMLNode*)':
gdal_wrap.cpp:1054:33: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'void CPLDestroyXMLNode(CPLXMLNode*)'
gdal_wrap.cpp: In function 'retStringAndCPLFree* _CPLXMLNode_SerializeXMLTree(_CPLXMLNode*)':
gdal_wrap.cpp:1060:42: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'char* CPLSerializeXMLTree(CPLXMLNode*)'
gdal_wrap.cpp: In function 'retStringAndCPLFree* _CPLXMLNode_toString(_CPLXMLNode*)':
gdal_wrap.cpp:1063:42: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'char* CPLSerializeXMLTree(CPLXMLNode*)'
gdal_wrap.cpp: In function 'CPLXMLNode* _CPLXMLNode_SearchXMLNode(_CPLXMLNode*, const char*)':
gdal_wrap.cpp:1066:49: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'CPLXMLNode* CPLSearchXMLNode(CPLXMLNode*, const char*)'
gdal_wrap.cpp: In function 'CPLXMLNode* _CPLXMLNode_GetXMLNode(_CPLXMLNode*, const char*)':
gdal_wrap.cpp:1069:45: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'CPLXMLNode* CPLGetXMLNode(CPLXMLNode*, const char*)'
gdal_wrap.cpp: In function 'const char* _CPLXMLNode_GetXMLValue(_CPLXMLNode*, const char*, const char*)':
gdal_wrap.cpp:1072:58: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'const char* CPLGetXMLValue(CPLXMLNode*, const char*, const char*)'
gdal_wrap.cpp: In function 'void _CPLXMLNode_AddXMLChild(_CPLXMLNode*, CPLXMLNode*)':
gdal_wrap.cpp:1075:56: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'void CPLAddXMLChild(CPLXMLNode*, CPLXMLNode*)'
gdal_wrap.cpp: In function 'void _CPLXMLNode_AddXMLSibling(_CPLXMLNode*, CPLXMLNode*)':
gdal_wrap.cpp:1078:63: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'void CPLAddXMLSibling(CPLXMLNode*, CPLXMLNode*)'
gdal_wrap.cpp: In function 'CPLXMLNode* _CPLXMLNode_Clone(_CPLXMLNode*)':
gdal_wrap.cpp:1081:38: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'CPLXMLNode* CPLCloneXMLTree(CPLXMLNode*)'
gdal_wrap.cpp: In function 'int _CPLXMLNode_SetXMLValue(_CPLXMLNode*, const char*, const char*)':
gdal_wrap.cpp:1084:57: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'int CPLSetXMLValue(CPLXMLNode*, const char*, const char*)'
gdal_wrap.cpp: In function 'void _CPLXMLNode_StripXMLNamespace(_CPLXMLNode*, const char*, int)':
gdal_wrap.cpp:1087:60: error: cannot convert '_CPLXMLNode*' to 'CPLXMLNode*' for argument '1' to 'void CPLStripXMLNamespace(CPLXMLNode*, const char*, int)'
gdal_wrap.cpp: In function 'jint Java_org_gdal_gdal_gdalJNI_XMLNode_1Type_1get(JNIEnv*, jclass, jlong, jobject)':

Change History (2)

comment:1 by Even Rouault, 11 years ago

Fixed in trunk (r24439) and in branches/1.9 (r24440)

Waiting for 1.9.1 to be released before marking as closed and tagging it as 1.9.2

comment:2 by Even Rouault, 11 years ago

Milestone: 1.9.2
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.