Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85780 - strcasestr causes gcc-3.3.5 to throw prototype redefined errors
Summary: strcasestr causes gcc-3.3.5 to throw prototype redefined errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sources.redhat.com/ml/libc-alp...
Whiteboard:
Keywords:
: 85778 85912 86286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-18 08:12 UTC by Giuseppe Foti
Modified: 2005-04-08 09:14 UTC (History)
7 users (show)

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


Attachments
libjsw-1.5.5-gcc33.patch (libjsw-1.5.5-gcc33.patch,1.90 KB, patch)
2005-03-19 14:28 UTC, SpanKY
Details | Diff
ebuild that applies the patch (libjsw-1.5.5-r1.ebuild,1.39 KB, text/plain)
2005-03-20 14:58 UTC, Keith Gable
Details
string.cpp moved to string.c (libjsw-1.5.5.ebuild,1.44 KB, text/plain)
2005-03-21 01:46 UTC, thorsten
Details
glibc-gcc-3.3.patch (glibc-gcc-3.3.patch,557 bytes, patch)
2005-04-07 15:19 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2005-03-18 08:12:19 UTC
When I try to emerge libjsw I got the following error:

root@peppebook root # USE="gtk gtk2" emerge libjsw
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/libjsw-1.5.4 to /
>>> md5 src_uri ;-) libjsw-1.5.4.tar.bz2
>>> Unpacking source...
>>> Unpacking libjsw-1.5.4.tar.bz2 to /var/tmp/portage/libjsw-1.5.4/work
>>> Source unpacked.
Building library "libjsw.so.1.5.4"...
Compiling module axisio.o
Compiling module attributes.o
Compiling module buttonio.o
Compiling module calibrationfio.o
Compiling module forcefeedback.o
Compiling module main.o
Compiling module utils.o
Compiling module fio.o
Compiling module disk.o
Compiling module strexp.o
Compiling module string.o
Build done.
To install, type "su" (to gain root privileges) and then type "make install".
string.cpp:31: error: declaration of `char* strcasestr(const char*, const
   char*)' throws different exceptions
../include/string.h:46: error: than previous declaration `char*
   strcasestr(const char*, const char*) throw ()'
string.cpp: In function `char* strcasestr(const char*, const char*)':
string.cpp:221: error: declaration of `char* strcasestr(const char*, const
   char*)' throws different exceptions
string.cpp:31: error: than previous declaration `char* strcasestr(const char*,
   const char*) throw ()'
make: *** [string.o] Error 1

!!! ERROR: media-libs/libjsw-1.5.4 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! main build failed
!!! If you need support, post the topmost build error, NOT this status message.

The problem is the same even if I unpack the tar.bz2 file and then I try to compile it using
# cd libjsw
# make -f Makefile.Linux

I've seen a patch posted here: http://forums.gentoo.org/viewtopic-t-274560-highlight-emerge+libjsw.html

but after I applyed this patch I got thie error:

peppebook libjsw # make -f Makefile.Linux
Building library "libjsw.so.1.5.5"...
Compiling module attributes.o
In file included from attributes.c:10:
../include/string.h:46: error: parse error before "throw"
../include/string.h:46: warning: type defaults to `int' in declaration of `throw'
../include/string.h:46: warning: data definition has no type or storage class
make: *** [attributes.o] Error 1


Reproducible: Always
Steps to Reproduce:
1. emerge media-libs/libjsw


Actual Results:  
!!! ERROR: media-libs/libjsw-1.5.4 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! main build failed
!!! If you need support, post the topmost build error, NOT this status message.



Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.7 i686)
=================================================================
System uname: 2.6.7 i686 Mobile AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 26 2005, 13:03:29)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/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="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.osuosl.org/
ftp://194.117.143.72/mirrors/gentoo http://194.117.143.72
ftp://194.117.143.70/mirrors/gentoo ftp://194.117.143.69/mirrors/gentoo"
LANG="it_IT@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr
crypt cups curl directfb dvd dvdr emacs emacs-w3 emboss encode esd ethereal evo
fam flac flash font-server foomaticdb fortran gb gd gdbm gif gpm gstreamer gtk2
imagemagick imlib innodb ipv6 java jpeg junitkde libcaca libg++ libwww live mad
mikmod mng mod_php motif mozilla mp3 mpeg mysql ncurses network nls oggvorbis
opengl oss pam pcmcia pda pdflib perl php png pnp python qt quicktime readline
real samba scanner sdl slang speex spell ssl svga tcltk tcpd theora tiff
truetype truetype-fonts type1-fonts usb wmf xml2 xmms xv xvmc zlib linguas_it"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Giuseppe Foti 2005-03-18 08:14:41 UTC
*** Bug 85778 has been marked as a duplicate of this bug. ***
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-18 08:57:58 UTC
+metadata.xml missing
Comment 3 SpanKY gentoo-dev 2005-03-18 15:27:16 UTC
i just added 1.5.5 ... see if that works any better ?
Comment 4 kaouete 2005-03-19 03:36:31 UTC
I just emerged libjsw-1.5.5 and i get this error.

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 13:49:08)]
distcc 2.16 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.4_p6, 1.6.3, 1.8.5-r3, 1.7.9-r1, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors2/ftp.gentoo.org/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="x86 3ds X a52 aac aalib acl acpi adns aim alsa apache2 audiofile avi bash-completion berkdb bidi bitmap-fonts bonobo bzip2 bzlib canna ccache cdda cddb cdio cdparanoia cdr crypt cups curl curlwrappers dba dga directfb divx4linux dts dv dvb dvd dvdr dvdread dxr3 edl eds emboss encode exif expat faac faad fam fbcon ffmpeg flac font-server foomaticdb fortran fpx freetype ftp gcj gd gdbm geoip ggi gif gimpprint gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl icc iconv imagemagick imap imlib immqt immqt-bc insecure-drivers ipv6 jabber jack java javascript jbig jce jikes joystick jpeg jpeg2k junit jython kerberos krb4 lcms ldap libcaca libg++ libgda libwww lirc live lm_sensors logitech-mouse lzo m17n-lib mad matroska md5sum mikmod mime mmx mmx2 mng mono motif mozilla moznomail mozsvg mozxmlterm mp3 mpeg mpeg2 mpeg4 mpi msn mysql nas ncurses net network nls nntp nptl nvidia ode ogg oggvorbis openal openexr opengl oscar oss pam pcre pdflib perl perlsuid php physfs plotutils png posix postgres ppds python qt quicktime rdesktop readline real rhino rrdtool rtc ruby scanner sdl session silc simplexml slang slp snmp soap sockets socks5 softmmu sox speex spell sqlite sse sse2 ssl stream svg svga sysvipc tcltk tcpd tga theora tiff truetype truetype-fonts type1-fonts uim unicode usb utf8 v4l v4l2 vcd vidix vlm vorbis wmf wxwindows xanim xine xml xml2 xmlrpc xmms xosd xpm xrandr xsl xv xvid xvmc yahoo yv12 zeroconf zlib linguas_fr"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 5 Jesse Adelman 2005-03-19 12:55:49 UTC
Same here...

homeserver root # gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /data/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-19 14:16:54 UTC
*** Bug 85912 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2005-03-19 14:28:00 UTC
Created attachment 53892 [details, diff]
libjsw-1.5.5-gcc33.patch

does this work for you ?
Comment 8 Canek Peláez Valdés 2005-03-19 16:53:31 UTC
I tried the patch, but it fails now with:

>>> emerge (1 of 1) media-libs/libjsw-1.5.5-r1 to /
>>> md5 src_uri ;-) libjsw-1.5.5.tar.bz2
>>> Unpacking source...
>>> Unpacking libjsw-1.5.5.tar.bz2 to /var/tmp/portage/libjsw-1.5.5-r1/work
 * Applying libjsw-1.5.5-gcc33.patch ...                                  [ ok ]>>> Source unpacked.
Building library "libjsw.so.1.5.5"...
Compiling module axisio.o
Compiling module attributes.o
In file included from attributes.c:10:
../include/string.h:46: error: parse error before "throw"
../include/string.h:46: warning: data definition has no type or storage class
make: *** [attributes.o] Error 1

!!! ERROR: media-libs/libjsw-1.5.5-r1 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! main build failed
!!! If you need support, post the topmost build error, NOT this status message.

Sorry I didn't find this bug report before posting mine.
Comment 9 Keith Gable 2005-03-20 14:58:03 UTC
Created attachment 53988 [details]
ebuild that applies the patch

This ebuild automatically applies the patch, which is also not working for me.

Calculating world dependencies ...done!
>>> emerge (1 of 7) media-libs/libjsw-1.5.5-r1 to /
>>> md5 src_uri ;-) libjsw-1.5.5.tar.bz2
>>> Unpacking source...
>>> Unpacking libjsw-1.5.5.tar.bz2 to /var/tmp/portage/libjsw-1.5.5-r1/work
 * Applying libjsw-1.5.5-gcc33.patch ...				       
								       [ ok
]>>> Source unpacked.
Building library "libjsw.so.1.5.5"...
Compiling module axisio.o
Compiling module attributes.o
Compiling module buttonio.o
In file included from attributes.c:10:
../include/string.h:46: error: parse error before "throw"
../include/string.h:46: warning: data definition has no type or storage class
make: *** [attributes.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/libjsw-1.5.5-r1 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! main build failed
!!! If you need support, post the topmost build error, NOT this status message.


keith root # gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)

keith root # emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r5 i686)
=================================================================
System uname: 2.6.10-gentoo-r5 i686 mobile AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.9
Python: 	     dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005,
21:29:16)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.4_p6, 1.7.9-r1, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/
http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/
http://gentoo.ccccom.com ftp://gentoo.ccccom.com
http://mirror.clarkson.edu/pub/distributions/gentoo/
http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/
http://open-systems.ufl.edu/mirrors/gentoo http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.cs.lewisu.edu/gentoo/
ftp://linux.cs.lewisu.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo
http://modzer0.cs.uaf.edu/public/gentoo/ http://mirror.usu.edu/mirrors/gentoo/
ftp://mirror.usu.edu/mirrors/gentoo/ http://lug.mtu.edu/gentoo"
MAKEOPTS="-j2"
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 3dnow X aalib alsa apm arts avi bash-completion berkdb bitmap-fonts
bonobo cdr crypt cups curl doc eds emboss encode esd fam flac font-server
foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile
imagemagick imlib ipv6 java jpeg junit kde kerberos ldap libg++ libwww mad
mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls nptl oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline samba sdl snmp speex spell sse
ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2
xmms xv zlib"
Unset:	ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 10 thorsten 2005-03-21 01:46:51 UTC
Created attachment 54031 [details]
string.cpp moved to string.c

hi,
this is my first comment in gentoo bugzilla! :)

my ebuild works for me. i only moved the string.cpp
Comment 11 thorsten 2005-03-21 01:46:51 UTC
Created attachment 54031 [details]
string.cpp moved to string.c

hi,
this is my first comment in gentoo bugzilla! :)

my ebuild works for me. i only moved the string.cpp´s to string.c´s. gcc-3.3.5
compiles without errors now.
Comment 12 Canek Peláez Valdés 2005-03-21 09:47:31 UTC
I can confirm that the ebuild from thorsten works.
Comment 13 rjnfc 2005-03-22 02:16:56 UTC
thorsten's ebuild works for me, as well.  gcc version 3.3.5 here.
Comment 14 Omer Hasan 2005-03-22 15:42:47 UTC
Another confirmation on Thorsten's ebuild. Compiles fine here. Using gcc 3.3.5 as well.

Emerge info:

Portage 2.0.51.19 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 15:48:01)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.4, 1.6.3, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -msse2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -msse2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy cups distlocks fixpackages foomaticdb moo nls ppds sandbox sfperms usb"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.ccccom.com http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib acpi alsa apache2 arts artworkextra audiofile avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl divx4linux dvd dvdr eds emboss encode esd fam flac font-server foomaticdb fortran freetype gd gd-external gdbm gif gimp gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 guile hal howl icu imagemagick imlib ipv6 java joystick jpeg kde kdeenablefinal lcd ldap libclamav libg++ libwww lm_sensors logitech-mouse mad math mikmod mmx mono motif mozilla mp3 mpeg mysql mythtv nas ncurses network nls nptl nptlonly nvidia oav oggvorbis opengl oss pam pda pdflib perl php pic plotutils png ppds python qt quicktime rdesktop readline real samba scanner sdl slang snmp spell sqlite sse sse2 ssl svga tcltk tcpd tetex theora tiff transcode truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 xine xml xml2 xmms xscreensaver xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 15 Tom Green 2005-03-23 01:59:25 UTC
thorsten's ebuild works here too, gcc-3.3.5.

Thanks.
Comment 16 Giuseppe Foti 2005-03-25 08:23:13 UTC
I tryed thorsten ebuild and it seems to work fine.
Thanks!!!

What should I do now with this bug? Should I move it to FIXED or should I wait for this patch to be inserted into portage?
Comment 17 Jesse Adelman 2005-03-27 12:15:15 UTC
Wait for a patch to be released to Portage. That's the normal proceedure, I believe.
Comment 18 Jesse Adelman 2005-03-31 12:25:12 UTC
OK, can this get released. Testing coverage seems complete.
Comment 19 SpanKY gentoo-dev 2005-04-07 15:18:31 UTC
*** Bug 88027 has been marked as a duplicate of this bug. ***
Comment 20 SpanKY gentoo-dev 2005-04-07 15:18:36 UTC
*** Bug 87981 has been marked as a duplicate of this bug. ***
Comment 21 SpanKY gentoo-dev 2005-04-07 15:18:41 UTC
*** Bug 86286 has been marked as a duplicate of this bug. ***
Comment 22 SpanKY gentoo-dev 2005-04-07 15:19:32 UTC
Created attachment 55609 [details, diff]
glibc-gcc-3.3.patch

patch for glibc to fix this issue
Comment 23 SpanKY gentoo-dev 2005-04-07 21:02:18 UTC
ok, the glibc peeps werent interested in the work around, and getting it fixed in gcc-3.3 upstream will probably be more hassle than it's worth, so i've added a small patch to these four packages to work around the issue

redefining strcasestr() isnt common i imagine, it's just that these 4 packages are all by the same developer team :)
Comment 24 Michele Mordenti 2005-04-08 09:14:32 UTC
Soory, but I still have problems

Build done.
To install, type "su" (to gain root privileges) and then type "make install".
string.cpp:31: error: declaration of `char* strcasestr(const char*, const
   char*)' throws different exceptions
../include/string.h:46: error: than previous declaration `char*
   strcasestr(const char*, const char*) throw ()'
string.cpp: In function `char* strcasestr(const char*, const char*)':
string.cpp:221: error: declaration of `char* strcasestr(const char*, const
   char*)' throws different exceptions
string.cpp:31: error: than previous declaration `char* strcasestr(const char*,
   const char*) throw ()'
make: *** [string.o] Error 1

!!! ERROR: media-libs/libjsw-1.5.5 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! jscalibrator failed
!!! If you need support, post the topmost build error, NOT this status message.

and now I need to emerge the 1.5.5 version :-(
emerge -uDf world
Calculating world dependencies /
!!! All ebuilds that could satisfy "media-libs/libjsw" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-libs/libjsw-1.5.5 (masked by: package.mask)

For more information, see MASKED PACKAGES section in the emerge man page or
section 2.2 "Software Availability" in the Gentoo Handbook.
!!!    (dependency required by "games-simulation/searchandrescue-0.8.1" [ebuild])


!!! Problem with ebuild games-simulation/searchandrescue-0.8.1
!!! Possibly a DEPEND/*DEPEND problem.

!!! Depgraph creation failed.


emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 17:27:10)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -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/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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
LANG="it_IT.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync2.it.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa arts artswrappersuid avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl directfb divx4linux doc dvd emboss encode esd f77 fam fbcon flac foomaticdb fortran gdbm gif gnome gpm graphviz gstreamer gtk gtk2 guile imagemagick imlib ipv6 jabber java joystick jpeg junit kde libg++ libwww mad maildir mikmod mmx mmx2 motif mozilla mp3 mpeg ncurses nls nvidia offensive oggvorbis opengl oss pam pdflib perl png povray python qt quicktime readline samba sdl slang softmmu spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode wmf x86 xine xml2 xmms xprint xscreensaver xv xvid zlib linguas_it"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS