Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76094 - chromium-0.9.12-r6.ebuild compile failed with newer glibc
Summary: chromium-0.9.12-r6.ebuild compile failed with newer glibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 16:45 UTC by Stéphane Gimenez
Modified: 2004-12-29 18:33 UTC (History)
0 users

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


Attachments
patch which allows chromium-0.9.12-r5 to compile against gcc-3.4 (0.9.12-gcc3.4-stdlib.patch,229 bytes, patch)
2004-12-29 16:47 UTC, Stéphane Gimenez
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Gimenez 2004-12-29 16:45:34 UTC
Got the following error message described below when compiling the current chromium version with gcc-3.4.


Reproducible: Always
Steps to Reproduce:
1. emerge \=games-action/chromium-0.9.12-r5

Actual Results:  
g++ -c -pipe   -DUSE_GLUT  -march=pentium4m -O3 -pipe -funit-at-a-time
-fomit-frame-pointer -ffast-math -mfpmath=sse,387 -ftracer
-DPKGDATADIR='"/usr/share/games/chromium"' -DPKGBINDIR='"/usr/games/bin"'
-DAUDIO_OPENAL -D_REENTRANT -I../support/include -I../support/glpng/include
-I/usr/X11R6/include -o MainGLUT.o MainGLUT.cpp
MainGLUT.cpp: In static member function `static void
MainGLUT::keyboardASCII(unsigned char, int, int)':
MainGLUT.cpp:174: error: `exit' undeclared (first use this function)
MainGLUT.cpp:174: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make[1]: *** [MainGLUT.o] Error 1


Expected Results:  
correct compilation

Adding a "#include <stdlib.h>" in "src/MainGLUT.cpp" fixes the bug.

Maybe the trivial patch I'll attach below should be forwarded upstream.
Comment 1 Stéphane Gimenez 2004-12-29 16:47:07 UTC
Created attachment 47182 [details, diff]
patch which allows chromium-0.9.12-r5 to compile against gcc-3.4
Comment 2 Stéphane Gimenez 2004-12-29 17:25:56 UTC
I thought it was a change in gcc which could have become more strict with the includes. But in fact maybe it is more precisely realated to the libc.

Anyway, here's my emerge --info:

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-ghost i686)
=================================================================
System uname: 2.6.10-ghost i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.70GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Nov  5 2004, 13:42:13)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4, 2.2.3-r5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9, 1.8.5-r2, 1.6.3, 1.4_p6, 1.9.3, 1.5
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4m -O3 -pipe -funit-at-a-time -fomit-frame-pointer -ffast-math -mfpmath=sse,387 -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4m -O3 -pipe -funit-at-a-time -fomit-frame-pointer -ffast-math -mfpmath=sse,387 -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildsyspkg cvs distlocks fixpackages prelink sandbox sfperms userpriv userpriv_fakeroot usersandbox"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr/ http://ftp.gentoo.skynet.be/pub/gentoo/"
LDFLAGS="-Wl,-O1,--enable-new-dtags,--sort-common"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/ghostgentoo /usr/local/overlays/savonet-portage /usr/local/overlays/bmg-main"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="x86 3ds X aalib acl acpi acpi4linux alsa amd apache2 async avi bitmap-fonts bzlib cdr chroot cjk crypt cscope cups dba dga directfb dvd emacs encode fam fbcon flac flash foomaticdb fortran freetype freewnn ftp gd gdbm gif glut gnutls gpm graphviz gtk gtk2 guile ide imagemagick imap imlib imlib2 ipv6 jikes jpeg kerberos latex lcms ldap libwww mad mbox memlimit mikmod mmx mng motif mpeg mysql ncurses nntp nptl oggvorbis opengl pam pcmcia pdflib perl pic plotutils png pnp pthreads python readline samba sasl slang slp spell sse sse2 ssl svg svga tcltk tcpd tetex theora tiff truetype unicode usb wifi xml xml2 xmms xsl xv xvid zlib"
Comment 3 SpanKY gentoo-dev 2004-12-29 18:33:09 UTC
weird, chromium works over here, but a simple app compiled with g++ fails:
#include <unistd.h>
int main(){exit(0);}

compiling it with gcc works fine

oh well, i've got the patch in local cvs and will push it out once cvs comes back up