Add warning re: SWIG 2.0.7 for PHP binding

Bug #1015964 reported by Pietro Cerutti on 2012-06-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Medium
Chris Hillery

Bug Description

Hello, I'm the maintainer of the zorba port to FreeBSD. I'm preparing the update of our port to 2.5.0 and I have an issue while building the PHP5 bindings.

Here's a snippet from CMake's output with CMAKE_VERBOSE_MAKEFILE on. Please also find attached the CMakeCache.txt file generated for this build.

[ 99%] Building CXX object swig/php/CMakeFiles/zorba_api.dir/zorba_apiPHP5_wrap.cxx.o
cd /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php && /usr/bin/c++ -Dzorba_api_EXPORTS -O2 -pipe -fno-strict-aliasing -Wall -Wextra -D_FILE_OFFSET_BITS=64 -Wctor-dtor-privacy -Woverloaded-virtual -Wsign-promo -Winit-self -Wno-unused-parameter -fPIC -fvisibility=hidden -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/include -I/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-2.5.0/include -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -o CMakeFiles/zorba_api.dir/zorba_apiPHP5_wrap.cxx.o -c /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1486:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/TypeIdentifier.h:102:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1488:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/Iterator.h:105:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1489:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/DynamicContext.h:180:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1490:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/StaticContext.h:440:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1491:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/XQuery.h:161:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1492:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/ItemFactory.h:604:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1494:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/ItemSequence.h:53:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1495:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/Collection.h:180:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1496:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/CollectionManager.h:115:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1497:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/StaticCollectionManager.h:196:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1498:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/DocumentManager.h:35:7: warning: no newline at end of file
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1499:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/XmlDataManager.h:88:7: warning: no newline at end of file
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:3155:1: warning: "SWIG_exception" redefined
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1384:1: warning: this is the location of the previous definition
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:953: error: invalid conversion from 'const char*' to 'char*'
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_swig_zorba_api_alter_newobject(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1139: warning: unused variable 'thisown'
In file included from /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:3472:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: At global scope:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:2526: warning: 'virtual void DiagnosticHandler::error(const zorba::ZorbaException&)' was hidden
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.h:19: warning: by 'virtual void SwigDirector_DiagnosticHandler::error(const ZorbaException&)'
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In member function 'virtual void SwigDirector_DiagnosticHandler::error(const ZorbaException&)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:3484: warning: unused variable 'error'
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_StringPairVector__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:3607: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_StringPairVector__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:3647: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_StringPairVector(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4109: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_StringPair__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4141: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_StringPair__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4184: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_StringPair(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4409: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_StringVector__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4441: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_StringVector__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4481: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_StringVector(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4946: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_ItemVector__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:4978: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_ItemVector__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:5018: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_ItemVector(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:5480: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_SerializationOptions(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:5961: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_SerializationOptions(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:5994: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_IdentTypes(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:6026: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_IdentTypes(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:6059: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createAnyNodeType__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:6532: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createAnyNodeType__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:6565: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createCommentType__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:6846: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createCommentType__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:6879: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createEmptyType(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7279: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createItemType__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7320: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createItemType__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7353: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createNamedType__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7433: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createNamedType__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7483: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createPIType__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7566: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createPIType__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7599: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createTextType__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7663: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_TypeIdentifier_createTextType__SWIG_1(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7696: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_TypeIdentifier(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7752: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_Item__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7784: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_Item_createEmptyItem(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:7931: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_Item(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:9062: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_Iterator__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:9094: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_Iterator(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:9489: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_DynamicContext__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:9521: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_DynamicContext(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:10336: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_CompilerHints(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:10536: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_CompilerHints(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:10569: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_ZorbaConstants(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:10601: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_ZorbaConstants(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:10634: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_StaticContext(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:12753: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_XQuery__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:12785: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_XQuery(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:13441: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_Store__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:13473: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_Store(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:13571: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_InMemoryStore__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:13643: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_InMemoryStore(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:13793: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_InMemoryStore_getInstance(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:13826: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_ZorbaException(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:14134: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_XQueryException(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:14287: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_DiagnosticHandler(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:14320: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_DiagnosticHandler(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:14413: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void _wrap_new_Zorba__SWIG_0(int, zval*, zval**, zval*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:14445: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_Zorba(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:15384: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_ItemFactory(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:19670: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_ItemSequence(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:19906: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_Collection(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:20649: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_CollectionManager(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:21156: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_StaticCollectionManager(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:22010: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_DocumentManager(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:22390: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void __wrap_delete_XmlDataManager(zend_rsrc_list_entry*, const char*)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:22755: warning: label 'fail' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: At global scope:
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:23318: warning: missing initializer for member '_zend_function_entry::num_args'
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:23318: warning: missing initializer for member '_zend_function_entry::flags'
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:841: warning: 'void SWIG_landfill(zend_rsrc_list_entry*)' defined but not used
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:1127: warning: 'void zorba_api_destroy_globals(zend_zorba_api_globals*)' defined but not used
*** [swig/php/CMakeFiles/zorba_api.dir/zorba_apiPHP5_wrap.cxx.o] Error code 1

Stop in /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build.
*** [swig/php/CMakeFiles/zorba_api.dir/all] Error code 1

Stop in /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build.
*** [all] Error code 1

Stop in /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build.
*** [do-build] Error code 1

Stop in /usr/home/cerutti/FreeBSD/ports/textproc/zorba.
*** [build] Error code 1

Stop in /usr/home/cerutti/FreeBSD/ports/textproc/zorba.

Related branches

Pietro Cerutti (gahr) wrote :
Chris Hillery (ceejatec) wrote :

Buried in all the warnings, the actual error appears to be:

/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx: In function 'void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)':
/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/.build/swig/php/zorba_apiPHP5_wrap.cxx:953: error: invalid conversion from 'const char*' to 'char*'

I have marked this as targeted to Zorba 2.7 because Zorba 2.5 is already released and can't be targeted. However, we should fix this immediately. Rodolfo, please at least take a few minutes ASAP to isolate where this code is coming from (is it generated?) and see if there are any obvious reasons for the problem.

Changed in zorba:
importance: Undecided → High
assignee: nobody → Rodolfo Ochoa (rodolfo-ochoa)
milestone: none → 2.7
Chris Hillery (ceejatec) wrote :

Pietro, can you tell me what compiler and which version you are using? It looks like "cc" is actually gcc, based on the compiler options in your CMakeCache.txt, but I don't see the version identified.

Pietro Cerutti (gahr) wrote :

It's 4.2.1 here. I'm rebuilding with 4.6.4 right now, I'll post the results soon.

Pietro Cerutti (gahr) wrote :

Same with 4.6.3.

Pietro Cerutti (gahr) wrote :

4.6.4, sorry

Rodolfo Ochoa (rodolfo-ochoa) wrote :

This is a SWIG error, and this error appears only on some compilers, here is the reported error:
http://sourceforge.net/tracker/index.php?func=detail&aid=3479190&group_id=1645&atid=101645
here is another complain from Graphviz (don't use Graphviz fix)
http://www.graphviz.org/mantisbt/view.php?id=2177

a possible workaround over this bug is to cast type_name, in line 953, you should have a call like this:
return SWIG_ZTS_ConvertResourceData(p, type_name, ty TSRMLS_CC);

change to:
return SWIG_ZTS_ConvertResourceData(p, const_cast<const char*>(type_name), ty TSRMLS_CC);

Chris Hillery (ceejatec) wrote :

Pietro - if you could confirm whether Rodolfo's suggestion works, that would be great.

Rodolfo - would it be correct for us to include that change in the mainline Zorba source? Possibly with a compile flag to enable the const_cast?

Rodolfo Ochoa (rodolfo-ochoa) wrote :

I can't, this is a method generated by SWIG, the workaround is on this file generated by SWIG.

Pietro Cerutti (gahr) wrote :

Rodolfo, the line you're mentioning (return SWIG....) is at :955, and const_casting there doesn't help. A fix would be to change the definition of type_name at :944 from char * to const char*, but as you mentioned that's a generated file and patching there isn't really a solution..

I have tried to build zorba using swig-2.0.7 and it worked fine, so I guess depending on that version would be a solution (change 1.3.40 to 2.0.7 in CMakeLists.txt lines 325 and 327).

Chris Hillery (ceejatec) wrote :

Thanks for the update, Pietro. I don't think we want to make SWIG 2.0.7 a hard requirement simply because 1.3.40 seems to work on most platforms. However, I could certainly see adding a build warning and a note in the documentation that if you get compilation errors like this, you should try upgrading to a later SWIG version.

Are you un-stuck in providing the FreeBSD packages at this point? If so, I will re-title and lower the priority of this bug.

Pietro Cerutti (gahr) wrote :

Yes that sound reasonable, I'll be able to update our port as soon as swig is updated (we currently have 2.0.4). Thank you for your support, feel free to lower the priority of this bug or close it.

Chris Hillery (ceejatec) wrote :

Did you have this problem with SWIG 2.0.4? (Your CMakeCache.txt lists SWIG_VERSION as 1.3.40.) That would be useful information to narrow down the set of SWIG versions that have/don't have this problem.

Pietro Cerutti (gahr) wrote :

I haven't tried with 2.0.4 yet, will let you know on Monday.

Pietro Cerutti (gahr) wrote :

Good morning,

2.0.4 fails just the same as 1.3.40.

Chris Hillery (ceejatec) wrote :

Ok, thanks for your input and help, Pietro. I will update the build scripts and documentation to hopefullly alert future users to this problem.

Changed in zorba:
importance: High → Medium
assignee: Rodolfo Ochoa (rodolfo-ochoa) → Chris Hillery (ceejatec)
summary: - PHP5 bindings build failure
+ Add warning re: SWIG 2.0.7 for PHP binding
Chris Hillery (ceejatec) on 2012-09-19
Changed in zorba:
status: New → In Progress
Changed in zorba:
milestone: 2.7 → 2.8
Chris Hillery (ceejatec) on 2013-01-22
Changed in zorba:
milestone: 2.8 → 2.9
status: In Progress → Fix Committed
status: Fix Committed → Won't Fix
status: Won't Fix → Fix Released
Chris Hillery (ceejatec) on 2013-01-23
Changed in zorba:
milestone: 2.9 → 2.8
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.