During compilation of wxGTK with use -debug +gtk +gtk2 -odbc +opengl +unicode +wxgtk1 I have noticed an error in building the gtk version: i686-pc-linux-gnu-g++ -c -I../../../lib/wx/include/gtk-2.4 -I../../../../contrib/../include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I../../../../contrib/../contrib/include -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -O2 -march=athlon-tbird -fomit-frame-pointer -pipe -pthread -Wall -fPIC -o sndcpcm.o ../../../../contrib/../contrib/src/mmedia/sndcpcm.cpp i686-pc-linux-gnu-g++ -c -I../../../lib/wx/include/gtk-2.4 -I../../../../contrib/../include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I../../../../contrib/../contrib/include -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -O2 -march=athlon-tbird -fomit-frame-pointer -pipe -pthread -Wall -fPIC -o sndesd.o ../../../../contrib/../contrib/src/mmedia/sndesd.cpp i686-pc-linux-gnu-g++ -c -I../../../lib/wx/include/gtk-2.4 -I../../../../contrib/../include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I../../../../contrib/../contrib/include -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -O2 -march=athlon-tbird -fomit-frame-pointer -pipe -pthread -Wall -fPIC -o sndfile.o ../../../../contrib/../contrib/src/mmedia/sndfile.cpp ../../../../contrib/src/mmedia/sndcpcm.cpp:69:53: pasting "Convert_8_8_sign" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:71:60: pasting "Convert_8_16" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:72:48: pasting "Convert_8_16_swap" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:73:74: pasting "Convert_8_16_sign" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:74:60: pasting "Convert_8_16_sign_swap" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:76:57: pasting "Convert_16_8" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:77:71: pasting "Convert_16_8_sign" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:78:64: pasting "Convert_16_swap_8" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:79:78: pasting "Convert_16_swap_8_sign" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:86:56: pasting "Convert_16_sign" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:87:85: pasting "Convert_16_swap" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:89:102: pasting "Convert_16_swap_16_sign" and "(" does not give a valid preprocessing token ../../../../contrib/src/mmedia/sndcpcm.cpp:91:67: pasting "Convert_16_swap_16_sign_swap" and "(" does not give a valid preprocessing token make[1]: *** [sndcpcm.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/wxGTK-2.4.2-r3/work/wxGTK-2.4.2/build_gtk/contrib/src/mmedia' I have produced a patch for sndcpcm.cpp to solve the problem. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 29 2005, 18:31:16)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/OpenOffice.org/share/dict/ooo /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe" DISTDIR="/mnt/lfs/distfiles/" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks keeptemp keepwork sandbox sfperms strict" GENTOO_MIRRORS=" http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp.students.cs.unibo.it/gentoo/ " LANG="it_IT" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aac acl alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts blas bzip2 cddb cdparanoia cdr chroot cmucl crypt cups curl directfb divx4linux doc dv dvb emboss encode ethereal examples faac faad fam fbcon fftw flac foomaticdb fortran fpx gcj gd gdbm gif gimpprint gmp gnutls gphoto2 gpm graphviz gtk gtk2 imagemagick imlib java jbig jpeg jpeg2k kde kdeenablefinal lcms libg++ libwww live lzo mad mikmod mime mjpeg mmx mmxextmotif mozdevelop mozsvg mozxmlterm mp3 mpeg mysql ncurses network nls nntp nptl ogg oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python qt quicktime readline real samba sdk sdl skey smime speex spell ssl stats tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1 type1-fonts unicode userlocales vorbis wifi wmf wxgtk1 xanim xine xml2 xmms xv xvid yv12 zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Created attachment 58356 [details, diff] wxGTK-2.4.2-stringizing.patch
I have just seen that the patch I have provided is also inside wxGTK-2.4.2-cleanup.patch but this one is only for amd64 (I am on x86).
Created attachment 58391 [details, diff] wxGTK-2.4.2-various_contrib.patch I have produced other fixes for other errors in building contrib/src/*. I have looked in wxGTK CVS and I have used intuition: please have a check before using this patch :-)
There is a last issue to solve: it happens during compilation of gtk2 and unicode versions. The error I have got is the following: i686-pc-linux-gnu-g++ -c -I../../../lib/wx/include/gtk2-2.4 -I../../../../contrib/../include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -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/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I../../../../contrib/../contrib/include -D__WXGTK__ -DGTK_NO_CHECK_CASTS -O2 -MMD -O2 -march=athlon-tbird -fomit-frame-pointer -pipe -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -Wall -fPIC -o vidxanm.o ../../../../contrib/../contrib/src/mmedia/vidxanm.cpp ../../../../contrib/src/mmedia/vidxanm.cpp: In member function `bool wxVideoXANIM::RestartXANIM()': ../../../../contrib/src/mmedia/vidxanm.cpp:472: error: `GdkWindowPrivate' undeclared (first use this function) ../../../../contrib/src/mmedia/vidxanm.cpp:472: error: (Each undeclared identifier is reported only once for each function it appears in.) ../../../../contrib/src/mmedia/vidxanm.cpp:472: error: parse error before `)' token ../../../../contrib/src/mmedia/vidxanm.cpp:482: warning: int format, Window arg (arg 3) ../../../../contrib/src/mmedia/vidxanm.cpp:469: warning: unused variable ` GdkWindow*window' make[1]: *** [vidxanm.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/wxGTK-2.4.2-r3/work/wxGTK-2.4.2/build_gtk2/contrib/src/mmedia'
Created attachment 63984 [details, diff] wxGTK-2.4.2-various_contrib.patch Solved the last issue, now wxGTK contribs compile like a charm
Created attachment 74178 [details, diff] wxGTK-2.4.2-stringizing.patch
Created attachment 74179 [details, diff] wxGTK-2.4.2-various_contrib.patch
Now the patches don't depend on ebuild revision
Created attachment 84381 [details, diff] wxGTK-2.4.2-gcc3.4.patch Another patch to solve gcc 3.4 issues
*** Bug 128667 has been marked as a duplicate of this bug. ***
wxGTK-2.4 is dead (Bug 145032)