GNOME Bugzilla – Bug 737874
fails to build because of PyGI* redefinitions
Last modified: 2014-10-28 03:34:23 UTC
Hi. Trying to build pygobject 3.14.0 fails with: /usr/bin/libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -DPY_SSIZE_T_CLEAN -I/usr/local/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -DPY_SSIZE_T_CLEAN -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/gobject-introspection-1.0 -pthread -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O2 -pipe -Wall -Werror=unused-variable -fno-strict-aliasing -Werror=declaration-after-statement -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -MT _gi_la-gobjectmodule.lo -MD -MP -MF .deps/_gi_la-gobjectmodule.Tpo -c -o _gi_la-gobjectmodule.lo `test -f 'gobjectmodule.c' || echo './'`gobjectmodule.c cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -DPY_SSIZE_T_CLEAN -I/usr/local/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -DPY_SSIZE_T_CLEAN -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/gobject-introspection-1.0 -pthread -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O2 -pipe -Wall -Werror=unused-variable -fno-strict-aliasing -Werror=declaration-after-statement -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -MT _gi_la-gobjectmodule.lo -MD -MP -MF .deps/_gi_la-gobjectmodule.Tpo -c gobjectmodule.c -fPIC -DPIC -o .libs/_gi_la-gobjectmodule.o In file included from pygi-error.h:26, from gobjectmodule.c:40: pygi-cache.h:210: error: redefinition of typedef 'PyGIFunctionCache' pygi-cache.h:34: error: previous declaration of 'PyGIFunctionCache' was here pygi-cache.h:216: error: redefinition of typedef 'PyGIVFuncCache' pygi-cache.h:35: error: previous declaration of 'PyGIVFuncCache' was here Error while executing cc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -DPY_SSIZE_T_CLEAN -I/usr/local/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -DPY_SSIZE_T_CLEAN -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/gobject-introspection-1.0 -pthread -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O2 -pipe -Wall -Werror=unused-variable -fno-strict-aliasing -Werror=declaration-after-statement -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -MT _gi_la-gobjectmodule.lo -MD -MP -MF .deps/_gi_la-gobjectmodule.Tpo -c gobjectmodule.c -fPIC -DPIC -o .libs/_gi_la-gobjectmodule.o Makefile:731: recipe for target '_gi_la-gobjectmodule.lo' failed
Gentle reminder about this issue...
Thanks for the report. Pushed fixes for 3.14 and 3.15: https://git.gnome.org/browse/pygobject/commit/?h=pygobject-3-14&id=0de827190e7 https://git.gnome.org/browse/pygobject/commit/?id=3b70f5bc8e59