Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410851 - net-print/cups-pk-helper-0.2.2 - cph-iface-mechanism.c:7615:10: error: field 'lock' has incomplete type
Summary: net-print/cups-pk-helper-0.2.2 - cph-iface-mechanism.c:7615:10: error: field ...
Status: RESOLVED DUPLICATE of bug 410773
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-04-05 09:42 UTC by Ian Abbott
Modified: 2012-04-05 14:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,10.06 KB, text/plain)
2012-04-05 09:43 UTC, Ian Abbott
Details
Ebuild patch - proposed fix (cups-pk-helper-0.2.2.ebuild.patch,451 bytes, patch)
2012-04-05 12:06 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2012-04-05 09:42:52 UTC
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.
Comment 1 Ian Abbott 2012-04-05 09:43:49 UTC
Created attachment 307865 [details]
Build log
Comment 2 Ian Abbott 2012-04-05 12:06:36 UTC
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.
Comment 3 Pacho Ramos gentoo-dev 2012-04-05 14:08:04 UTC

*** This bug has been marked as a duplicate of bug 410773 ***