[comp.windows.x] Missing X11 header files!

lubkt@vax1.cc.lehigh.edu (01/24/91)

Lately, I have realized that building some (at least, five or six) of
the clients distributed on tape-2 of X11R4 fails because of some
missing header files. The following error message is generated by
xfig. Seems to me that these header files should be installed in
/usr/include/X11, but they are not. Why am I missing these files?

cc -O   -I../../../mit     -I/usr/new/include -DX11   -target sun4 -c  addpt.c
/fig.h: 51: Can't find include file X11/Command.h
/fig.h: 52: Can't find include file X11/Label.h
/fig.h: 53: Can't find include file X11/Dialog.h
/fig.h: 54: Can't find include file X11/Box.h
/fig.h: 55: Can't find include file X11/Form.h
*** Error code 2
make: Fatal error: Command failed for target `addpt.o'

Binod Taterway				LUBKT@vax1.CC.Lehigh.EDU
User Consultant				bt00@PL118a.CC.Lehigh.EDU
Lehigh University, Beth, PA.
(215) 758-3984.

klute@tommy.informatik.uni-dortmund.de (Rainer Klute) (01/25/91)

In article <184.279db895@vax1.cc.lehigh.edu>, lubkt@vax1.cc.lehigh.edu writes:
|> Lately, I have realized that building some (at least, five or six) of
|> the clients distributed on tape-2 of X11R4 fails because of some
|> missing header files. The following error message is generated by
|> xfig. Seems to me that these header files should be installed in
|> /usr/include/X11, but they are not. Why am I missing these files?
|> 
|> cc -O   -I../../../mit     -I/usr/new/include -DX11   -target sun4 -c 
|> addpt.c
|> /fig.h: 51: Can't find include file X11/Command.h
|> /fig.h: 52: Can't find include file X11/Label.h
|> /fig.h: 53: Can't find include file X11/Dialog.h
|> /fig.h: 54: Can't find include file X11/Box.h
|> /fig.h: 55: Can't find include file X11/Form.h
|> *** Error code 2
|> make: Fatal error: Command failed for target `addpt.o'

You try to compile an application written for X11R3 under X11R4. The
general strategy to solve the problem is:
1. Try to get a newer version of the software.
2. If 1. failes replace e. g. "#include <X11/Command.h>" by
   "#include <X11/Xaw/Command.h>"

This worked for me.

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB             klute@unido.uucp, klute@unido.bitnet
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-4600 Dortmund 50        |\|\    Fax : +49 231 755-2386