trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

python-tqt: error: 'SIP_MODULE_NAME' was not declared in this scope

From: "David C. Rankin" <drankinatty@...>
Date: Thu, 05 Apr 2012 08:15:50 -0500
Seems like gcc 4.7 will bring more scope issues. The python-tqt errors received
were:

g++ -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/tqt
-I/opt/trinity/include -I/opt/tqt3/include -fpermissive -fPIC -O2 -Wall -W
-D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I.
-I/usr/include/python2.7 -I/opt/tqt3/mkspecs/default -I/opt/tqt3/include
-I/usr/X11R6/include -o sipqtTQPtrList0100TQNetworkOperation.o
sipqtTQPtrList0100TQNetworkOperation.cpp
g++ -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/tqt
-I/opt/trinity/include -I/opt/tqt3/include -fpermissive -fPIC -O2 -Wall -W
-D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I.
-I/usr/include/python2.7 -I/opt/tqt3/mkspecs/default -I/opt/tqt3/include
-I/usr/X11R6/include -o sipqtTQValueList0100TQTranslatorMessage.o
sipqtTQValueList0100TQTranslatorMessage.cpp
/build/src/python-tqt/sip/qt/qobject.sip:1256:1: warning: missing initializer
for member '_heaptypeobject::as_number' [-Wmissing-field-initializers]
/build/src/python-tqt/sip/qt/qobject.sip:1256:1: warning: missing initializer
for member '_heaptypeobject::as_mapping' [-Wmissing-field-initializers]
/build/src/python-tqt/sip/qt/qobject.sip:1256:1: warning: missing initializer
for member '_heaptypeobject::as_sequence' [-Wmissing-field-initializers]
/build/src/python-tqt/sip/qt/qobject.sip:1256:1: warning: missing initializer
for member '_heaptypeobject::as_buffer' [-Wmissing-field-initializers]
/build/src/python-tqt/sip/qt/qobject.sip:1256:1: warning: missing initializer
for member '_heaptypeobject::ht_name' [-Wmissing-field-initializers]
/build/src/python-tqt/sip/qt/qobject.sip:1256:1: warning: missing initializer
for member '_heaptypeobject::ht_slots' [-Wmissing-field-initializers]
qt/sipqtcmodule.cpp:14200:1: warning: narrowing conversion of 'PYTQT_VERSION'
from 'unsigned int' to 'int' inside { } is ill-formed in C++11 [-Wnarrowing]
qt/sipqtcmodule.cpp: In function 'void initqt()':
qt/sipqtcmodule.cpp:14332:40: error: 'SIP_MODULE_NAME' was not declared in this
scope
qt/sipqtcmodule.cpp:14357:103: error: expected ')' before string constant
/build/src/python-tqt/sip/qt/qobject.sip: At global scope:
/build/src/python-tqt/sip/qt/qobject.sip:1625:14: warning: 'void*
sipTQtCreateUniversalSlot(sipWrapper*, const char*, PyObject*, const char*,
const char**, int)' defined but not used [-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:1998:13: warning: 'void
sipTQtDestroyUniversalSlot(void*)' defined but not used [-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2010:14: warning: 'void*
sipTQtFindSlot(void*, const char*, PyObject*, const char*, const char**)'
defined but not used [-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2035:12: warning: 'int
sipTQtConnect(void*, const char*, void*, const char*, int)' defined but not used
[-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2043:12: warning: 'int
sipTQtDisconnect(void*, const char*, void*, const char*)' defined but not used
[-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2078:17: warning: 'sipSlot*
sipTQtFindSipslot(void*, void**)' defined but not used [-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2177:12: warning: 'int
sipTQtEmitSignal(PyObject*, const char*, PyObject*)' defined but not used
[-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2107:12: warning: 'int
sipTQtConnectPySignal(PyObject*, const char*, PyObject*, const char*)' defined
but not used [-Wunused-function]
/build/src/python-tqt/sip/qt/qobject.sip:2152:13: warning: 'void
sipTQtDisconnectPySignal(PyObject*, const char*, PyObject*, const char*)'
defined but not used [-Wunused-function]

  I'm going to try #define SIP_MODULE_NAME "sip" and see how far that gets me.
If you have some other suggestion or if that is wrong -- please let me know. Thanks.

-- 
David C. Rankin, J.D.,P.E.