net-print/cups-pk-helper-0.2.2 fails to build with the following errors: CC cups_pk_helper_mechanism-cph-iface-mechanism.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/polkit-1 -march=k8 -O2 -pipe -c -o cups_pk_helper_mechanism-cph-iface-mechanism.o `test -f 'cph-iface-mechanism.c' || echo './'`cph-iface-mechanism.c cph-iface-mechanism.c:7615:10: error: field 'lock' has incomplete type cph-iface-mechanism.c: In function 'cph_iface_mechanism_skeleton_finalize': cph-iface-mechanism.c:7817:3: warning: implicit declaration of function 'g_mutex_clear' cph-iface-mechanism.c:7817:3: warning: nested extern declaration of 'g_mutex_clear' cph-iface-mechanism.c: In function 'cph_iface_mechanism_skeleton_init': cph-iface-mechanism.c:7825:3: warning: implicit declaration of function 'g_mutex_init' cph-iface-mechanism.c:7825:3: warning: nested extern declaration of 'g_mutex_init' cph-iface-mechanism.c:7826:3: warning: implicit declaration of function 'g_main_context_ref_thread_default' cph-iface-mechanism.c:7826:3: warning: nested extern declaration of 'g_main_context_ref_thread_default' cph-iface-mechanism.c:7826:27: warning: assignment makes pointer from integer without a cast Reproducible: Always Steps to Reproduce: 1. emerge -1 =net-print/cups-pk-helper-0.2.2 Actual Results: See build log. One way to fix this is to force 'make' to regenerate the "src/cph-iface-mechanism.c" and "src/cph-iface-mechanism.h" files, either by 'rm'ing them or by 'touch'ing the "src/cups-pk-helper-mechanism.xml" file prior to running 'make'. I'm sure this could be done with a tweak in the ebuild's src_prepare(). The original versions of "src/cph-iface-mechanism.c" and "src/cph-iface-mechanism.h" were generated by 'gdbus-codegen' version 2.31.19, whereas the latest unmasked version of the Gentoo "dev-utils/gdbus-codegen" package is version 2.30.3.
Created attachment 307865 [details] Build log
Created attachment 307877 [details, diff] Ebuild patch - proposed fix Change src_prepare() to touch the "src/cups-pk-helper-mechanism.xml" file. This make the 'make' regenerate "src/cph-iface-mechanism.c" and "src/cph-iface-mechanism.h" using the currently installed 'gdbus-codegen'. Build succeeds with this mod.
*** This bug has been marked as a duplicate of bug 410773 ***