View previous topic :: View next topic |
Author |
Message |
Jamon Apprentice
Joined: 03 May 2002 Posts: 173
|
Posted: Sat Jun 22, 2002 4:32 pm Post subject: wxGTK 2.2.9 fails to compile |
|
|
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 |
|
|
Jamon Apprentice
Joined: 03 May 2002 Posts: 173
|
Posted: Sat Jun 22, 2002 7:07 pm Post subject: Ok nevermind |
|
|
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 |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Wed Jul 24, 2002 10:25 am Post subject: |
|
|
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 |
|
|
bod n00b
Joined: 20 Jul 2002 Posts: 26 Location: UK
|
Posted: Wed Jul 24, 2002 11:25 am Post subject: |
|
|
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 |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Wed Jul 24, 2002 8:16 pm Post subject: |
|
|
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 |
|
|
gzaector Tux's lil' helper
Joined: 24 Nov 2002 Posts: 132 Location: 304
|
Posted: Thu Dec 26, 2002 11:57 pm Post subject: |
|
|
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 |
|
|
Draven n00b
Joined: 11 Dec 2002 Posts: 14 Location: CA
|
Posted: Mon Dec 30, 2002 8:05 pm Post subject: |
|
|
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 |
|
|
microbrain n00b
Joined: 21 Nov 2002 Posts: 33 Location: Bredene, Belgium
|
Posted: Mon Sep 05, 2005 8:59 am Post subject: joystick patch |
|
|
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 |
|
|
|