Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 12731

Summary: wxGTK doesn't compile hence audacity doesn't install
Product: Gentoo Linux Reporter: Axel Gerber <a.gerber>
Component: Current packagesAssignee: Nick Hadaway <grandmasterlinux>
Status: VERIFIED FIXED    
Severity: normal CC: seemant, vapier
Priority: High    
Version: 1.4_rc1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Axel Gerber 2002-12-26 08:00:59 UTC
My current problem after I solved kde-3.0.5a compilation with a trick (watch 
cp /root/konsole.o 
/opt/portage/kdebase-3.0.5a/work/kdebase-3.0.5a/konsole/konsole/konsole.0) 
is audacity.

emerge -p results in:

bash-2.05a# emerge -p audacity

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild    UD] x11-libs/wxGTK-2.2.9-r1 [2.3.4-r0]
[ebuild  N   ] media-sound/audacity-1.0.0-r1

(BTW: the "D" at the ebuild-bracket would mean that the former package will 
be deleted??? Couldn't find anything in the docs or am I blind)

No the problem: wxGTK doesn't compile completely. Findn the error message 
below:

-----
g++ -c    "-DwxINSTALL_PREFIX=\"/usr\""  -D__WXGTK__ -DGTK_NO_CHECK_CASTS 
-D_REENTRANT  -MMD -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse 
-msse -m3dnow -mno-3dnow -mno-sse -DZEXPORT='' -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
cc1plus: warning: SSE instruction set disabled, using 387 arithmetics
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)'
make: *** [joystick.o] Fehler 1

!!! ERROR: x11-libs/wxGTK-2.2.9-r1 failed.
!!! Function src_compile, Line -187, Exitcode 2
!!! compilation failed
-----

And here my relevant line from the /etc/make.conf:
-----
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mfpmath=sse -msse 
-m3dnow -mno-3dnow -mno-sse"
-----

Changing -march to -mcpu didn't help. The -msse will be switched of at this 
package anyway so I guess this isn't the root (dissabling didn't help).
Comment 1 Nick Hadaway 2002-12-26 17:54:58 UTC
Do you realize that you have conflicting optimizations?
-msse -mno-sse -m3dnow -mno-3dnow
Also make sure that your portage tree is up to date as there is a
patch for joystick.cpp included... Most likely unrelated though...
-march=athlon-xp should tell the compiler all it needs to know about
what sse/3dnow related switches should be used and also... just as
a heads up, forcing -fomit-frame-pointer makes a lot of programs fail
compilation
Comment 2 Douglas Pollock 2002-12-29 13:33:07 UTC
My compile failed with the exact same problem.  The default is declared twice, once in the header and once in the source.  It's joystick.cpp.  Your patch is probably not being applied.

In fact, looking at the files directory, there is no patch there.

I'm attempting to install audacity.  The versions that portage is attempting to install are 1.0.1-r1 of audacity and 2.2.9-r1 of wxGTK.
Comment 3 Nick Hadaway 2002-12-30 11:24:58 UTC
It appears that someone accidentally removed 2.2.9 from portage along with the 
joystick patch.  When 2.2.9 was added back, the joystick patch wasn't 
included.  I have added the patch back to portage and re-tested the ebuild.  
Things appear to be working properly.  Please mark this bug report VERIFIED if 
you have no further problems or mark as REOPENED if you still have problems.