Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85778 - libjsw fails compiling with gcc-3.3.5
Summary: libjsw fails compiling with gcc-3.3.5
Status: RESOLVED DUPLICATE of bug 85780
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 08:03 UTC by Giuseppe Foti
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2005-03-18 08:03:44 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.
2.
3.
Comment 1 Giuseppe Foti 2005-03-18 08:14:40 UTC

*** This bug has been marked as a duplicate of 85780 ***