[8970] in Athena Bugs
decmips 7.3p: imake
daemon@ATHENA.MIT.EDU (tom palka)
Sat Feb 15 16:51:23 1992
Date: Sat, 15 Feb 92 16:51:15 -0500
To: bugs@Athena.MIT.EDU
Cc:
From: tom palka <tompalka@mit.edu>
Reply-To: tom palka <tompalka@mit.edu>
System name: hydrox-cookie
Type and version: KN01 7.3P
Display type: PMAX-MFB
What were you trying to do?
xmkmf a Makefile from an Imakefile that worked on other systems (in
media lab).
What's wrong:
[hydrox-cookie.ttyp1] ~/src/xcm/bld
> xmkmf
mv Makefile Makefile.bak
imake -DUseInstalled -I/usr/athena/lib/X11/config
cpp: error /tmp/IIf.a03263:5: syntax error
cpp: error 4: missing endif
imake: Exit code 2. Stop.
What should have happened:
xmkmf should have produced a valid Makefile, and not complained.
Please describe any relevant documentation references:
Here is the Imakefile:
# tompalka
#
#
# if your system has Xess, set -DHAVE_XESS and include the proper
# library in the extra load flags sections.
#
SRCS = xcm.c ariregall.c output.c focus.c txess.c
OBJS = xcm.o ariregall.o output.o focus.o txess.o
LDOPTIONS = -lWc -lXaw -lXmu -lXt -lXext -lX11 -lm -s
ComplexProgramTarget(xcm)
The problem is caused by the "# if" line in comment. Imake interprets
that as a preprocessor directive, when it isn't. When I got rid of that
line things worked just fine.
It doesn't seem to make sense that "# if" would be a preprocessor
option, does it?
tom