When emerging openmotif-2.2.2-r2, it fails with the following message: gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I/usr/X11R6/include -I./../../../lib -march=pentium4 -O3 -pipe -fomit-frame-pointer -Wall -Wno-unused -Wno-comment -c send.c In file included from /usr/X11R6/include/Xm/DragC.h:29, from /usr/X11R6/include/Xm/DragDrop.h:29, from /usr/X11R6/include/Xm/Transfer.h:29, from send.c:42: /usr/X11R6/include/Xm/Xm.h:1655: parse error before "XmConvertCallbackStruct" send.c: In function `WSMSendMessage': send.c:92: warning: implicit declaration of function `GetTimestamp' make[3]: *** [send.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/openmotif-2.2.2-r2/work/openMotif-2.2.2/clients/mwm/WmWsmLib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/openmotif-2.2.2-r2/work/openMotif-2.2.2/clients/mwm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/openmotif-2.2.2-r2/work/openMotif-2.2.2/clients' make: *** [all-recursive] Error 1 !!! ERROR: x11-libs/openmotif-2.2.2-r2 failed. !!! Function src_compile, Line 42, Exitcode 2 !!! make failed There are no useflags for the ebuild, so I can't try fiddle with those. The file that breaks is /usr/X11R6/include/Xm/Xm.h, and: # qpkg -f /usr/X11R6/include/Xm/Xm.h x11-libs/lesstif * x11-libs/openmotif * Is it bad that I have lesstif and openmotif? Could that be it? Apart from that, I can't seem to fix it. # emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz GENTOO_MIRRORS="http://zazu.ru.ac.za http://zion.ru.ac.za ftp://ftp.is.co.za/linux/distributions/gentoo ftp://trumpetti.atm.tut.fi/gentoo/ ftp://gentoo.linux.no/pub/gentoo/ ftp://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /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/init.d /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 cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline tetex aalib nas bonobo svga ggi tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla snmp acl amd flash gd gtk2 i8x0 ipv6 moznocompose moznoirc moznomail pic samba vim-with-x wmf xosd -arts -kde" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.rucus.ru.ac.za/gentoo-portage" FEATURES="sandbox ccache fixpackages"
that's b/c ur compiling openmotif against lestiff headers. (see also http://forums.gentoo.org/viewtopic.php?t=45527) the original r2 ebuild attached to #21681 fixed that on my box, i.e. gcc command line looks like, gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../../../lib -I/usr/X11R6/include -march=pentium3 -O3 -pipe -Wall -Wno-unused -Wno-comment -c send.c [note that -I./../../../lib and -I/usr/X11R6/include are in reverse order] theres a comment in their that specifically mentions clients/mwm/WmWmsLib. i put only that part back in, didnt work, but then im no expert in sed and libtool/automake stuff is a complete mystery to me. Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" 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 3dnow apm arts avi crypt cups encode gif gpm gtk imlib jpeg kde gnome libg++ libwww mikmod mmx mpeg ncurses oggvorbis pdflib png qt quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline tcltk tcpd pam ssl perl python motif opengl X sse -java nls" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
emerge openmotif-2.2.2-r2 again, please.
Erm, I get exactly the same errors? (Why wouldn't I?)
when you read this -- emerge sync and then try again, please trust me, it doesn't happen :P
Good lord, you're right ;-) (We run a local rsync mirror, which syncs at midnight (South African time), which is why it hadn't come through.) Thanks!