Hi list I am trying to fix a sip/gcc-6 related bug in package pyqwt3d but I don't know how.
OpeGL_mod.sip contains const int GL_2D; const int GL_3D; const int GL_3D_COLOR; .... which is converted to sipOpenGLcmodule.cpp which contains: static sipIntInstanceDef intInstances[] = { {sipName_GL_2D, GL_2D}, {sipName_GL_2_BYTES, GL_2_BYTES}, {sipName_GL_3D, GL_3D}, ...... {0, 0} }; This fails to compile with the following message: make[2]: Entering directory '/home/gudjon/nb/pyqwt3d/ pyqwt3d-0.1.7~cvs20090625/build/py2.7-qt4/configure/OpenGL_Qt4' g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security - Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG - DGL2PS_HAVE_ZLIB -DHAS_NUMPY -DQT_NO_DEBUG -DQT_OPENGL_LIB -I. -I/usr/include/ qwtplot3d-qt4 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/ numpy/core/include -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/ usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -o sipOpenGLcmodule.o sipOpenGLcmodule.cpp sipOpenGLcmodule.cpp:4445:1: error: narrowing conversion of ‘4294967295u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing] }; sipIntInstanceDef is defined in: /usr/include/python2.7/sip.h typedef struct _sipIntInstanceDef { /* The int name. */ const char *ii_name; /* The int value. */ int ii_val; } sipIntInstanceDef; But some of the OpenGL parameters are out of range for int. Does anyone have a clue on how to fix this? Regards Gudjon