Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100887 - emerge gnome-panel compile error in stddef.h
Summary: emerge gnome-panel compile error in stddef.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-31 06:02 UTC by mathew
Modified: 2006-03-30 18:35 UTC (History)
0 users

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


Attachments
complete build log (3615-gnome-panel-2.10.2.log,39.48 KB, text/plain)
2005-08-07 03:03 UTC, mathew
Details
Log file from configure (config.log,77.75 KB, text/plain)
2005-08-08 03:03 UTC, mathew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathew 2005-07-31 06:02:24 UTC
Emerge of gnome-panel fails when compiling.

This has been discussed in a forum thread:
http://forums.gentoo.org/viewtopic-t-346797-highlight-gnomepanel+gmacros+h.html

Reproducible: Always
Steps to Reproduce:
1. emerge gnome-panel

Actual Results:  
In file included from /usr/include/glib-2.0/glib/gmacros.h:36,
                 from /usr/lib/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/libgnome-2.0/libgnome/gnome-program.h:34,
                 from /usr/include/libgnomeui-2.0/libgnomeui/gnome-ui-init.h:31,
                 from main.c:16:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/stddef.h:151: error:
syntax error before "typedef"
make[3]: *** [main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/gnome-panel-2.10.0/work/gnome-panel-2.10.0/gnome-panel'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gnome-panel-2.10.0/work/gnome-panel-2.10.0/gnome-panel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnome-panel-2.10.0/work/gnome-panel-2.10.0'
make: *** [all] Error 2

!!! ERROR: gnome-base/gnome-panel-2.10.0 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2005-07-31 06:25:04 UTC
please attach a full build log
Comment 2 John N. Laliberte (RETIRED) gentoo-dev 2005-08-06 05:05:20 UTC
no response from reporter
Comment 3 mathew 2005-08-07 03:03:46 UTC
Created attachment 65294 [details]
complete build log
Comment 4 mathew 2005-08-07 03:04:55 UTC
complete build information supplied - apologies for the delay
Comment 5 John N. Laliberte (RETIRED) gentoo-dev 2005-08-07 04:42:01 UTC
could you also attach config.log and post emerge info.

Thanks!
Comment 6 mathew 2005-08-08 03:03:48 UTC
Created attachment 65408 [details]
Log file from configure

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm)
Gentoo Base System version 1.6.13
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/sane.d /etc/terminfo
/usr/X11R6/lib/X11/xkb /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo
ftp://planetmirror.com.au/pub/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.internode.on.net/gentoo-portage"
USE="x86 X aac aalib alsa amd apache2 apm arts artworkextra avi bash-completion
berkdb bitmap-fonts bluetooth bonobo bootsplash cdparanoia cdr crypt css cups
curl dba directfb doc dvb eds emacs emboss encode esd evo fam fbcon flac
foomaticdb fortran freetype gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml
imagemagick imap imlib innodb ipv6 java jpeg junit kde libg++ libwww lirc mad
maildir mikmod mmx motif mozilla mp3 mpeg mppe-mppc mysql mythtv nas ncurses
nls odbc ogg oggvorbis opengl pam pdflib perl png postgres python qt qtmt
quicktime radeon readline samba sdl slang snmp spell sse ssl svga tcltk tcpd
tetex tiff truetype truetype-fonts type1-fonts vorbis xine xinerama xml xml2
xmms xv yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:	ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 7 Bill Skellenger 2005-09-05 19:07:24 UTC
Same issue here...

-------------------

In file included from /usr/include/glib-2.0/glib/gmacros.h:36,
                 from /usr/lib/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/libgnome-2.0/libgnome/gnome-program.h:34,
                 from /usr/include/libgnomeui-2.0/libgnomeui/gnome-ui-init.h:31,
                 from main.c:16:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/stddef.h:151: error: syntax
error before "typedef"
make[3]: *** [main.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gnome-panel-2.10.2/work/gnome-panel-2.10.2/gnome-panel'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gnome-panel-2.10.2/work/gnome-panel-2.10.2/gnome-panel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnome-panel-2.10.2/work/gnome-panel-2.10.2'
make: *** [all] Error 2

!!! ERROR: gnome-base/gnome-panel-2.10.2 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

bash-2.05b#      

----------------------------
emerge info


bash-2.05b# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.2, glibc-2.3.2-r9,
2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.14.90.0.7-r4
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.19-r1, 2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bonobo cdparanoia cdr crypt
cups curl directfb doc eds emboss encode esd fam foomaticdb fortran gd gdbm gif
gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java
jpeg kde ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls
ogg oggvorbis opengl oss palm pam pda pdflib perl pilot png postgres ppds python
qt quicktime quotes readline ruby samba sdl slang spell ssl svga tcpd tiff
truetype truetype-fonts type1-fonts usb visualization vorbis xine xml xml2 xmms
xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS


Comment 8 Bill Skellenger 2005-09-10 20:07:31 UTC
Seems like it was an old(er) version of glib causing the problem.

I emerged glib-2.6.5:
-------------------

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] app-text/docbook-xml-dtd-4.1.2-r5 [4.1.2-r4] 73 kB
[ebuild     U ] dev-libs/glib-2.6.5 [2.6.2-r1] +doc -hardened -static 2,301 kB

Total size of downloads: 2,375 kB
bash-2.05b#


Then had success with gnome-panel:
--------------------------

>>> Regenerating /etc/ld.so.cache...
>>> gnome-base/gnome-panel-2.10.2 merged.
Comment 9 Dirk Dierckx 2005-09-14 01:02:20 UTC
After reading comment #8 from Bill Skellenger, i've upgraded my glib from 2.6.4
to 2.6.5 (the same target version has he has), but i still get the same error
when compiling gnome-panel-2.10.2
Comment 10 Dirk Dierckx 2005-09-22 04:09:50 UTC
After preprocessing gnome-panel/main.c i've noticed the problem was in
gnome-ui-init.h (the G_BEGIN_DECLS macro didn't get expanded because of missing
glib.h in include nesting), after emerging libgnomeui-2.10.2 gnome-panel-2.10.2
emerged without errors. The gnome-panel-2.10.2.ebuild contains RDEPEND >=
gnome-base/libgnomeui-2.5.4, i think this is not correct because i had 2.6.1.1
installed and it didn't work. Hope this helps.
Comment 11 slimybug 2005-10-02 01:13:02 UTC
I had the exact same error.
See comment #10: "after emerging libgnomeui-2.10.2 gnome-panel-2.10.2 emerged 
without errors."
This worked for me, too.
Comment 12 John N. Laliberte (RETIRED) gentoo-dev 2006-03-30 18:35:50 UTC
this should be already fixed in 2.12.