View previous topic :: View next topic |
Author |
Message |
H-Pi Apprentice
Joined: 26 Jun 2002 Posts: 175 Location: Delft (NL)
|
Posted: Fri Nov 08, 2002 5:00 pm Post subject: [wxPython] build failed due to USE flags :? |
|
|
I try to emerge pysoulseek, which has the dep wxPython, but the build of wxPython errors:
Code: |
....
src/gtk/image.cpp:1238: `_result' undeclared (first use this function)
src/gtk/image.cpp:1247: parse error before `)' token
src/gtk/image.cpp:1247: parse error before `(' token
error: command 'gcc' failed with exit status 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 49, Exitcode 1
!!! build failed ... make sure you compiled wxGTK with all the graphic libraries enabled via USE
|
what libraries is talked about here? I have everything enabled I can find in the ebuild: gtk, opengl, png etc. |
|
Back to top |
|
|
int1 Tux's lil' helper
Joined: 08 Nov 2002 Posts: 139
|
Posted: Sat Nov 09, 2002 4:33 pm Post subject: try this |
|
|
I'm sssuming you emerged x11-libs/wxGTK, so try typing ldconfig before you emerge the package.
Hope this helps!
int1 |
|
Back to top |
|
|
HunterCo n00b
Joined: 30 Nov 2002 Posts: 9
|
Posted: Wed Dec 18, 2002 9:34 am Post subject: Still a no-go for me... |
|
|
I was getting the same error (on two seperate machines- one of which uses the KEYWORDS"~x86" and one that does not).
I tried running ldconfig, which caused a bunch of HDD action then gave me a prompt again. So I tried emergeing wxPython again and got the same thing on both:
---
src/gtk/image.cpp: In function `void*
SwigwxTIFFHandlerTowxImageHandler(void*)':
src/gtk/image.cpp:1220: `wxTIFFHandler' undeclared (first use this function)
src/gtk/image.cpp:1220: (Each undeclared identifier is reported only once for
each function it appears in.)
src/gtk/image.cpp:1220: `src' undeclared (first use this function)
src/gtk/image.cpp:1222: parse error before `)' token
src/gtk/image.cpp: In function `void* SwigwxTIFFHandlerTowxObject(void*)':
src/gtk/image.cpp:1230: parse error before `)' token
src/gtk/image.cpp: In function `PyObject* _wrap_new_wxTIFFHandler(PyObject*,
PyObject*, PyObject*)':
src/gtk/image.cpp:1238: `_result' undeclared (first use this function)
src/gtk/image.cpp:1247: parse error before `)' token
src/gtk/image.cpp:1247: parse error before `(' token
error: command 'gcc' failed with exit status 1
!!! ERROR: dev-python/wxPython-2.3.3.1-r2 failed.
!!! Function src_compile, Line 48, Exitcode 1
!!! build failed ... make sure you compiled wxGTK with all the graphic libraries enabled via USE
---
I thought maybe it was something I had done with the first system (I've screwed with unmasking things, etc) but when it bombed out on the system that I'm trying to use as a stable server, I knew there was more to it. So what can I do to fix this? My USE string consists of only a couple things:
"x86 X gtk2 gnome -kde qt python jpeg mpeg png cups opengl java -alsa truetype"
|
|
Back to top |
|
|
sanne n00b
Joined: 31 Jul 2002 Posts: 30 Location: france
|
Posted: Wed Dec 18, 2002 2:24 pm Post subject: |
|
|
This refer to graphics USE flags ::::
gif jpeg png tiff ....... |
|
Back to top |
|
|
htj n00b
Joined: 30 Apr 2002 Posts: 33 Location: Aalborg, Denmark
|
Posted: Wed Dec 18, 2002 7:29 pm Post subject: |
|
|
Yep, just put tiff (the other ones are in by default) in your USE and do "emerge wxGTK wxPython" should do the trick |
|
Back to top |
|
|
HunterCo n00b
Joined: 30 Nov 2002 Posts: 9
|
Posted: Thu Dec 19, 2002 7:51 am Post subject: Twas Tiff That Tainted This Try |
|
|
I added "tiff" to the USE flags and rebuilt wxGTK on both systems.
I was also then able to successfully emerge wxPython. Thanks! |
|
Back to top |
|
|
djaquay n00b
Joined: 04 Nov 2002 Posts: 28
|
Posted: Fri Dec 20, 2002 3:20 am Post subject: Re: Twas Tiff That Tainted This Try |
|
|
HunterCo wrote: | I added "tiff" to the USE flags and rebuilt wxGTK on both systems.
I was also then able to successfully emerge wxPython. Thanks! |
Out of curiosity, what versions of wxGTK and wxPython did you end up emerge-ing? I added "tiff" (in my /etc/make.conf file), and still have problems. I just started off an emerge with the 2.3.3 versions of both, explicitly, (should be finished in a couple of hours on my slow box), but am wondering what you got working.
Thanks,
Dave |
|
Back to top |
|
|
McManus Apprentice
Joined: 10 Apr 2002 Posts: 176 Location: Austin, TX
|
Posted: Thu Dec 26, 2002 8:47 pm Post subject: |
|
|
Yeah, I'm still getting problems after I added in the graphics flags... I even re-emerged wxGTK and still have problems. Here's my current USE flags:
USE="-alsa gtk2 threads gif jpeg tiff png"
Any suggestions? I miss anything?
Edit: I should also add that I'm using Unstable (~x86), on Gentoo 1.4_rc1 _________________ McManus
----
Linux user #267375 - http://counter.li.org |
|
Back to top |
|
|
djaquay n00b
Joined: 04 Nov 2002 Posts: 28
|
Posted: Fri Dec 27, 2002 9:03 pm Post subject: |
|
|
Well, what I last posted worked. I did explicit emerges of the 2.3.3 versions of wxGTK and wxPython (in that order), and life is now good. I'm using the stable versions of everything, though (I'm a coward by nature...)
As far as USE goes, I have (amongst many other things):
USE="-kde tiff gif gtk jpeg png"
HTH,
Dave |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Fri Jan 03, 2003 10:59 am Post subject: |
|
|
Still doesn't work here for wxGTK 2.4.0 with wxPython-2.3.3.1-r2
Getting the same error as you guys, I did add tiff to my flags.
emerge info:
Code: |
Portage 2.0.46-r4 (, gcc-3.2.1, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(tm) XP 2000+
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime truetype xml2 xmms xv zlib gdbm berkdb slang readline svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk motif opengl mozilla cdr apache2 -gnome -kde -arts -qt -ipv6 -spell alsa tiff"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.4.1_beta"
JAVA_HOME="/opt/blackdown-jdk-1.4.1_beta"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
|
Anyone who came up with a solution? Is this filed @ bugs.gentoo.org already ? |
|
Back to top |
|
|
rbonthond Apprentice
Joined: 24 Jun 2002 Posts: 190
|
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Tue Jan 07, 2003 4:39 am Post subject: |
|
|
Thanks, was looking for that. |
|
Back to top |
|
|
|