Gentoo Archives: gentoo-user-es

From: Xavi Rubio <xrubio@×××××××.es>
To: gentoo-user-es@g.o
Subject: [gentoo-user-es] error compilando wxPython-2.4.1.2
Date: Mon, 24 Nov 2003 10:38:49
Message-Id: 20031124113827.0b19d937.xrubio@iua.upf.es
1 Hola, estoy intentando compilar la librería wxPython pero me da un error
2 el gcc...no sé si es por culpa de mi ordenador o es que el paquete está
3 mal.
4 Las gtk y wxGTK que tengo instaladas son de la versión normal de gentoo: 2.2.4-r1.
5 Alguien ve donde puede estar el error? Me temo que la causa pueda tener
6 relación con los headers de gtk...
7
8 Gracias y saludos.
9
10 Xavi
11
12 gcc -DNDEBUG -O2 -mcpu=i686 -pipe -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/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
13 In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
14 from /usr/include/gtk-2.0/gdk/gdk.h:30,
15 from /usr/include/gtk-2.0/gtk/gtk.h:31,
16 from src/helpers.cpp:26:
17 /usr/include/gtk-2.0/gdk/gdktypes.h:78: conflicting types for `typedef struct
18 _GdkAtom*GdkAtom'
19 /usr/include/wx/defs.h:2058: previous declaration as `typedef gulong GdkAtom'
20 /usr/include/gtk-2.0/gdk/gdktypes.h:104: conflicting types for `typedef struct
21 _GdkDrawable GdkBitmap'
22 /usr/include/wx/defs.h:2060: previous declaration as `typedef struct _GdkWindow
23 GdkBitmap'
24 /usr/include/gtk-2.0/gdk/gdktypes.h:105: conflicting types for `typedef struct
25 _GdkDrawable GdkPixmap'
26 /usr/include/wx/defs.h:2061: previous declaration as `typedef struct _GdkWindow
27 GdkPixmap'
28 /usr/include/gtk-2.0/gdk/gdktypes.h:106: conflicting types for `typedef struct
29 _GdkDrawable GdkWindow'
30 /usr/include/wx/defs.h:2059: previous declaration as `typedef struct _GdkWindow
31 GdkWindow'
32 In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:32,
33 from /usr/include/gtk-2.0/gtk/gtkwidget.h:32,
34 from /usr/include/gtk-2.0/gtk/gtkmisc.h:32,
35 from /usr/include/gtk-2.0/gtk/gtklabel.h:31,
36 from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:34,
37 from /usr/include/gtk-2.0/gtk/gtk.h:33,
38 from src/helpers.cpp:26:
39 /usr/include/gtk-2.0/gtk/gtktypeutils.h:66:1: warning: "GTK_CLASS_TYPE" redefined
40 In file included from /usr/include/wx/wx.h:15,
41 from src/helpers.h:16,
42 from src/helpers.cpp:16:
43 /usr/include/wx/defs.h:2090:1: warning: this is the location of the previous definition
44 In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32,
45 from /usr/include/gtk-2.0/gtk/gtkmisc.h:32,
46 from /usr/include/gtk-2.0/gtk/gtklabel.h:31,
47 from /usr/include/gtk-2.0/gtk/gtkaccellabel.h:34,
48 from /usr/include/gtk-2.0/gtk/gtk.h:33,
49 from src/helpers.cpp:26:
50 /usr/include/gtk-2.0/gtk/gtkobject.h:46:1: warning: "GTK_OBJECT_GET_CLASS" redefined
51 In file included from /usr/include/wx/wx.h:15,
52 from src/helpers.h:16,
53 from src/helpers.cpp:16:
54 /usr/include/wx/defs.h:2089:1: warning: this is the location of the previous definition
55 In file included from src/helpers.cpp:28:
56 /usr/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or directory
57 src/helpers.cpp: In function `long int wxPyGetWinHandle(wxWindow*)':
58 src/helpers.cpp:1598: `GdkWindowPrivate' undeclared (first use this function)
59 src/helpers.cpp:1598: (Each undeclared identifier is reported only once for
60 each function it appears in.)
61 src/helpers.cpp:1598: `bwin' undeclared (first use this function)
62 src/helpers.cpp:1598: syntax error before `)' token
63 error: command 'gcc' failed with exit status 1
64
65 !!! ERROR: dev-python/wxPython-2.4.1.2 failed.
66 !!! Function src_compile, Line 70, Exitcode 1
67 !!! build failed
68
69 --
70 gentoo-user-es@g.o mailing list