| View previous topic :: View next topic |
| Author |
Message |
Fleta n00b


Joined: 12 Dec 2004 Posts: 68
|
Posted: Wed Sep 07, 2005 1:34 am Post subject: libgnomeprintui failed to compile |
|
|
I tried to compile inkscape | Code: | # emerge -pv inkscape
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] gnome-base/libgnomeprintui-2.10.2 -debug -doc 0 kB
[ebuild N ] media-gfx/inkscape-0.41-r1 -bonobo -debug -doc +gnome -inkjar +mmx +perl -plugin +python +spell 0 kB
| but got this
| Code: | gnome-print-job-preview.c:2493: warning: type defaults to `int' in declaration of `GdkEventOwnerChange'
gnome-print-job-preview.c:2493: error: parse error before '*' token
gnome-print-job-preview.c: In function `cb_clipboard_owner_changed':
gnome-print-job-preview.c:2496: error: `jp' undeclared (first use in this function)
gnome-print-job-preview.c:2496: error: (Each undeclared identifier is reported only once
gnome-print-job-preview.c:2496: error: for each function it appears in.)
gnome-print-job-preview.c:2497: error: `clipboard' undeclared (first use in this function)
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomecanvas-2.0 -DG_LOG_DOMAIN=\"libgnomeprintui\" -DVERSION=\"2.10.2\" -DWE_ARE_LIBGNOMEPRINT_INTERNALS -DGNOMELOCALEDIR=\"/usr/share/locale\" -DGNOME_PRINT_LIBDIR=\"/usr/lib/gnome-print\" -DBINDIR=\"/usr/bin\" -DDATADIR=\"/usr/share\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -march=pentium-m -pipe -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -MT gnome-print-copies.lo -MD -MP -MF .deps/gnome-print-copies.Tpo -c gnome-print-copies.c -o gnome-print-copies.o >/dev/null 2>&1
make[4]: *** [gnome-print-job-preview.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/libgnomeprintui-2.10.2/work/libgnomeprintui-2.10.2/libgnomeprintui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/libgnomeprintui-2.10.2/work/libgnomeprintui-2.10.2/libgnomeprintui'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/libgnomeprintui-2.10.2/work/libgnomeprintui-2.10.2/libgnomeprintui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libgnomeprintui-2.10.2/work/libgnomeprintui-2.10.2'
make: *** [all] Error 2
!!! ERROR: gnome-base/libgnomeprintui-2.10.2 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.
|
|
|
| Back to top |
|
 |
geki Advocate


Joined: 13 May 2004 Posts: 2075 Location: Germania
|
Posted: Wed Sep 07, 2005 10:57 am Post subject: |
|
|
what shows
| Quote: | emerge -pv libgnomeprint
emerge -eDpv inkscape | are there any updated versions of gnome packages that you did not merge yet?
| Quote: | | -I/usr/include/libgnomeprint-2.2 | looks strange to me. but i may be wrong. _________________ LibreOffice|split-boost|trans-follow xcb port|instruction set analyzer
_________________
sanity . . . is not with me |
|
| Back to top |
|
 |
Mayfoev n00b

Joined: 08 Sep 2005 Posts: 3
|
Posted: Thu Sep 08, 2005 1:02 am Post subject: |
|
|
I've had the exact same problem last night.
This seems caused by the fact that the macro G_GNUC_UNUSED is not identified as the macro defined in glib/gmacros.h.
So the preprocessor seems to consider it is an unknown type, so it replaces it by int.
So the line becomes virtually :
int GdkEventOwnerChange *event
Then GdkEventOwnerChange is not identified as a type but as a variable, *event is unattended, and that is provoking this error.
However I don't understand (yet) the reason why G_GNUC_UNUSED is not identified as the macro of gmacros.h.
A temporary solution is to remove G_GNUC_UNUSED (which is just a macro to remove a warning telling the variable is not used in the function). |
|
| Back to top |
|
 |
Mayfoev n00b

Joined: 08 Sep 2005 Posts: 3
|
Posted: Thu Sep 08, 2005 3:48 am Post subject: |
|
|
I was wrong. This has nothing to do with G_GNUC_UNUSED.
This has to do with the structure GdkEventOwnerChange being introduced from version 2.6.x of GTK+.
There is a mistake in the ebuild that depends on >=x11-libs/gtk+-2.4 instead of >=x11-libs/gtk+-2.6
So the solution is just to emerge an recent version of gtk+ before emerging libgnomeprintui _________________ I'm a damn frenchy, sorry! |
|
| Back to top |
|
 |
Mayfoev n00b

Joined: 08 Sep 2005 Posts: 3
|
|
| Back to top |
|
 |
|