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.
*** This bug has been marked as a duplicate of 85780 ***