[comp.windows.x] Novice building X on Sun 3/50, SunOS 4.0.3

haynes@ucscc.UCSC.EDU (99700000) (10/05/90)

I just applied all the patches and did a make World in my sun3
directory and got everything made.  Nothing (that I have tried so far)
works; they all report "inappropriate ioctl for device" .  Any hints
from Old Hands where I should start looking?  The one my sidekick made
back in April works fine; but he's now in the depths of Africa, so
can't ask him if this is a familiar problem that he solved.
haynes@ucscc.ucsc.edu
haynes@ucscc.bitnet
..ucbvax!ucscc!haynes

"Any clod can have the facts, but having opinions is an Art."
        Charles McCabe, San Francisco Chronicle

mouse@LARRY.MCRCIM.MCGILL.EDU (10/05/90)

> I just applied all the patches and did a make World in my sun3
> directory and got everything made.  Nothing (that I have tried so
> far) works; they all report "inappropriate ioctl for device" .

You used gcc, right?  This looks suspiciously like the broken include
files problem.  Try a simple test.  Put these two lines in a file
somewhere, foo.c say:

#include <sys/ioctl.h>
SIOCGIFCONF

Try running "cc -E foo.c" and "gcc -E foo.c".  The last line of output
from cc should be (functionally) identical to the last line from gcc.
The common problem causes the gcc output to contain 'x' where the cc
output has 'i'.

About all I can suggest to cure it is to try rerunning gcc's
fixincludes script.  If you can't get it in a state where the above
test works, you haven't much hope of making X behave.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu