Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17902 - wxPython 2.4.0.6 failed emerge
Summary: wxPython 2.4.0.6 failed emerge
Status: RESOLVED DUPLICATE of bug 17525
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-20 20:24 UTC by Andrew Resch
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
fix for wxPython 2.4.0.6 (wxPython-2.4.0.6-fix.tgz,1.47 KB, application/octet-stream)
2003-03-21 13:15 UTC, Manolis Stamatogiannakis
Details
fix for wxPython 2.4.0.6 (wxPython-2.4.0.6-fix.tgz,1.47 KB, application/octet-stream)
2003-03-21 13:16 UTC, Manolis Stamatogiannakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Resch 2003-03-20 20:24:02 UTC
When i try to emerge wxPython 2.4.0.6 it errors out during compile.

Reproducible: Always
Steps to Reproduce:
1.emerge wxPython
2.
3.

Actual Results:  
gcc -DNDEBUG -O3 -march=athlon -pipe -O3 -mmmx -m3dnow -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c
src/helpers.cpp -o build-gtk2/temp.linux-i686-2.2/src/helpers.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-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from src/helpers.cpp:26:
/usr/include/gtk-2.0/gdk/gdktypes.h:78: conflicting types for `typedef struct
   _GdkAtom*GdkAtom'
/usr/include/wx/defs.h:2055: previous declaration as `typedef gulong GdkAtom'
/usr/include/gtk-2.0/gdk/gdktypes.h:104: conflicting types for `typedef struct
   _GdkDrawable GdkBitmap'
/usr/include/wx/defs.h:2057: previous declaration as `typedef struct _GdkWindow
   GdkBitmap'
/usr/include/gtk-2.0/gdk/gdktypes.h:105: conflicting types for `typedef struct
   _GdkDrawable GdkPixmap'
/usr/include/wx/defs.h:2058: previous declaration as `typedef struct _GdkWindow
   GdkPixmap'
/usr/include/gtk-2.0/gdk/gdktypes.h:106: conflicting types for `typedef struct
   _GdkDrawable GdkWindow'
/usr/include/wx/defs.h:2056: previous declaration as `typedef struct _GdkWindow
   GdkWindow'
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:32,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:32,
                 from /usr/include/gtk-2.0/gtk/gtkmisc.h:32,
                 from /usr/include/gtk-2.0/gtk/gtklabel.h:31,
                 from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:34,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from src/helpers.cpp:26:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:66:1: warning: "GTK_CLASS_TYPE" redefined
In file included from /usr/include/wx/wx.h:15,
                 from src/helpers.h:16,
                 from src/helpers.cpp:16:
/usr/include/wx/defs.h:2087:1: warning: this is the location of the previous
definition
In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32,
                 from /usr/include/gtk-2.0/gtk/gtkmisc.h:32,
                 from /usr/include/gtk-2.0/gtk/gtklabel.h:31,
                 from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:34,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from src/helpers.cpp:26:
/usr/include/gtk-2.0/gtk/gtkobject.h:46:1: warning: "GTK_OBJECT_GET_CLASS" redefined
In file included from /usr/include/wx/wx.h:15,
                 from src/helpers.h:16,
                 from src/helpers.cpp:16:
/usr/include/wx/defs.h:2086:1: warning: this is the location of the previous
definition
In file included from src/helpers.cpp:28:
/usr/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or directory
src/helpers.cpp: In function `long int wxPyGetWinHandle(wxWindow*)':
src/helpers.cpp:1551: `GdkWindowPrivate' undeclared (first use this function)
src/helpers.cpp:1551: (Each undeclared identifier is reported only once for
   each function it appears in.)
src/helpers.cpp:1551: `bwin' undeclared (first use this function)
src/helpers.cpp:1551: 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 53, Exitcode 1
!!! build failed



Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20-ck4 i686 AMD Duron(tm) Processor
GENTOO_MIRRORS=" http://ftp.easynet.nl/mirror/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/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="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt encode gif jpeg libg++ mmx motif mpeg ncurses
nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang
readline arts bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl
perl python esd imlib oggvorbis gnome qt opengl -cups dga
fbcon -gtk gtk2 -kde -mikmod samba usb"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon -pipe -O3 -mmmx -m3dnow "
CXXFLAGS="-O3 -march=athlon -pipe -O3 -mmmx -m3dnow "
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Manolis Stamatogiannakis 2003-03-21 13:15:22 UTC
Created attachment 9665 [details]
fix for wxPython 2.4.0.6

The wxPython-2.3.3.1-noglcanvas.diff won't work with 2.4.0.6 source.
Archive contains a new patch and a new ebuild. Maybe the patch isn't needed
at all - too lazy to check this. If you still have problems, try adding "-gtk2"
to your USE variable.
Comment 2 Manolis Stamatogiannakis 2003-03-21 13:16:00 UTC
Created attachment 9666 [details]
fix for wxPython 2.4.0.6

The wxPython-2.3.3.1-noglcanvas.diff won't work with 2.4.0.6 source.
Archive contains a new patch and a new ebuild. Maybe the patch isn't needed
at all - too lazy to check this. If you still have problems, try adding "-gtk2"
to your USE variable.
Comment 3 Manolis Stamatogiannakis 2003-03-21 13:16:20 UTC
Comment on attachment 9666 [details]
fix for wxPython 2.4.0.6

The wxPython-2.3.3.1-noglcanvas.diff won't work with 2.4.0.6 source.
Archive contains a new patch and a new ebuild. Maybe the patch isn't needed
at all - too lazy to check this. If you still have problems, try adding "-gtk2"
to your USE variable.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-03-25 20:06:11 UTC
the problem is your wxGTK is compiled by gtk, not gtk2. You'll have to recompile with wxGTK with gtk2 or wxPython without gtk: eg

USE="gtk2" emerge wxGTK

or 

USE="-gtk2" emerge wxPython



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