Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22399 - x11-libs/openmotif-2.2.2-r2 fails to compile
Summary: x11-libs/openmotif-2.2.2-r2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-07 08:29 UTC by Jonathan Hitchcock
Modified: 2003-06-14 04:35 UTC (History)
1 user (show)

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 Jonathan Hitchcock 2003-06-07 08:29:41 UTC
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"
Comment 1 Simon Sheffe 2003-06-08 12:48:37 UTC



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"









Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-14 03:17:41 UTC
emerge openmotif-2.2.2-r2 again, please.
Comment 3 Jonathan Hitchcock 2003-06-14 03:46:38 UTC
Erm, I get exactly the same errors?
(Why wouldn't I?)
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-14 03:55:41 UTC
when you read this -- emerge sync
and then try again, please

trust me, it doesn't happen :P
Comment 5 Jonathan Hitchcock 2003-06-14 04:35:48 UTC
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!