Bug 46676 - gnome-bluetooth failes on compile, eggtoolbar.c getting alot of errors.
Bug#: 46676 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: liquidx@gentoo.org Reported By: david@rohr.se
Component: GNOME
URL: 
Summary: gnome-bluetooth failes on compile, eggtoolbar.c getting alot of errors.
Keywords:  
Status Whiteboard: 
Opened: 2004-04-03 03:34 0000
Description:   Opened: 2004-04-03 03:34 0000
The gnome-bluetooth emerge fails on compile. Maybe todo with the new gnome-2.6
stuff, but I guess it should work anyways?


Reproducible: Always
Steps to Reproduce:
1. emerge gnome-bluetooth
2.
3.

Actual Results:  
eggtoolbar.c:2078: error: syntax error before "GtkToolbarChildType"
eggtoolbar.c: In function `egg_toolbar_append_element':
eggtoolbar.c:2086: error: number of arguments doesn't match prototype
eggtoolbar.h:205: error: prototype declaration
eggtoolbar.c:2087: error: `toolbar' undeclared (first use in this function)
eggtoolbar.c:2087: error: (Each undeclared identifier is reported only once
eggtoolbar.c:2087: error: for each function it appears in.)
eggtoolbar.c:2087: error: `type' undeclared (first use in this function)
eggtoolbar.c:2087: error: `widget' undeclared (first use in this function)
eggtoolbar.c:2087: error: `text' undeclared (first use in this function)
eggtoolbar.c:2088: error: `tooltip_text' undeclared (first use in this
function)
eggtoolbar.c:2088: error: `tooltip_private_text' undeclared (first use in this
f
unction)
eggtoolbar.c:2089: error: `icon' undeclared (first use in this function)
eggtoolbar.c:2089: error: `callback' undeclared (first use in this function)
eggtoolbar.c:2089: error: `user_data' undeclared (first use in this function)
eggtoolbar.c: At top level:
eggtoolbar.c:2095: error: syntax error before "GtkToolbarChildType"
eggtoolbar.c: In function `egg_toolbar_prepend_element':
eggtoolbar.c:2103: error: number of arguments doesn't match prototype
eggtoolbar.h:215: error: prototype declaration
eggtoolbar.c:2104: error: `toolbar' undeclared (first use in this function)
eggtoolbar.c:2104: error: `type' undeclared (first use in this function)
eggtoolbar.c:2104: error: `widget' undeclared (first use in this function)
eggtoolbar.c:2104: error: `text' undeclared (first use in this function)
eggtoolbar.c:2105: error: `tooltip_text' undeclared (first use in this
function)
eggtoolbar.c:2105: error: `tooltip_private_text' undeclared (first use in this
f
unction)
eggtoolbar.c:2106: error: `icon' undeclared (first use in this function)
eggtoolbar.c:2106: error: `callback' undeclared (first use in this function)
eggtoolbar.c:2106: error: `user_data' undeclared (first use in this function)
eggtoolbar.c: In function `egg_toolbar_internal_insert_element':
eggtoolbar.c:2217: error: `GTK_TOOLBAR_CHILD_SPACE' undeclared (first use in
thi
s function)
make[5]: *** [eggtoolbar.lo] Error 1
make[5]: Leaving directory
`/var/tmp/portage/gnome-bluetooth-0.4.1/work/gnome-bl
uetooth-0.4.1/libegg/libegg/toolbar'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/var/tmp/portage/gnome-bluetooth-0.4.1/work/gnome-bl
uetooth-0.4.1/libegg/libegg'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gnome-bluetooth-0.4.1/work/gnome-bl
uetooth-0.4.1/libegg'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gnome-bluetooth-0.4.1/work/gnome-bl
uetooth-0.4.1/libegg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnome-bluetooth-0.4.1/work/gnome-bl
uetooth-0.4.1'
make: *** [all] Error 2

!!! ERROR: net-wireless/gnome-bluetooth-0.4.1 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure


Expected Results:  
A nice working compile :)

CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="mmx sse"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"

gcc version 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)

------- Comment #1 From foser (RETIRED) 2004-04-05 06:45:05 0000 -------
you miss the interesting parts of the ouput, please attach the full output.

------- Comment #2 From David Röhr 2004-04-05 06:55:15 0000 -------
Created an attachment (id=28734) [details]
Full output from the Compile.

Longer output from the compile error.

------- Comment #3 From foser (RETIRED) 2004-04-05 07:04:23 0000 -------
and if you build without the DEPRECATION statements ?

------- Comment #4 From David Röhr 2004-04-05 08:41:31 0000 -------
Worked fined! (except the libegg/libegg/toolbar, which was missing
eggmarshalers.h)

So removing all the -Dflags, and copying eggmarshalers.h from
libegg/libegg/utils to libegg/libegg/toolbar) did the trick.

------- Comment #5 From Kristiaan Lenaerts 2004-04-10 04:21:20 0000 -------
Created an attachment (id=29015) [details]
gtk+ 2.4 patch

This patch should remove all the -DGTK_DISABLE_DEPRECATED flags from the
Makefile.am en Makefile.in

------- Comment #6 From Kristiaan Lenaerts 2004-04-10 04:23:45 0000 -------
Created an attachment (id=29016) [details]
fixed ebuild

this ebuild applies the patch, and copies eggmarshalers.h to the toolbar dir,
as indicated by David R

------- Comment #7 From Kristiaan Lenaerts 2004-04-10 04:23:45 0000 -------
Created an attachment (id=29016) [details]
fixed ebuild

this ebuild applies the patch, and copies eggmarshalers.h to the toolbar dir,
as indicated by David Röhr

------- Comment #8 From Alastair Tse (RETIRED) 2004-04-10 07:59:54 0000 -------
thanks for the patch, committed to portage.