Compiling Error

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

Questions about motif? Contact us

5 posts / 0 new
Last post
Compiling Error

Submitted by jflowers on Sun, 08/19/2007 - 18:48.

I am trying to compile Open Motif 2.3 on my ubuntu 7.04 system (using sudo), but during make and make install I always get the following error message:

make[2]: Entering directory `/usr/X11R6/lib/openmotif-2.3.0/config/imake'
make[3]: Entering directory `/usr/X11R6/lib/openmotif-2.3.0/config/imake'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/X11R6/lib/openmotif-2.3.0/config/imake'
make[2]: Leaving directory `/usr/X11R6/lib/openmotif-2.3.0/config/imake'
Making install in makedepend
make[2]: Entering directory `/usr/X11R6/lib/openmotif-2.3.0/config/makedepend'
make[3]: Entering directory `/usr/X11R6/lib/openmotif-2.3.0/config/makedepend'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/X11R6/lib/openmotif-2.3.0/config/makedepend'
make[2]: Leaving directory `/usr/X11R6/lib/openmotif-2.3.0/config/makedepend'
Making install in util
make[2]: Entering directory `/usr/X11R6/lib/openmotif-2.3.0/config/util'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../lib/Xm -g -O2 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -MT makestrs.o -MD -MP -MF ".deps/makestrs.Tpo" -c -o makestrs.o makestrs.c; \
then mv -f ".deps/makestrs.Tpo" ".deps/makestrs.Po"; else rm -f ".deps/makestrs.Tpo"; exit 1; fi
makestrs.c:51:21: error: X11/Xos.h: No such file or directory
makestrs.c: In function ‘WriteHeaderProlog’:
makestrs.c:115: warning: implicit declaration of function ‘strcmp’
makestrs.c: In function ‘CopyTmplProlog’:
makestrs.c:228: warning: implicit declaration of function ‘strlen’
makestrs.c:228: warning: incompatible implicit declaration of built-in function ‘strlen’
makestrs.c:231: warning: implicit declaration of function ‘strncmp’
makestrs.c: In function ‘WriteHeader’:
makestrs.c:275: warning: incompatible implicit declaration of built-in function ‘strlen’
makestrs.c:279: warning: incompatible implicit declaration of built-in function ‘strlen’
makestrs.c: In function ‘DoLine’:
makestrs.c:483: warning: incompatible implicit declaration of built-in function ‘strlen’
makestrs.c:513: warning: implicit declaration of function ‘strcpy’
makestrs.c:513: warning: incompatible implicit declaration of built-in function ‘strcpy’
makestrs.c:532: warning: incompatible implicit declaration of built-in function ‘strcpy’
makestrs.c:547: warning: incompatible implicit declaration of built-in function ‘strcpy’
makestrs.c:589: warning: implicit declaration of function ‘index’
makestrs.c:589: warning: incompatible implicit declaration of built-in function ‘index’
makestrs.c:595: warning: implicit declaration of function ‘strcat’
makestrs.c:595: warning: incompatible implicit declaration of built-in function ‘strcat’
makestrs.c: In function ‘IntelABIIndexEntries’:
makestrs.c:631: warning: incompatible implicit declaration of built-in function ‘strlen’
makestrs.c: In function ‘DefaultIndexEntries’:
makestrs.c:646: warning: incompatible implicit declaration of built-in function ‘strlen’
makestrs.c: In function ‘DoComment’:
makestrs.c:676: warning: incompatible implicit declaration of built-in function ‘index’
makestrs.c:681: warning: implicit declaration of function ‘strncpy’
makestrs.c:681: warning: incompatible implicit declaration of built-in function ‘strncpy’
makestrs.c: In function ‘main’:
makestrs.c:736: warning: incompatible implicit declaration of built-in function ‘strlen’
make[2]: *** [makestrs.o] Error 1
make[2]: Leaving directory `/usr/X11R6/lib/openmotif-2.3.0/config/util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/X11R6/lib/openmotif-2.3.0/config'
make: *** [install-recursive] Error 1

Any help would be appreciated.

Thanks

Tue, 08/28/2007 - 19:10#1

Tue, 08/28/2007 - 19:10#1

Yuriy Syrota

Compiling Error

You need to install X Window header files.

 

Thu, 11/01/2007 - 17:25#2

Thu, 11/01/2007 - 17:25#2

roger.moore

installing header files

Could you please tell me, how do you install these header files? I'm working on an Ubuntu system, and I've installed every *.deb file on the DVD that has anything to do with X11 as far as I know, but I'm still missing header files.

Wed, 11/07/2007 - 16:11#3

Wed, 11/07/2007 - 16:11#3

Yuriy Syrota

Compiling Error

Unfortunately I'm not familiar with Ubuntu, but is this system has devel packages, please install X Window's devel packages

Tue, 11/13/2007 - 22:26#4

Tue, 11/13/2007 - 22:26#4

roger.moore

Synaptic package manager

Thank you so much for your reply Yuriy! I was actually having a big headache trying to resolve package dependencies, but the problem was that for some reason my Ubuntu installation at work didn't include the synaptic package manager in the System | Administration menu.

Anyways, I reinstalled Ubuntu on a different machine at home, which is where I discovered the existence of synaptic, and was delighted to find out that it resolves all the dependencies for you by automatically downloading them from the web!

Thankfully, after I learned about synaptic at home I was able to start it at work using the command gnome-app-install. The more I use Ubuntu the more I like it over other distros!
:D

BTW, jflowers, I've also tried to install openmotif from source, but was never successful. Eventually I found the appropriate packages for version 2.2.3 on http://packages.ubuntu.com/dapper/source/openmotif that you may want to try to install instead.