Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wxGTK 2.2.9 fails to compile
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Jamon
Apprentice
Apprentice


Joined: 03 May 2002
Posts: 173

PostPosted: Sat Jun 22, 2002 4:32 pm    Post subject: wxGTK 2.2.9 fails to compile Reply with quote

Hello! Has anyone gotten wxGTK 2.2.9 to compile successfully? Portage now have audacity (yay!) and it requires wxGTK 2.2.9. The newer devel version does not work. Whenever I try, it gives me this:

c++ -c "-DwxINSTALL_PREFIX=\"/usr\"" -D__WXGTK__ -DGTK_NO_CHECK_CASTS -D_REENTRANT -MMD -mcpu=i686 -march=i686 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4 -O2 -I. -I./lib/wx/include/gtk-2.2 -I./include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -fPIC -o joystick.o ./src/gtk/joystick.cpp
{standard input}: Assembler messages:
{standard input}:763: Error: symbol `.LEHB4327' is already defined
{standard input}:778: Error: symbol `.LEHE4327' is already defined
make: *** [joystick.o] Error 1
make: *** Waiting for unfinished jobs....
c++ -c "-DwxINSTALL_PREFIX=\"/usr\"" -D__WXGTK__ -DGTK_NO_CHECK_CASTS -D_REENTRANT -MMD -mcpu=i686 -march=i686 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4 -O2 -I. -I./lib/wx/include/gtk-2.2 -I./include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -fPIC -o joystick.o ./src/gtk/joystick.cpp
{standard input}: Assembler messages:
{standard input}:763: Error: symbol `.LEHB4327' is already defined
{standard input}:778: Error: symbol `.LEHE4327' is already defined
make: *** [joystick.o] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 67, Exitcode 2
!!! (no error message)

!!! emerge aborting on /usr/portage/x11-libs/wxGTK/wxGTK-2.2.9.ebuild .

Any ideas? Thanks!

Jamon
Back to top
View user's profile Send private message
Jamon
Apprentice
Apprentice


Joined: 03 May 2002
Posts: 173

PostPosted: Sat Jun 22, 2002 7:07 pm    Post subject: Ok nevermind Reply with quote

Ok, nevermind. It seems that it was my optimization settings. Changing to the ever-so-conservative -march=i686 -O2 -pipe, everything worked fine. :)

Jamon
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Wed Jul 24, 2002 10:25 am    Post subject: Reply with quote

KICK !
Did anyone succeed in compiling wxGTK 2.3.2 with GCC3.1 ?
For me it fails on any optimisation, even the most conservative one.
Back to top
View user's profile Send private message
bod
n00b
n00b


Joined: 20 Jul 2002
Posts: 26
Location: UK

PostPosted: Wed Jul 24, 2002 11:25 am    Post subject: Reply with quote

As far as I remember I had no problems building 2.3.2 with my normal flags:

-march=athlon-xp -O3 -fomit-frame-pointer

Had the same problem as above with 2.2.9 though.

[edit]
... okay, just got home & tried wxGTK-2.2.9 with 'conservative' flags and it still falls over:
Code:
src/gtk/joystick.cpp:351: default argument given for parameter 2 of `bool wxJoystick::SetCapture(wxWindow*, int = 0)'

include/wx/gtk/joystick.h:86: after previous specification in `bool wxJoystick::SetCapture(wxWindow*, int = 0)'


Removing the offending '= 0' from the .cpp file sorted it for me.
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Wed Jul 24, 2002 8:16 pm    Post subject: Reply with quote

Cool, Thanks Bod!
This worked at least for 2.2.9 and gcc 3.1.

Maybe this is useful for bug 3860.
I'll make a cross-reference.

By the way, the Audacity-ebuild 1.0.0 does not compile using gcc 3.1
The 1.1.0 tarball downloaded from the Audacity site does work OK.
Back to top
View user's profile Send private message
gzaector
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2002
Posts: 132
Location: 304

PostPosted: Thu Dec 26, 2002 11:57 pm    Post subject: Reply with quote

ok, sorry for bringing back such an old post, but i tried to emerge audacity today, and i get the same error, how did you guys fix this?
Back to top
View user's profile Send private message
Draven
n00b
n00b


Joined: 11 Dec 2002
Posts: 14
Location: CA

PostPosted: Mon Dec 30, 2002 8:05 pm    Post subject: Reply with quote

Same here, I recently tried to emerge audacity and failed. wxGTK 2.2.9 would not compile. I get the same errors as above.
I was able to install version 2.3.3 and and 2.3.4 but audacity would not compile in both instances. I tried using the different flavors of audacity (1.00, 1.1.0, & 1.1.1) but it was still futile.

I read around in the bugs.gentoo.org and it stated that there was suppose to be a joystick patch or something but it is non-existent. I'm not a programmer nor am I a linux guru, and I was reluctanct to go in and edit the file in fear I might screw something up. (I am a n00b) After my failed searches for an easy solution, my only alternative was to actually go in and edit the file. (It was easier than I thought.)

1) I untarred the wxGTK-2.2.9 into a temp directory.
Code:
tar xvjf wxGTK-2.2.9.tar.bz2
cd wxGTK-2.2.9/src/grk
nano joystick.cpp


way at the bottom of the file theres a linecode of
Code:
bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq = 0)

following what they said in the above posts, I deleted out the '= 0'
i saved and exited.

2) I tarred and bzip2 the directory back into its former self and copied it to my distfiles folder
Code:
tar cvf wxGTK-2.2.9.tar wxGTK-2.2.9
bzip2 wxGTK-2.2.9.tar
cp wxGTK-2.2.9.tar.bz2 /usr/portage/distfiles/.


3) since I changed the file, I had to recreate the digest so the MD5 checksums are okay.
Code:
cd /usr/portage/x11-libs/wxGTK
ebuild wxGTK-2.2.9-r1.ebuild digest
emerge wxGTK-2.2.9-r1.ebuild


4) I was able to compile wxGTK-2.2.9 just fine and then I was able to compile audacity 1.0.0 but that wasn't enough. I downloaded audacity-1.1.1-3 and used audacity-1.0.0-r2.ebuild as a skeleton for ebuild version 1.1.1-3. Emerged that and I now have a working audacity-1.1.1-3

note: As I stated above, I'm not a programmer and I don't know what ill effects will occur when I deleted out the '= 0' from the joystick.cpp, but things seems to be running fine for me.

hope that helps.
_________________
Draven
I dislike everyone equally, because discrimination is wrong!
Back to top
View user's profile Send private message
microbrain
n00b
n00b


Joined: 21 Nov 2002
Posts: 33
Location: Bredene, Belgium

PostPosted: Mon Sep 05, 2005 8:59 am    Post subject: joystick patch Reply with quote

I had the same error (nevermind why I need this ancient version of wxGTK), but I solved it by applying the patch mentioned earlier,
I found it over at sourceforge (scroll down a bit, or look for the word patch):
Code:
http://sourceforge.net/project/showfiles.php?group_id=9863


apply it by putting the file in the unpacked wxGTK sources and type
Code:
zcat nameofthepatchfile.gz | patch -p0

_________________
"It's not stupid, it's advanced." -- Purple Tallest
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum