[comp.os.minix] mini-X server problems

zilgens@cip-s05.informatik.rwth-aachen.de (Wolfgang Zilgens) (06/06/91)

when I want to build mini-X, I get the following message
compiling the mini-X server:
(the other stuff is compiled well)

make
.....
...
..
cc -c -i -O serv_dev.c
/usr/include/fcntl.h:53.15  (from serv_dev.c:13):need ';'
/usr/include/fcntl.h:54.13  (from serv_dev.c:13):off_t already declared
/usr/include/fcntl.h:54.13  (from serv_dev.c:13):need ';'
/usr/include/fcntl.h:55.13  (from serv_dev.c:13):need ';'


What did I do wrong ?
Have I a corrupt Minix-386, or
nedds the mini-X source a patch ????

Who can help ?

evans@syd.dit.CSIRO.AU (Bruce.Evans) (06/06/91)

In article <zilgens.676209394@cip-s05> zilgens@cip-s05.informatik.rwth-aachen.de (Wolfgang Zilgens) writes:
>when I want to build mini-X, I get the following message
>...
>cc -c -i -O serv_dev.c
>/usr/include/fcntl.h:53.15  (from serv_dev.c:13):need ';'
>/usr/include/fcntl.h:54.13  (from serv_dev.c:13):off_t already declared

This happens because <sys/types.h> is not included, so the 1.5 fcntl.h is
not self-sufficient. It's not clear where it should be included. I became
sick of this problem after seeing it 100 times and made everything in
/usr/include self-sufficient.
-- 
Bruce Evans		evans@syd.dit.csiro.au

hp@vmars.tuwien.ac.at (Peter Holzer) (06/07/91)

zilgens@cip-s05.informatik.rwth-aachen.de (Wolfgang Zilgens) writes:

>cc -c -i -O serv_dev.c
>/usr/include/fcntl.h:53.15  (from serv_dev.c:13):need ';'
>/usr/include/fcntl.h:54.13  (from serv_dev.c:13):off_t already declared
>/usr/include/fcntl.h:54.13  (from serv_dev.c:13):need ';'
>/usr/include/fcntl.h:55.13  (from serv_dev.c:13):need ';'


>What did I do wrong ?
>Have I a corrupt Minix-386, or
>nedds the mini-X source a patch ????

In serve-dev.c (and some other files, too) <sys/types.h> needs to be included
before <fcntl.h>. Also, there is a bug somewhere in the code handling the
PC-mouse (Also easy to find).

I have posted the diffs some time ago, so they should be in many archives, but
you are probly faster fixing them yourselves than finding, getting and applying
the patches.
--
|    _  | Peter J. Holzer                       | Think of it   |
| |_|_) | Technical University Vienna           | as evolution  |
| | |   | Dept. for Real-Time Systems           | in action!    |
| __/   | hp@vmars.tuwien.ac.at                 |     Tony Rand |