gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/X11R6/include -I./../../lib -I./../../include -march=i686 -O3 -pipe -Wall -Wno-unused -Wno-comment -c wmldbcreate.c In file included from wmldbcreate.c:96: UilUrmClas.h:847: `XmNtoolTipEnable' undeclared here (not in a function) UilUrmClas.h:847: initializer element is not constant UilUrmClas.h:847: (near initialization for `uil_argument_toolkit_names_vec[517]') UilUrmClas.h:848: `XmNtoolTipPostDelay' undeclared here (not in a function) UilUrmClas.h:848: initializer element is not constant UilUrmClas.h:848: (near initialization for `uil_argument_toolkit_names_vec[518]') UilUrmClas.h:849: `XmNtoolTipPostDuration' undeclared here (not in a function) UilUrmClas.h:849: initializer element is not constant UilUrmClas.h:849: (near initialization for `uil_argument_toolkit_names_vec[519]') UilUrmClas.h:850: `XmNtoolTipString' undeclared here (not in a function) UilUrmClas.h:850: initializer element is not constant UilUrmClas.h:850: (near initialization for `uil_argument_toolkit_names_vec[520]') wmldbcreate.c: In function `emit_chars': wmldbcreate.c:270: warning: `ptr' might be used uninitialized in this function wmldbcreate.c: In function `emit_ints_and_string': wmldbcreate.c:348: warning: `table' might be used uninitialized in this function wmldbcreate.c: In function `emit_char_table': wmldbcreate.c:386: warning: `table' might be used uninitialized in this function wmldbcreate.c: In function `emit_length_and_string': wmldbcreate.c:447: warning: `table' might be used uninitialized in this function wmldbcreate.c: In function `emit_shorts': wmldbcreate.c:568: warning: `ptr' might be used uninitialized in this function wmldbcreate.c: In function `emit_int_and_table_shorts': wmldbcreate.c:634: warning: `table' might be used uninitialized in this function wmldbcreate.c: In function `emit_ints': wmldbcreate.c:667: warning: `ptr' might be used uninitialized in this function make[2]: *** [wmldbcreate.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/openmotif-2.2.2/work/openMotif-2.2.2/tools/wml' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/openmotif-2.2.2/work/openMotif-2.2.2/tools' make: *** [all-recursive] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -209, Exitcode 2 !!! make failed !!! emerge aborting on /usr/portage/x11-libs/openmotif/openmotif-2.2.2.ebuild .
I can confirm this, it is happening to me as well. I'm using default-x86-2.0 with gcc-3.2. The previous version of openmotif emerges fine. I noticed that configure fails to generate 2 of the makefile's as well. I think there are some missing Makefile.in's.
same error here I use gcc-2.95
i've got an other error >>> md5 ;-) openMotif-2.2.2.tar.gz >>> Unpacking source... >>> Unpacking openMotif-2.2.2.tar.gz /usr/sbin/ebuild.sh: /usr/portage/x11-libs/openmotif/files/animate-demo.diff: No such file or directory !!! ERROR: The ebuild did not complete successfully. !!! Function src_unpack, Line -175, Exitcode 1 !!! patch failed !!! emerge aborting on /usr/portage/x11-libs/openmotif/openmotif-2.2.2.ebuild . gentoo tmp #
It seems to be some wierd compiler thing. . . I grabbed the definitions out of the relevant header (Xm/XmStrDefs.h) and pasted them in just before they were used and everything compiled as expected. (I'm using gcc 2.95 as well)
the solution is here: http://forums.gentoo.org/viewtopic.php?p=65508#65508
Same problem here with gcc 3.1.1, same solution (renaming Xm away before emerge). I also had the unpack problem earlier, but it's gone now. I've got such problems with incomplete portage trees almost every day - the rsync system seems to propagate new files ***slowly***.
I have patched tools/wml/Makefile.in to put ${X_CFLAGS} at the end of INCLUDES instead of the beginning. Please update your portage tree and try emerging openmotif again. The patch filename is include-order.diff
Is anyone still having problems?
works for me, thanks!