Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

emerge libjsw fails (as does make from tarball)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
Nate_S
Guru
Guru
User avatar
Posts: 414
Joined: Thu Mar 18, 2004 9:05 pm

emerge libjsw fails (as does make from tarball)

  • Quote

Post by Nate_S » Tue Jan 04, 2005 6:31 am

Hi.

I'm trying to emerge libjsw and it keeps failing on string.cpp

it dies with this error message:

Code: Select all

Building library "libjsw.so.1.5.5"...
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
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
I also tried unpacking the tarball and using make to compile; no effect.

I've searched quite a bit and haven't been able to find anything similar

Thanks in advance for any help

-Nate
Top
moocha
Watchman
Watchman
Posts: 5722
Joined: Tue Oct 21, 2003 6:45 pm

  • Quote

Post by moocha » Tue Jan 04, 2005 7:23 am

That doesn't happen to me with either libjsw 1.5.5 or 1.5.4. I'm using gcc 3.4.3-r1. The code should not generate that error under any circumstances anyway (I've looked at it), so it looks like a bug in g++.
You could try applying the following patch:

Code: Select all

diff -Naur libjsw-1.5.5-orig/include/string.h libjsw-1.5.5/include/string.h
--- libjsw-1.5.5-orig/include/string.h  2004-12-21 07:55:58.000000000 +0200
+++ libjsw-1.5.5/include/string.h       2005-01-04 09:08:22.302388360 +0200
@@ -43,7 +43,7 @@
 #ifdef __MSW__
 extern int strcasecmp(const char *s1, const char *s2);
 #endif
-extern char *strcasestr(const char *haystack, const char *needle);
+extern char *strcasestr(const char *haystack, const char *needle) throw();
 extern int strpfx(const char *s, const char *pfx);
 extern int strcasepfx(const char *s, const char *pfx);

diff -Naur libjsw-1.5.5-orig/libjsw/string.cpp libjsw-1.5.5/libjsw/string.cpp
--- libjsw-1.5.5-orig/libjsw/string.cpp 2004-12-21 07:55:57.000000000 +0200
+++ libjsw-1.5.5/libjsw/string.cpp      2005-01-04 09:07:50.399366008 +0200
@@ -28,7 +28,7 @@
 #ifdef __MSW__
 int strcasecmp(const char *s1, const char *s2);
 #endif
-char *strcasestr(const char *haystack, const char *needle);
+char *strcasestr(const char *haystack, const char *needle) throw();
 int strpfx(const char *s, const char *pfx);
 int strcasepfx(const char *s, const char *pfx);

@@ -217,7 +217,7 @@
  *     Case insensitive version of strstr(). Returns the pointer to
  *     needle in haystack if found or NULL on no match.
  */
-char *strcasestr(const char *haystack, const char *needle)
+char *strcasestr(const char *haystack, const char *needle) throw()
 {
        const char *strptr1, *strptr2, *strptr3;
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Top
Nate_S
Guru
Guru
User avatar
Posts: 414
Joined: Thu Mar 18, 2004 9:05 pm

  • Quote

Post by Nate_S » Tue Jan 04, 2005 8:48 am

Thanks. It appears to be a bug in g++ 3.3.4. I simply used gcc-config to switch to 3.4.2 and it emerged fine.

Is this something that would be worth making a bug report about? (I suppose I'll see if I can reproduce it on any of my other boxes)

-Nate
Top
moocha
Watchman
Watchman
Posts: 5722
Joined: Tue Oct 21, 2003 6:45 pm

  • Quote

Post by moocha » Tue Jan 04, 2005 9:10 am

Sure it is, and it's very commendable of you to contribute feedback!
If you open a new bug in Bugzilla (provided that there isn't one already, might be worth searching), please make sure to assign the bug to vapier@gentoo.org (he's the maintainer).
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Top
kellwood
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 123
Joined: Sun Dec 22, 2002 1:40 pm
Location: Ann Arbor

  • Quote

Post by kellwood » Sat Mar 19, 2005 2:09 pm

Just for the record, I have the same problems with jibjsw 1.5.5 and gcc 3.3.4.
Top
canek
n00b
n00b
User avatar
Posts: 28
Joined: Mon Sep 01, 2003 10:03 pm
Location: Ciudad de México, México
Contact:
Contact canek
Website

  • Quote

Post by canek » Sat Mar 19, 2005 4:49 pm

Just for the record; I've the same problem with gcc 3.3.5. I'm reporting the bug in bugs.gentoo.org.
Top
canek
n00b
n00b
User avatar
Posts: 28
Joined: Mon Sep 01, 2003 10:03 pm
Location: Ciudad de México, México
Contact:
Contact canek
Website

  • Quote

Post by canek » Sat Mar 19, 2005 4:55 pm

Bug report:

http://bugs.gentoo.org/show_bug.cgi?id=85912
Top
CyD
Tux's lil' helper
Tux's lil' helper
Posts: 117
Joined: Fri Jul 23, 2004 11:04 pm

  • Quote

Post by CyD » Sat Mar 19, 2005 4:55 pm

yay, me too! think we could get a link to that bug? :)
Top
novazur
Guru
Guru
Posts: 461
Joined: Sat Mar 19, 2005 6:59 pm
Location: Martinique

  • Quote

Post by novazur » Sat Mar 19, 2005 7:02 pm

And the solution is ??

I tried to apply the patch, but I have always an error :

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 36, Exitcode 2
!!! jscalibrator failed
!!! If you need support, post the topmost build error, NOT this status message.
Top
CyD
Tux's lil' helper
Tux's lil' helper
Posts: 117
Joined: Fri Jul 23, 2004 11:04 pm

  • Quote

Post by CyD » Sat Mar 19, 2005 9:50 pm

guess i didn't find a solution, i just haven't merged it yet. maybe the new one could be user masked till its fixed?
Top
canek
n00b
n00b
User avatar
Posts: 28
Joined: Mon Sep 01, 2003 10:03 pm
Location: Ciudad de México, México
Contact:
Contact canek
Website

  • Quote

Post by canek » Sun Mar 20, 2005 12:40 am

1.5.5 is the last version; there is no new version. I put

Code: Select all

>=media-libs/libjsw-1.5.4

in /etc/portacke/package.mask, so emerge -uDv world doesn't bother me trying to update libjsw; but the problem is there, even in the 1.5.4 version.
Top
HRH_H_Crab
Tux's lil' helper
Tux's lil' helper
Posts: 115
Joined: Wed Jul 30, 2003 7:25 am
Location: Sarf East Lahndahn
Contact:
Contact HRH_H_Crab
Website

  • Quote

Post by HRH_H_Crab » Sun Mar 20, 2005 12:47 pm

considering the fact that the only application my joypad seems to work in 100% is jscalibrator, the failure of libjsw to compile is a devastating blow to me.

more seriously, ive noticed that joy2key is also not compiling. i wonder if the two are related?
Top
Qubax
Guru
Guru
User avatar
Posts: 451
Joined: Fri Jul 19, 2002 9:41 pm
Location: Tirol, Austria

  • Quote

Post by Qubax » Tue Mar 22, 2005 8:10 pm

i've got the same problem
Top
velociphile
n00b
n00b
User avatar
Posts: 43
Joined: Wed Oct 29, 2003 2:59 pm
Location: Sydney, Australia

  • Quote

Post by velociphile » Wed Mar 23, 2005 10:02 am

On this bug report there is an ebuild that works from thorsten.
"1830: Press Return."

Vista will solve all your problems. People keep telling me so it must be true.
Top
Lars
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu Feb 06, 2003 8:34 am
Location: Germany, near baltic sea

  • Quote

Post by Lars » Sat Apr 09, 2005 6:43 pm

My resolution :D

Code: Select all

ebuild /usr/portage/media-libs/libjsw/libjsw-1.5.5.ebuild unpack 
goto it's unpacked directory /var/tmp/portage/libjsw... find all what has something todo with 'strcasestr' and remark it, don't forget, in *.h files use /* ... */ and in *.cpp files '// ...' is ok.

Code: Select all

ebuild /usr/portage/media-libs/libjsw/libjsw-1.5.5.ebuild compile 

Code: Select all

ebuild /usr/portage/media-libs/libjsw/libjsw-1.5.5.ebuild install 

Code: Select all

ebuild /usr/portage/media-libs/libjsw/libjsw-1.5.5.ebuild postinst 

Code: Select all

ebuild /usr/portage/media-libs/libjsw/libjsw-1.5.5.ebuild qmerge 

Code: Select all

ebuild /usr/portage/media-libs/libjsw/libjsw-1.5.5.ebuild merge 
Maybe there are some ebuilds obsolete but shit happens, it works for me.
Within gcc 3.3.5, kernel 2.4.28

JM2C
Lars
Alles was nicht einfach ist, ist entweder falsch oder zu kompliziert.
V.Glazounov
Top
ardnew
n00b
n00b
Posts: 1
Joined: Wed Apr 20, 2005 2:11 am

  • Quote

Post by ardnew » Wed Apr 20, 2005 2:42 am

The easiest resolution to this problem from what I can tell, is to use gcc-config to switch to the 3.4.3 profile.
2005.0 makes use of it anyway. :wink:

Code: Select all

# gcc-config i686-pc-linux-gnu-3.4.3-20050110 && source /etc/profile
Top
Post Reply

16 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic