From: rsc@ucar.edu (Bob Campbell) Date: Wed, 17 Sep 1997 17:18:03 -0600 (MDT) To: nsag@ncar.UCAR.EDU Subject: Re: libXm.a > In other words, my system won't handle xmkmf'ing a X applications. > Most inconvenient. > > Do you have any idea what a user is supposed to do to get the imake > config files to be correct? The xmkmf you used is under the /usr/openwin tree, which was built without knowledge of the Motif or CDE libraries. CDE (/usr/dt) does not have any of the imake utilities. Why, I don't know. Consequently, when you use xmkmf or imake on a Sun (Solaris 2.5.1 or <, CDE 1.0.2) to build a Motif-based application you must add the following to your Imakefile: EXTRA_LIBRARIES = -L/usr/dt/lib -R/usr/dt/lib -lXm EXTRA_INCLS = -I/usr/dt/include For the same reason, you can't use Sun's OpenWindows xmkmf with gcc without hacking the Makefile. Sun assumes you're using the SunPro compiler, so they added this to the Imake.tmpl in OpenWindows: Imake.tmpl:#define OptimizedCDebugFlags -O -xF The gcc compiler chokes on the -xF. You might be able to remove -xF from /usr/openwin/lib/config/Imake.tmpl, but the next time you upgrade, the change may get wiped out. So, you're using Imake template files that are out of date for the libraries you're building against, but the libraries you want don't have an imake tailored to use them. Welcome to System Administration. Bob Campbell rsc@ucar.edu