Hi Solaris developers,
I compile X contrib source code and most of them make an extensive
use of imake to propose platform independent compiling solutions.
So, I tried to use imake through the xmkmf command and that is where
the problems arise !
1. There are no rules defined for Motif libraries (and includes).
OK, you can add /usr/dt/lib and -I/usr/dt/include to
EXTRA_LIBRARIES and EXTRA_INCLUDES variables in
2. the make install rule is wrong as it assumes bsd syntax instead
of System V one. OK you can change the parameters order for
install in the file /usr/openwin/lib/config/Imake.rules.
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) $(DESTDIR)dest
$(INSTALL) -c $(DESTDIR)dest $(INSTLIBFLAGS) Concat(lib,libname.a)
3. the imake utility generates wrong formatted Makefiles. You will
sometimes get the following error message when using make:
make: Fatal error in reader: Makefile, line xx:
Unexpected end of line seen
A bug report (Bug Id 1089799) propose to solve this by ading some
chars or lines to the file but I found this a painful solution: it
does not give immediate results, either, you have got to try with
more or less chars/lines, or it pass but crashes on another line
in the file.
I HAVE GOT NO SOLUTION FOR THIS PROBLEM, if any of you found one, I
would be very happy to know the workaround.
In conclusion, I think Sun should really improve its support of the
imake facility if they want to be part of the Open Systems adventure
as they say. I don't know how Sun's developpers are standing this
situation where some of these problems are out there for years know.
Thank you to all of you.
* David Wikler , Engineer
* Brussels Free University - Erasme Hospital
* PET/cyclotron Unit
* 808 route de Lennik
* 1070 Brussels - Belgium
* Tel: (+32)2 555 47 23
* Fax: (+32)2 555 47 01