Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18274 - wxPython 2.4.0.6 fails to build
Summary: wxPython 2.4.0.6 fails to build
Status: RESOLVED DUPLICATE of bug 17525
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 21:12 UTC by Adam Hixson
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Hixson 2003-03-26 21:12:23 UTC
I attempted to emerge dev-python/wxPython, and the build failed.  I'm using
python 2.2.2, and wxGTK 2.4.0.

Reproducible: Always
Steps to Reproduce:
1.  emerge wxPython
Actual Results:  
building 'wxc' extension
creating build/temp.linux-i686-2.2
creating build/temp.linux-i686-2.2/src
creating build/temp.linux-i686-2.2/src/gtk
gcc -DNDEBUG -march=pentium2 -mcpu=pentium2 -O3 -pipe -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c
src/gtk/controls.cpp -o build/temp.linux-i686-2.2/src/gtk/controls.o
-I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
gcc -DNDEBUG -march=pentium2 -mcpu=pentium2 -O3 -pipe -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c
src/gtk/image.cpp -o build/temp.linux-i686-2.2/src/gtk/image.o
-I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
src/gtk/image.cpp: In function `void* 
   SwigwxTIFFHandlerTowxImageHandler(void*)':
src/gtk/image.cpp:1217: `wxTIFFHandler' undeclared (first use this function)
src/gtk/image.cpp:1217: (Each undeclared identifier is reported only once for 
   each function it appears in.)
src/gtk/image.cpp:1217: `src' undeclared (first use this function)
src/gtk/image.cpp:1219: parse error before `)' token
src/gtk/image.cpp: In function `void* SwigwxTIFFHandlerTowxObject(void*)':
src/gtk/image.cpp:1227: parse error before `)' token
src/gtk/image.cpp: In function `PyObject* _wrap_new_wxTIFFHandler(PyObject*, 
   PyObject*, PyObject*)':
src/gtk/image.cpp:1235: `_result' undeclared (first use this function)
src/gtk/image.cpp:1244: parse error before `)' token
src/gtk/image.cpp:1244: parse error before `(' token
error: command 'gcc' failed with exit status 1

!!! ERROR: dev-python/wxPython-2.4.0.6 failed.
!!! Function src_compile, Line 69, Exitcode 1
!!! build failed


Expected Results:  
It should have merged.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.19-openmosix-7 i686 Pentium II (Deschutes)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss avi crypt cups gif jpeg libg++ mikmod ncurses nls pdflib png
quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline
tetex bonobo svga java guile gpm tcpd pam libwww perl python esd oggvorbis motif
opengl mozilla X gtk gnome -alsa mbox -maildir mmx ssl -3dnow -apm -kde -qt
-qtmt tcltk -arts encode imap imlib mpeg sdl"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -mcpu=pentium2 -O3 -pipe"
CXXFLAGS="-march=pentium2 -mcpu=pentium2 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-03-27 07:01:11 UTC
it looks like your wxGTK is compiled with gtk2 and you're trying to merge a gtk1 version of wxPython.

please try again with USE="gtk2" emerge wxPython
Comment 2 Adam Hixson 2003-03-27 12:05:21 UTC
I changed USE=gtk to USE=gtk2, and the build was sucessful.  Thanks.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-03-27 16:05:44 UTC

*** This bug has been marked as a duplicate of 17525 ***