Unable to build Motif 2.2

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Unable to build Motif 2.2

Submitted by Anonymous on Fri, 11/01/2002 - 09:23. General Questions
Dear all,

When trying to compile OpenMotif I receive some errors. I`ve
located the source directory which fails, it`s tools. I`ve
cleaned and make`d it all, but it always shows the same errors.

I`ve just configured (with --prefix) and make.

The machine is,
kandake~>uname -a
Linux kandake 2.4.12 #14 SMP Fri Jan 11 145010 CET 2002 i686 unknown

and the GCC version is 2.96

Thanks for all,

--------------------------------------------------------------

kandake/scratch1/cepba/harald/openMotif-2.2.2/tools>make
Making all in wml
make[1] Entering directory `/scratch1/cepba/harald/openMotif-2.2.2/tools/wml`
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/X11R6/include -I./../../lib -I./../../include -O2 -Wall -Wno-unused -Wno-comment -Wall -Wno-unused -Wno-comment -c wmldbcreate.c
In file included from wmldbcreate.c94
UilSymEnum.h1532 `XmABSOLUTE` undeclared here (not in a function)
UilSymEnum.h1532 initializer element is not constant
UilSymEnum.h1532 (near initialization for `enumval_values_table_vec[62]`)
UilSymEnum.h1533 `XmADD_MODE` undeclared here (not in a function)
UilSymEnum.h1533 initializer element is not constant
UilSymEnum.h1533 (near initialization for `enumval_values_table_vec[63]`)
UilSymEnum.h1543 `XmANY_ICON` undeclared here (not in a function)
UilSymEnum.h1543 initializer element is not constant
UilSymEnum.h1543 (near initialization for `enumval_values_table_vec[73]`)
....

In file included from wmldbcreate.c95
UilSymCSet.h14 `_MOTIF_DEFAULT_LOCALE` undeclared here (not in a function)
UilSymCSet.h14 initializer element is not constant
UilSymCSet.h14 (near initialization for `charset_xmstring_names_table_vec[3]`)
In file included from wmldbcreate.c96
UilUrmClas.h478 `XmNarrowLayout` undeclared here (not in a function)
UilUrmClas.h478 initializer element is not constant
UilUrmClas.h478 (near initialization for `uil_argument_toolkit_names_vec[148]`)
UilUrmClas.h479 `XmNarrowOrientation` undeclared here (not in a function)
UilUrmClas.h479 initializer element is not constant
UilUrmClas.h479 (near initialization for `uil_argument_toolkit_names_vec[149]`)
UilUrmClas.h480 `XmNarrowSensitivity` undeclared here (not in a function)
UilUrmClas.h480 initializer element is not constant
UilUrmClas.h480 (near initialization for `uil_argument_toolkit_names_vec[150]`)

wmldbcreate.c In function `emit_chars`
wmldbcreate.c270 warning `ptr` might be used uninitialized in this function
wmldbcreate.c In function `emit_ints_and_string`
wmldbcreate.c348 warning `table` might be used uninitialized in this function
wmldbcreate.c In function `emit_char_table`
wmldbcreate.c386 warning `table` might be used uninitialized in this function
wmldbcreate.c In function `emit_length_and_string`
wmldbcreate.c447 warning `table` might be used uninitialized in this function
wmldbcreate.c In function `emit_shorts`
wmldbcreate.c568 warning `ptr` might be used uninitialized in this function
wmldbcreate.c In function `emit_int_and_table_shorts`
wmldbcreate.c634 warning `table` might be used uninitialized in this function
wmldbcreate.c In function `emit_ints`
wmldbcreate.c667 warning `ptr` might be used uninitialized in this function
make[1] *** [wmldbcreate.o] Error 1
make[1] Leaving directory `/scratch1/cepba/harald/openMotif-2.2.2/tools/wml`
make *** [all-recursive] Error 1

Anonymous

Hi,

Looks simple enough. gcc cannot find the resources its looking for. You can probably find them yourself easily, as a reference.

You can look at the configure log to see if anythign was detected incorrectly - though you might not know what to look for, right?

You might "start fresh". If you are new to building, you may have done something that is "a no go" without realizing it.

OpenMotif (at least previously) used yacc as part of creating the files you meantioned.

However, "yacc" is also sometimes called "byacc" or something else.

Your "distributor" should have altered these things in the "site configuration files" which all make programs look at. It should have an entry like "HAVE_YACC=y, YACC=byacc" or somthing.

Anyway, if you have X installed correctly, the required libs installed, and the site config your X11R6/lib/X11/include is how your distributor set it up (correctly), you should be fine.

If you don`t ... you can`t expect it to compile. After all - your only compiling a program for X - not all of X and all its libs.

Good news? This isn`t a "special" compile per say. It is just like compiling any of many X programs. It is big. But it has no strange requirements.

Hope that helps,

john