[comp.unix.aux] X11R4 with patch 1 on A/UX: can't get server to work

barad@dauphine.ee.tulane.edu (02/03/90)

I've built the X11R4 distribution from MIT on a Mac II running A/UX
1.0.1 using gcc and I have the following problems:

1.xcalc doesn't compile properly as shown by excerpts from the log:

	installing in ./clients/xcalc...
	        gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -O   -I../../.   -
	DmacII -DSYSV  -DIEEE -DSIGNALRETURNSINT -DXAW_BC -c math.c
	Assembler: /tmp/cca08790.s
	        aline 1605      : invalid instruction name
	        aline 1605      : syntax error
	        aline 1621      : invalid instruction name
	        aline 1621      : syntax error
	        aline 1636      : invalid instruction name
	        aline 1636      : syntax error
	*** Error code 1
	        ../.././util/scripts/bsdinst.sh -c    xcalc /usr/bin/X11
	Can't open source file ``xcalc'': No such file or directory
	*** Error code 1

This is not so bad if I don't have xcalc to use.  What is more
important is that the server doesn't work properly as shown when I
startup using the command line:

	xinit -- /usr/bin/X11/XmacII -logo -v -screen 1 -depth 8

What happens is the following:

	Getting interface configuration: Can't assign requested address

	Fatal server bug!
	ioctl I_STR VIDEO_MAP_SLOT failed
	XIO:  fatal IO error 32 (Broken pipe) on X server "#@"
	      after 0 requests (0 known processed) with 0 events remaining.
	      The connection was probably broken by a server shutdown or KillClient.

Can anyone help out here?  Should I not use gcc?  This is the gcc I
picked up already made from apple.com.  Any help is appreciated.
--
Herb Barad	[Signal & Image Processing Laboratory]
		[Electrical Engineering Dept. - Tulane Univ.]
INTERNET:	barad@bourbon.ee.tulane.edu
USENET:		barad@bourbon.uucp

damour@pawl21.pawl.rpi.edu (Kevin Thomas Damour) (02/06/90)

Hello,
   In response to barad@dauphine.ee.tulane.edu
	# This is not so bad if I don't have xcalc to use.  What is more
	# important is that the server doesn't work properly as shown when I
	# startup using the command line:
	# 
	#	xinit -- /usr/bin/X11/XmacII -logo -v -screen 1 -depth 8
	# 
	# What happens is the following:
	# 
	# Getting interface configuration: Can't assign requested address
	# 
	# Fatal server bug!
	# ioctl I_STR VIDEO_MAP_SLOT failed
	# XIO:  fatal IO error 32 (Broken pipe) on X server "#@"
      	# after 0 requests (0 known processed) with 0 events remaining.
      	# The connection was probably broken by a server shutdown or KillClient.
	# 
	# Can anyone help out here?  Should I not use gcc?  This is the gcc I
	# picked up already made from apple.com.  Any help is appreciated.

I also had this problem.  After posting a message I received:

	## From peters@ginsu.apple.com Mon Jan 22 22:59:18 1990
	## Subject: Re: Question about X11R4 and A/UX 
	## In-Reply-To: Your message of Mon, 22 Jan 90 11:48:00 -0500.
        ## 	<9001221648.AA00949@sub.pawl.rpi.edu> 
	## Date: Mon, 22 Jan 90 17:37:38 -0800
	## Status: R
	## 
	## You must run fixincludes -- the gcc preprocessor otherwise mangles
	## various constants used in ioctl calls. Alternatively, compile the
	## server/ddx/mac and server/os/4.2bsd directories using the stock A/UX
	## C compiler.

 I downloaded fixincludes, from a local machine,  and ran the script.
It created several header files. After re-compiling X11R4,
everything worked fine. (But xcalc was still broken - sorry)


Hope this clears up your server problems also.

  Kevin Damour
  RPI, Troy NY
  damour@pawl.rpi.edu

steveg@umd5.umd.edu (Steve Green) (02/06/90)

In article <{24B^*@rpi.edu> damour@pawl21.pawl.rpi.edu (Kevin Thomas Damour) writes:
]Hello,
]   In response to barad@dauphine.ee.tulane.edu
]	# This is not so bad if I don't have xcalc to use.  What is more
]	# important is that the server doesn't work properly as shown when I
]	# startup using the command line:
]	# 
]	#	xinit -- /usr/bin/X11/XmacII -logo -v -screen 1 -depth 8
]	# 
]	# What happens is the following:
]	# 
]	# Getting interface configuration: Can't assign requested address
]	# 
]	# Fatal server bug!
]	# ioctl I_STR VIDEO_MAP_SLOT failed
]	# XIO:  fatal IO error 32 (Broken pipe) on X server "#@"
]      	# after 0 requests (0 known processed) with 0 events remaining.
]      	# The connection was probably broken by a server shutdown or KillClient.
]	# 
]	# Can anyone help out here?  Should I not use gcc?  This is the gcc I
]	# picked up already made from apple.com.  Any help is appreciated.
]
]I also had this problem.  After posting a message I received:
]
]	## From peters@ginsu.apple.com Mon Jan 22 22:59:18 1990
]	## Subject: Re: Question about X11R4 and A/UX 
]	## In-Reply-To: Your message of Mon, 22 Jan 90 11:48:00 -0500.
]        ## 	<9001221648.AA00949@sub.pawl.rpi.edu> 
]	## Date: Mon, 22 Jan 90 17:37:38 -0800
]	## Status: R
]	## 
]	## You must run fixincludes -- the gcc preprocessor otherwise mangles
]	## various constants used in ioctl calls. Alternatively, compile the
]	## server/ddx/mac and server/os/4.2bsd directories using the stock A/UX
]	## C compiler.
]
] I downloaded fixincludes, from a local machine,  and ran the script.
]It created several header files. After re-compiling X11R4,
]everything worked fine. (But xcalc was still broken - sorry)
]
]
]Hope this clears up your server problems also.
]
]  Kevin Damour
]  RPI, Troy NY
]  damour@pawl.rpi.edu

I built X11R4 with gcc and I have had no problems with xcalc or anything else.
One thing that I did that I think will help out is made a link from the big
assembler to /usr/local/lib or whereever the gcc stuff sits.  e.g.
	ln -s /usr/lib/big/as /usr/local/lib/gcc-as
This should help out with assember overflows, etc..  Also, I built the binaries
for gcc myself.  I got the sources and applied the patches as available from
apple.com.  If you want to have a copy of my binaries to try out, just drop
me some email.  
	Also, there was talk on comp.windows.x about a bug in gcc 1.36.
It will affect you when building one of the libraries.  I think I recall
seeing some fixes for X to get around this but I dont remember fore sure.
--
	-steveg@umd5.umd.edu		..!uunet!mimsy!umd5!steveg
"Ignore the message: 'ld warning: file /tmp/kernAAAa06386 has no relocation
information' if it appears."