🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23765

Re: Help compiling X11R4 on Sun 3/60 mono.

#23765
From: der Mouse
Date: Mon, 17 Jun 1991 00:06
70 lines
3503 bytes
> I have a Sun 3/60 with a monochrome monitor running SunOs 4.0.3 and I
> want to run X11R4 on it.  I put gcc on it too for the mentioned
> performance benefits.  All seems well except:

> 1) When it gets down to compiling sunInit.c (and others) in ddx/sun
>    it complains as follows:
>    "/usr/include/sundev/vuid_event.h:42: unterminated character constant
>     *** Error code 1"

>    I checked this .h file out and see that line 42 is in the middle
>    of an #ifdef COMMENT ... #endif block.

Yes; it's a line with an odd number of single quotes on it, due to a
"doesn't".  This is a violation of the ANSI rules; text that's
suppressed due to preprocessor #if-type controls must be valid
preprocessor tokens, and unterminated character constants don't cut it.

The 4.1 version of this file has turned the #ifdef COMMENT stuff into a
real comment, which is the right way to do it.

You can simply do the same, or you can build a version of
sundev/vuid_event.h and put it in your gcc-include directory, alongside
all the include files that fixincludes patched up.  (Or more likely,
from what you say below, didn't patch up.)

> 2) everytime make tried to use mit/fonts/mkfontdir/mkfontdir in each
>    of mit/fonts/bdf/misc, 75dpi, and 100dpi; I got:
>    "ld.so: libXmu.so.4: not found
>     *** Error code 127"

I seem to recall what's wrong here, but can't recall the fix offhand.
Something about relative library paths and ld's search rules.  Since
you got it to work I won't worry about it further.

> 3) After linking /home/Xdirs/usr/* to their normal places, I did an
>    xinit and got this:

> Getting interface configuration: Operation not supported on socket
> sunOpenFrameBuffer: Inappropriate ioctl for device

This looks like the gcc fixincludes problem.  From the FAQ....

----------------------------------------------------------------------
Subject:  85)  What are these I/O errors running X built with gcc?
When I try to run xinit or the Xsun server I get the error 
	"Getting interface configuration: Operation not supported on socket. 
	Fatal server bug! no screens found."

	Running the gcc fixincludes script apparently didn't work. You can do 
this simple test:

	#include <sys/ioctl.h>
	SIOCGIFCONF

Run that through cc -E and gcc -E.  The last line of output is the piece of 
interest; it should be identical (modulo irrelevant differences like 
whitespace).  If the gcc version has 'x' where the cc version has 'i', your 
fixincludes run didn't work for some reason or other; go back to your gcc
sources and run `fixincludes`; then rebuild the X distribution. If they are 
identical, try running a make clean in mit/server and rebuilding, just to make 
sure everything gets compiled with the proper include files.  

[courtesy der Mouse, mouse@LARRY.MCRCIM.MCGILL.EDU; 9/90]

----------------------------------------------------------------------

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu
Technical Details
Message-ID: <9106170006.AA27728@lightning.McRCIM.McGill.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines
From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse)
Newsgroups: comp.windows.x
Subject: Re:  Help compiling X11R4 on Sun 3/60 mono.
Message-ID: <9106170006.AA27728@lightning.McRCIM.McGill.EDU>
Date: 17 Jun 91 00:06:12 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 70