gcc 2.95.2

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

Questions about motif? Contact us

7 posts / 0 new
Last post
gcc 2.95.2

Submitted by Anonymous on Sat, 05/20/2000 - 17:46. Developers
Anyone get Motif to compile with this version of GCC? It compiled clean with 2.7.2.3 on Debian, but refuses to compile with 2.95.2 on Mandrake 7.0.

Thanks.

jeffj@technologist.com

Anonymous

i dont really know if this`s a gcc 2.95.2 bug.. maybe you
forgot something else. like the motif*.cf files for X11..
also depends if you have gcc installed completely with
all it needs and libraries.... please check them out again.
check if you have cpp, g++ etc installed aswell if not then
kick your mandrake and start installing them aswell..

Mark

We built the Open Motif sources on LinuxPPC 2000 with gcc 2.95.2.

What error messages are you seeing?

Mark

Anonymous

More like what error am I not getting-( After the compile snippets below, most of the errors are depend and include errors. Like I said in the post, with 2.7.2.3 on Corel Linux, It built without a hitch. What is this gcc.colorgcc thing that keeps giving me the -o errors? That may be the root of my problems. Maybe if you could show me the changes you made to site.def, linux.cf, and host.def it would help out. Not sure where I can get rid of the -o option though (for the entire build tree).

I went ahead and downloaded the ICS RPM`s, and installed them, but nedit refuses to build, but xmcd built fine. Nedit built fine on Corel, too.

Thanks for the help.

Jeffrey Johnson
jeffj@technologist.com

Any help appreciated.
gcc -O -ansi -pedantic -I../.. -I../../exports/include -I../../imports/x11/include -Dli
nux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOU
RCE -DNO_MESSAGE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO -c mkmsgcat.c -o mkmsgcat.o
gcc.colorgcc cannot specify -o with -c or -S and multiple compilations
make[3] *** [mkmsgcat.o] Error 1
make[3] Leaving directory `/opt/install/src/motif/localized/util`
make[2] *** [includes] Error 2

...

make[4] *** [makestrs.o] Error 1
make[4] Leaving directory `/opt/install/src/motif/config/util`
make[3] *** [../../config/util/makestrs] Error 2

...

gcc -c -O -ansi -pedantic -I. -I../../exports/include -I../../exports/include -I../../lib
-I../../include -I../.. -I../../exports/include -I../../imports/x11/include -Dlinux Linux
MachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DNO_
MESSAGE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO wmlparse.c
gcc.colorgcc LinuxMachineDefines No such file or directory
make[2] *** [wmlparse.o] Error 1

...

make[3] Entering directory `/opt/install/src/motif/clients/uil`
make[3] *** No rule to make target `UilDBDef.h`, needed by `includes`. Stop.
make[3] Leaving directory `/opt/install/src/motif/clients/uil`

...

make[4] Entering directory `/opt/install/src/motif/config/makedepend`
gcc -O -ansi -pedantic -I../../config/imake -I../../include -I../../imports/x11/include/X1
1 -I../.. -I../../exports/include -I../../imports/x11/include -Dlinux LinuxMachineDefines
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DNO_MESSAGE_CATALO
G -DFUNCPROTO=15 -DNARROWPROTO -c include.c -o include.o
gcc.colorgcc cannot specify -o with -c or -S and multiple compilations
make[4] *** [include.o] Error 1
make[4] Leaving directory `/opt/install/src/motif/config/makedepend`
okay, continuing in config/imake
../../config/makedepend/makedepend -- -I../../include -I../../imports/x11/include/X11 -I.
./.. -I../../exports/include -I../../imports/x11/include -Dlinux LinuxMachineDefines -D_PO
SIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DNO_MESSAGE_CATALOG -DF
UNCPROTO=15 -DNARROWPROTO -DCPP_PROGRAM=""/lib/cpp"" -- imake.c
/bin/sh ../../config/makedepend/makedepend No such file or directory
make[3] *** [depend] Error 127

Anonymous

You need to make sure that the following are set up in your host.def file in ${MOTIFBUILDDIR}/motif/config/cf

#define TopLevelProject Motif
#define ProjectRoot /usr/X11R6
#define X11ProjectRoot /usr/X11R6
#define VirtualBindingsPath /usr/X11R6/lib/X11/bindings
#define ImportX11 YES
#define USE_BYACC YES
#define NoMessageCatalog YES

In particular, the NoMessageCatalog definition will eliminate the problem described previously.

Anonymous

Not true.
Gcc fails because LinuxMachineDefines is not defined. Thats because i386Architecure is not defined. Which in turn is because i386 or __i386__ is not defined. All this happens in Imake.cf

I haven`t traced it further but a quick hack to get openmotif to build is

make World BOOTSTRAPCFLAGS="-Di386" >& world.log

Anonymous

That did it. Still not sure why it worked fine on Corel Linux, but not on Mandrake. Thanks for all the help guys.