Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[wxPython] build failed due to USE flags :?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
H-Pi
Apprentice
Apprentice


Joined: 26 Jun 2002
Posts: 175
Location: Delft (NL)

PostPosted: Fri Nov 08, 2002 5:00 pm    Post subject: [wxPython] build failed due to USE flags :? Reply with quote

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
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Sat Nov 09, 2002 4:33 pm    Post subject: try this Reply with quote

I'm sssuming you emerged x11-libs/wxGTK, so try typing ldconfig before you emerge the package.

Hope this helps!
int1
Back to top
View user's profile Send private message
HunterCo
n00b
n00b


Joined: 30 Nov 2002
Posts: 9

PostPosted: Wed Dec 18, 2002 9:34 am    Post subject: Still a no-go for me... Reply with quote

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"
:cry:
Back to top
View user's profile Send private message
sanne
n00b
n00b


Joined: 31 Jul 2002
Posts: 30
Location: france

PostPosted: Wed Dec 18, 2002 2:24 pm    Post subject: Reply with quote

This refer to graphics USE flags ::::

gif jpeg png tiff .......
Back to top
View user's profile Send private message
htj
n00b
n00b


Joined: 30 Apr 2002
Posts: 33
Location: Aalborg, Denmark

PostPosted: Wed Dec 18, 2002 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
HunterCo
n00b
n00b


Joined: 30 Nov 2002
Posts: 9

PostPosted: Thu Dec 19, 2002 7:51 am    Post subject: Twas Tiff That Tainted This Try Reply with quote

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
View user's profile Send private message
djaquay
n00b
n00b


Joined: 04 Nov 2002
Posts: 28

PostPosted: Fri Dec 20, 2002 3:20 am    Post subject: Re: Twas Tiff That Tainted This Try Reply with quote

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
View user's profile Send private message
McManus
Apprentice
Apprentice


Joined: 10 Apr 2002
Posts: 176
Location: Austin, TX

PostPosted: Thu Dec 26, 2002 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
djaquay
n00b
n00b


Joined: 04 Nov 2002
Posts: 28

PostPosted: Fri Dec 27, 2002 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Fri Jan 03, 2003 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
rbonthond
Apprentice
Apprentice


Joined: 24 Jun 2002
Posts: 190

PostPosted: Fri Jan 03, 2003 1:49 pm    Post subject: Reply with quote

Zu` wrote:
Anyone who came up with a solution? Is this filed @ bugs.gentoo.org already ?


https://bugs.gentoo.org/show_bug.cgi?id=12461
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Tue Jan 07, 2003 4:39 am    Post subject: Reply with quote

rbonthond wrote:
Zu` wrote:
Anyone who came up with a solution? Is this filed @ bugs.gentoo.org already ?


https://bugs.gentoo.org/show_bug.cgi?id=12461


Thanks, was looking for that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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