Bug 46303 - gnome-system-monitor-2.4.0 failed to compile
Bug#: 46303 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: marsclic@yahoo.com
Component: GNOME
URL: 
Summary: gnome-system-monitor-2.4.0 failed to compile
Keywords:  
Status Whiteboard: 
Opened: 2004-03-30 15:52 0000
Description:   Opened: 2004-03-30 15:52 0000
The gnome-system-monitor-2.4.0 ebuild failed to compile on two of my systems,
one an i686 and the other an AMD64. Here is the error message it produces:

-O3 -march=i686 -pipe -fomit-frame-pointer -c interface.c
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:48,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from procman.c:22:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: error: syntax error
before "GtkCombo"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:65: error: syntax error
before '}' token
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: error: syntax error
before "GtkComboClass"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:76: error: syntax error
before '}' token
make[2]: *** [procman.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:48,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from procman.h:23,
                 from interface.c:30:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: error: syntax error
before "GtkCombo"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:65: error: syntax error
before '}' token
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: error: syntax error
before "GtkComboClass"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:76: error: syntax error
before '}' token
interface.c: In function `create_proc_view':
interface.c:217: warning: assignment makes pointer from integer without a cast
make[2]: *** [interface.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gnome-system-monitor-2.4.0/work/gnome-system-monitor-2.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnome-system-monitor-2.4.0/work/gnome-system-monitor-2.4.0'
make: *** [all-recursive-am] Error 2

!!! ERROR: gnome-extra/gnome-system-monitor-2.4.0 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure


Reproducible: Always
Steps to Reproduce:
1.emerge gnome

Actual Results:  
Here is the error message it produces for the i686 box:

-O3 -march=i686 -pipe -fomit-frame-pointer -c interface.c
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:48,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from procman.c:22:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: error: syntax error
before "GtkCombo"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:65: error: syntax error
before '}' token
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: error: syntax error
before "GtkComboClass"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:76: error: syntax error
before '}' token
make[2]: *** [procman.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:48,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from procman.h:23,
                 from interface.c:30:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: error: syntax error
before "GtkCombo"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:61: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:65: error: syntax error
before '}' token
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: error: syntax error
before "GtkComboClass"
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:68: warning: no semicolon
at end of struct or union
/usr/include/libgnomeui-2.0/libgnomeui/gnome-entry.h:76: error: syntax error
before '}' token
interface.c: In function `create_proc_view':
interface.c:217: warning: assignment makes pointer from integer without a cast
make[2]: *** [interface.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gnome-system-monitor-2.4.0/work/gnome-system-monitor-2.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnome-system-monitor-2.4.0/work/gnome-system-monitor-2.4.0'
make: *** [all-recursive-am] Error 2

!!! ERROR: gnome-extra/gnome-system-monitor-2.4.0 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure


Expected Results:  
Compiled and merged gnome-system-monitor-2.4.0.

Here is the "emerge info" for the i686 box:
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo
http://212.219.247.15/sites/www.ibiblio.org/gentoo/
http://212.219.247.14/sites/www.ibiblio.org/gentoo/
http://212.219.247.19/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm
gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang
spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
-------------------------------------------------------------------------------

And this is the "emerge info" for the AMD64:
Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 x86_64 5
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo
http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif
gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg
multilib ncurses nls oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"

------- Comment #1 From Marius Caldas 2004-03-30 15:58:52 0000 -------
Additional clarification: The two boxes in which the ebuild failed were dual
SMP. Another single Athlon 64 box emerged gnome-system-monitor-2.4.0 just fine.

------- Comment #2 From foser (RETIRED) 2004-03-30 16:16:04 0000 -------
is not an amd64 problem

------- Comment #3 From John Leonzal 2004-03-30 21:21:18 0000 -------
Also getting this error.  using gtk+ 2.4.0.  i had an almost identical problem
with mautilus-media, but that was fixed by foser.  this was the next package to
need emerging.  

------- Comment #4 From Tim Haughton 2004-03-31 03:21:33 0000 -------
Like John (Comment#3) I have this problem, and seem to be chasing the same bug
all the way down the 'emerge gnome' path. I can post my script and emerge info
if required, but I don't think it will add any information. - Thanks in advance
for fixing it.

------- Comment #5 From David Love 2004-04-02 09:08:22 0000 -------
Created an attachment (id=28583) [details]
Patch for gtk 2.4 compilation

------- Comment #6 From David Love 2004-04-02 09:08:56 0000 -------
Created an attachment (id=28584) [details]
Ebuild that applies the patch

------- Comment #7 From David Love 2004-04-02 09:10:37 0000 -------
Attached a patch ala nautilus-media that removes the DISABLE_GTK_DEPRECATED and
DISABLE_GNOME_DEPRECATED defines passed in the makefile.

------- Comment #8 From Yi Quang (RETIRED) 2004-04-07 16:22:08 0000 -------
patch looks good, can someone test, and then perhaps we can close this bug.  

------- Comment #9 From Guy Martin 2004-04-26 02:30:39 0000 -------
This patch works for me on hppa.


Please commit, it prevent me to build GRP :)

------- Comment #10 From foser (RETIRED) 2004-04-26 08:11:05 0000 -------
that is because you moved gtk+-2.4 to stable on hppa before the maintainers
arch (x86).

------- Comment #11 From foser (RETIRED) 2004-04-27 08:16:13 0000 -------
patch applied, thanks.