Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156281 - xproto (/usr/include/X11/Xmd.h) error when compiling wxGTK 2.7.3
Summary: xproto (/usr/include/X11/Xmd.h) error when compiling wxGTK 2.7.3
Status: RESOLVED DUPLICATE of bug 145884
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-26 02:37 UTC by Vladimir Lushnikov
Modified: 2006-11-26 02:44 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 Vladimir Lushnikov 2006-11-26 02:37:47 UTC
When compiling wxGTK 2.7.3 ( bug #145884 ) this error:

---

./bk-deps i686-pc-linux-gnu-g++ -c -o coredll_paletteg.o -I.pch/wxprec_coredll -D__WXGTK__            -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_IODBC_ -I/var/tmp/portage/x11-libs/wxGTK-2.7.2/work/wxGTK-2.7.2/gtk2_build/lib/wx/include/gtk2-ansi-release-2.7 -I/var/tmp/portage/x11-libs/wxGTK-2.7.2/work/wxGTK-2.7.2/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/X11R6/include -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -march=pentium-m -pipe -fno-strict-aliasing /var/tmp/portage/x11-libs/wxGTK-2.7.2/work/wxGTK-2.7.2/src/generic/paletteg.cpp
/usr/include/X11/Xmd.h:165: error: multiple types in one declaration
/usr/include/X11/Xmd.h:165: error: declaration does not declare anything
make: *** [coredll_displayx11.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: x11-libs/wxGTK-2.7.2 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  wxGTK-2.7.2.ebuild, line 155:   Called configure_build 'gtk2' 'unicode' '
                --with-sdl
                --disable-joystick
                        --enable-opengl
                        --with-opengl
                        --with-gnomeprint
            --enable-gif --with-gtk=2'
  wxGTK-2.7.2.ebuild, line 58:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'


---

The error is in /usr/include/X11/Xmd.h at 165 and 164:

--

#ifndef I_NEED_OS2_H
typedef CARD8           BYTE; // line :164:
typedef CARD8           BOOL; // line :165:
#else
#define BYTE    CARD8
#define BOOL    CARD8
#endif

--

I'm using xproto version 7.0.9 and unless I'm wrong, this is incorrect C.


my emerge --info:

---
Portage 2.1.2_rc2-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-rc5-mm2 i686)
=================================================================
System uname: 2.6.19-rc5-mm2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 25 Nov 2006 18:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB en ru de jp"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/xfce-rc2 /usr/portage/local/layman/java-migration-packages /usr/portage/local/layman/xeffects /usr/portage/local/layman/postgresql-experimental /usr/portage/local/layman/postgresql-testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acl acpi aim alsa apache2 audiofile avahi bash-completion berkdb bidi bitmap-fonts bonjour bzip2 cairo calendar canna caps cdb cdinstall cdr cjk cli cracklib crypt cscope cups curl dbus dio dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode esd examples exif expat fam fastcgi fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gadu gcj gd gdbm geoip gif glut gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal howl iconv ieee1394 imagemagick imap imlib innodb input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jabber java javascript jikes jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux lcms ldap libg++ linguas_de linguas_en linguas_en_GB linguas_jp linguas_ru mad meanwhile mhash mikmod mime mmap mmx mono mp3 mpeg mpi mplayer msn mysqli ncurses newspr nls nptl nptlonly nsplugin ocaml odbc ogg opengl osc oscar oss pam pcntl pcre pda pdf perl php png posix postgres ppds pppd python qt3 qt4 quicktime readline recode reflection ruby samba scanner sdl seamonkey session sharedmem silc simplexml slang slp smartcard soap sockets socks5 spell spl sql sqlite3 sse sse2 ssl startup-notification subversion svg tcl tcltk tcpd tetex theora tidy tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd vhosts video_cards_nvidia videos vim-syntax vorbis wifi win32codecs wmf wxwindows xinerama xml xmlrpc xorg xpm xprint xscreensaver xslt xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

----
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-26 02:44:14 UTC
> x11-libs/wxGTK-2.7.2

Not exactly 2.7.3? :P Regardless, none of these versions is actually in the official tree, so don't report bugs about it. If you have issues, post on Bug 145884.

Thanks.

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