GNOME Bugzilla – Bug 349623
Build failure due to "discards qualifiers from pointer target type"
Last modified: 2006-08-08 19:22:36 UTC
Please describe the problem: Here is a log of my `jhbuild buildone gst-python` gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/gnome2/include/python2.4 -I/opt/gnome2/include/pygtk-2.0 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include -pthread -I/opt/gnome2/include/gstreamer-0.10 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include -I/opt/gnome2/include/libxml2 -Wall -Werror -fno-strict-aliasing -g -O2 -lz -MT _gst_la-gst.lo -MD -MP -MF .deps/_gst_la-gst.Tpo -c gst.c -fPIC -DPIC -o .libs/_gst_la-gst.o cc1: warnings being treated as errors gst.c: In function 'pygst_add_constants': gst.c:21899: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21900: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21901: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21902: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21903: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21904: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21906: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21907: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21908: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21909: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21910: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21911: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21912: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type gst.c:21913: warning: passing argument 2 of 'PyModule_AddIntConstant' discards qualifiers from pointer target type make[3]: *** [_gst_la-gst.lo] Error 1 make[3]: Leaving directory `/home/luca/cvs/gnome2/gst-python/gst' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/luca/cvs/gnome2/gst-python/gst' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/luca/cvs/gnome2/gst-python' make: *** [all] Error 2 Steps to reproduce: 1. 2. 3. Actual results: Warnings stop the build Expected results: Fix warnings :-) Does this happen every time? Other information:
2006-08-08 Edward Hervey <edward@fluendo.com> * codegen/codegen.py: newer pygobject's pyg_constant_strip_prefix() now return a const gchar * whereas PyModule_AddIntConstant() takes a normal gchar*. Closes #349623