From: dgy@cs.mcgill.ca ()
Subject: X11R5 on SVR4 (Dell) help!!!
Originator: dgy@binkley.cs.mcgill.ca
Organization: SOCS, McGill University, Montreal, Canada
Date: Mon, 6 Apr 1992 23:34:30 GMT

Hi, dear netters,

I have been desperatly trying to make X11R5(X386) run on Dell SVR4 2.1. 
I got stuck with error 'no screens found'.  I posted a questions few days
ago and got few replies, but none of them solved my problem.  
Thanks to all people who sent suggestions to me.
I have tried all I could try. In desperation, I post this question again.
Any help will be very very appreciated.
Thanks a million in advance.

	System: 486/33 stand-alone
	SCSI: Adeptec 1542B
	RAM: 16Mb
	HD: 405Mb
	Videocard: STB PWR ET4000, 1 Mb
	Network card: None
	OS: Dell UNIX SVR4 2.1 i386/i486

Built-in X11R4(X386) has been running perfectly.

I load MIT X11R5 source under my home directory: $HOME/X11R5/mit.
ProjetRoot: $HOME/X11R5/usr (site.def & x386.cf are attached below)
After compiled and installed succesffully(no error),I changed PATH
 in .cshrc and .login as:

	set path=($HOME/X11R5/usr/bin . /sbin /usr/sbin /usr/bin /etc /usr/ucb)

instead of :

	set path=(/usr/bin/X11 $HOME/bin . /sbin /usr/sbin /usr/bin /etc /usr/ucb )

And tried  to start from csh: 
	setenv DISPLAY minnie:0.0	(and also minnie:0
				  		unix:0.0
						unix:0
						localhost:0.0
						localhost:0
					) minnie is my system name.
	startx		(see below)

Later tried  to start from ksh:
	DISPLAY=minnie:0.0;export DISPLAY	(...... same as above)
	startx

No matter what I did, I always get following message:

       Setting TCP SO-DONTLINGER: option not supported by protocol
      X386 Version 1.2 /X Window System
      (Protocol Version 11, revision 0, vendor release 5000)

       Fatal server error:
       no screens found
       giving up
       xinit: software caused connection abort(errno 130): unable to
       connect to X server
       xinit: No such process(errno 3): server error

I was told that I should be able to do 'ftp minnie' in order to run  X11R5,
is it true?
I can't do that . Is it matter?	
If  yes, how can I make it work without networkcard?
 
I used following scripts:

(1) $HOME/X11R5/usr/bin/startx

	:
	userclientrc=$HOME/.xinitrc
	userserverrc=$HOME/.xserverrc
	sysclientrc=$HOME/X11R5/usr/lib/X11/xinit/xinitrc
	sysserverrc=$HOME/X11R5/usr/lib/X11/xinit/xserverrc
	clientargs=""
	serverargs=""

	if [ -f $userclientrc ]; then
  	  clientargs=$userclientrc
	else if [ -f $sysclientrc ]; then
	    clientargs=$sysclientrc
	fi
	fi

	if [ -f $userserverrc ]; then
	    serverargs=$userserverrc
	else if [ -f $sysserverrc ]; then
	    serverargs=$sysserverrc
	fi
	fi

	whoseargs="client"
	while [ "x$1" != "x" ]; do
	    case "$1" in
		/''*|\.*)	if [ "$whoseargs" = "client" ]; then
			    clientargs="$1"
			else
			    serverargs="$1"
			fi ;;
		--)	whoseargs="server" ;;
		*)	if [ "$whoseargs" = "client" ]; then
			    clientargs="$clientargs $1"
		else
		    serverargs="$serverargs $1"
		fi ;;
 	   esac
	    shift
	done
	$HOME/X11R5/usr/bin/xinit $clientargs -- $serverargs

(2) $HOME/X11R5/usr/lib/X11/xinit/xinitrc

	#!/bin/sh

	WINDOWMGR=twm

	# Uncomment this line and fill in the name of your nntp news server
	# if you want to use xrn.
	# NNTPSERVER=your-nntp-server ; export NNTPSERVER

	# PATH  
	PATH=$HOME/X11R5/usr/bin:/usr/bin:/usr/sbin:/usr/ucb:/etc; export PATH


	# start some nice programs

	xclock -geometry 75x75-+1 &
	xterm -ls -geometry 80x24+20+25 -title login &
	exec $WINDOWMGR

(3) $HOME/X11R5/lib/X11/xinit/xserverrc

	#!/bin/sh

	SERVER="$HOME/X11R5/usr/bin/X386"

	DISPLAY=unix:0
	#DISPLAY=localhost:0
	#DISPLAY=minnie:0
	export SERVER DISPLAY 
	# You may want to turn backing store off for running tvtwm
	#NOBACK=-bs

	exec $SERVER bc $NOBACK


(4) $HOME/X11R5/usr/lib/X11/Xconfig

	# $XConsortium: Xconfig,v 1.2 91/08/26 14:34:55 gildea Exp $
	#
	# Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
	#
	# Permission to use, copy, modify, distribute, and sell this software and its
	# documentation for any purpose is hereby granted without fee, provided that
	# the above copyright notice appear in all copies and that both that
	# copyright notice and this permission notice appear in supporting
	# documentation, and that the name of Thomas Roell not be used in
	# advertising or publicity pertaining to distribution of the software without
	# specific, written prior permission.  Thomas Roell makes no representations
	# about the suitability of this software for any purpose.  It is provided
	# "as is" without express or implied warranty.
	#
	# THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
	# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
	# EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
	# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
	# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
	# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	# PERFORMANCE OF THIS SOFTWARE.
	#
	# Author:  Thomas Roell, roell@informatik.tu-muenchen.de

	#
	# some nice paths, to avoid conflicts with other X-servers
	#
	RGBPath		"/home/dai/X11R5/usr/lib/X11/rgb"
	FontPath	"/home/dai/X11R5/usr/lib/X11/fonts/misc/,/home/dai/X11R5/usr/lib/X11/fonts/75dpi/"

	Keyboard
	  AutoRepeat 500 5
	#  Xleds      1 2 3
	  ServerNumLock
	#  DontZap

	Logitech	"/dev/tty00"
	  BaudRate	9600
 	 SampleRate	150
	#  Emulate3Buttons
	#
	# The graphics drivers
	#
	vga256
	  Chipset	"ET4000"
	  Clocks	25 28 36 65
	  Virtual	640 480
	  ViewPort      0 0
	  Modes	        "640x480"

	ModeDB
	# clock  horzontal timing      vertical timing
	 "640x480"   25     640  672  768  800    480  490  492  525
	#             28     640  672  768  800    480  490  492  525

	# "800x600"   36     800  816  952 1056    600  608  610  633
	#             36     800  832  966  966    600  600  609  631
	#             39     800  872  968 1104    600  600  606  624
	#             39     800  864  896 1008    600  600  606  624

	# "920x690"   62     920  952 1088 1168    690  688  718  724

	# "1024x768i" 44    1024 1064 1224 1264    768  777  785  817   Interlace
	#	     45    1024 1064 1224 1264    768  777  785  817   Interlace
	# "1024x768"  62    1024 1092 1220 1344    768  786  791  810
	#             62    1024 1096 1272 1328    768  776  778  808
	#             62    1024 1072 1176 1272    768  778  779  804
	#             62    1024 1072 1200 1240    768  766  782  786

	# "1152x900"  62    1152 1184 1288 1360    900  898  929  939   Interlace



---------------------------------------------------------------------------------------------------------
site.def

XCOMM site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

/*****************************************************************************
 *                                                                           *
 *			   SITE-SPECIFIC DEFINITIONS                         *
 *                                                                           *
 * This file contains two halves, one included before the vendor-specific    *
 * configuration file (.cf file), and one included after the .cf file.       *
 * The before-half should be protected by #ifdef BeforeVendorCF, and the     *
 * after-half should be protected by #ifdef AfterVendorCF.                   *
 *                                                                           *
 * The before-half should only set things that the .cf file depends on.      *
 * For the .cf files shipped in this release, the main variable in this      *
 * category is HasGcc.                                                       *
 *                                                                           *
 * The after-half should contain all other definitions.  For example,        *
 * place your ProjectRoot definition here.  Beware that several of the       *
 * .cf files supplied by vendors have a ProjectRoot already defined, so      *
 * you may need to #undef it first.                                          *
 *                                                                           *
 * OS Major and Minor version numbers should be changed directly in the .cf  *
 * file, not overridden in site.def.                                         *
 *                                                                           *
 *****************************************************************************/

#ifdef BeforeVendorCF

/* #define HasGcc YES */
#define ManSufffix	1
#define HasSharedLibraries	YES

#endif /* BeforeVendorCF */

#ifdef AfterVendorCF


#ifdef ProjectRoot
#undef ProjectRoot
#endif

#define ProjectRoot /home/dai/X11R5/usr

#define InstallXdmConfig YES
#define InstallXinitConfig YES
#define InstallFSConfig YES


#endif /* AfterVendorCF */


---------------------------------------------------------------------------------------------------------
x386.cf

XCOMM platform:  $XConsortium: x386.cf,v 1.7 91/08/16 19:30:10 gildea Exp $

/*****************************************************************************
 *			  Site-specfic parameters                            *
 *****************************************************************************/

/*
 * there are some switches to set appropriate...
 */

#define HasGcc			NO	/* doesn't work for SVR4 */
#define HasSockets		YES
#define HasNdbm			YES	/* correct for GNU dbm & SVR4 */
#define ProjectRoot		/home/dai/X11R5/usr
#define StripInstalledPrograms	YES
#define X386Server		YES
#define ExtensionOSDefines	-DXTESTEXT1
#define MotifBC	        	YES

/*****************************************************************************
 *                        Do not change anything below                       *
 *****************************************************************************/

/* You must manually compute BootstrapCFlags for initial build */
#define BootstrapCFlags		OSDefines OSRelease

#define StandardDefines		OSDefines OSRelease
#define LdCombineFlags		-r

#if defined(i386SVR3Architecture)

#define SystemV			YES

#define NeedBerklib		YES

/*
 * V/386 Release 3.2
 */
#ifdef ISC
/* INTERACTIVE UNIX Version 2.2.1 */
# define OSVendor		"Interactive System Corp."
# define OSDefines		-DISC
# define LocalLibraries		-lpt
# define PosixLibraries		-lcposix
# define SocketLibraries        -linet
#endif

#ifdef ESIX
#define OSVendor		"ESIX System Inc."
#define OSDefines		-DESIX
#define LocalLibraries		-lpt
#define SocketLibraries		-lnet -lnsl_s
#define PosixLibraries		/**/
#endif

#ifdef SCO
#define OSDefines		-DSCO -DBROKEN_FTOL -DNO_PROTOTYPE -D_SVID
#define OSVendor		"Santa Cruz Operation Ltd."
#define LocalLibraries		-lpt
#define SocketLibraries		-lsocket 
#define PosixLibraries		/**/
#endif

#ifdef ATT
#define OSDefines		-DATT
#define OSVendor		"AT&T"
#define LocalLibraries		-lpt
#define SocketLibraries		-lnet -lnsl_s    /* just a guess */
#define PosixLibraries		/**/
#endif

#define OSName			Unix System V/386 Release 3.2
#define OSMajorVersion		3
#define OSMinorVersion		2
#define OSRelease		-DSYSV -DSYSV386

#if HasGcc
# define CcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return -fwritable-strings
# define LibraryCcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return
# define ShlibDefines -D__GNUC__ -DGNULIB=/usr/local/lib/gcc-gnulib
#else
# define ShlibDefines /**/
#endif

#if HasSockets
/* # define ConnectionFlags -DLOCALCONN -DTCPCONN */
# define ConnectionFlags -DTCPCONN
# define ExtraLibraries SocketLibraries LocalLibraries -lc_s PosixLibraries
#else
# define ConnectionFlags -DLOCALCONN
# define ExtraLibraries $(LIBDIR)/etc/inetemul.o LocalLibraries -lc_s PosixLibraries
#endif

/* #include <sv3Lib.rules> */  /* not working yet */

/*
 * Man pages need to be formatted when installed, so override the default
 * imake rules.
 */
#define InstallManPageLong(file,destdir,dest)                           @@\
install.man:: file.man                                                  @@\
	$(RM) destdir/dest.ManSuffix					@@\
	cat file.man | neqn | nroff -man >/tmp/file.man  		@@\
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.ManSuffix @@\
	$(RM) /tmp/file.man

#define InstallMultipleMan(list,dest)                                   @@\
install.man:: list                                                      @@\
	@case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
	for i in list; do \                                             @@\
		(set -x; \						@@\
		$(RM) dest/$$i; \					@@\
		cat $$i | neqn | nroff -man >/tmp/$$i; \  		@@\
		$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \	@@\
		$(RM) /tmp/$$i); \					@@\
	done

/* If you have trouble with make bombing out in Xlib, try uncommenting this. */
/* You will not get dependencies as a result, but better than nothing. */
/* #define DependTarget3(srcs1,srcs2,srcs3) */

#endif /* i386SVR3Architecture */


/*
 * V/386 Release 4.0
 */
#if defined(i386SVR4Architecture)

#define SystemV4		YES

/* this is now just for Dell's one */

#ifdef DELL
#define OSDefines		-DDELL
#define OSVendor		"DELL Computer Corp."
#endif

#define OSName			Unix System V/386 Release 4.0
#define OSMajorVersion		4
#define OSMinorVersion		0
#define OSRelease		-DSVR4 -DSYSV386

#if HasGcc
# define CcCmd 		gcc -ansi -fstrength-reduce -fpcc-struct-return -Di386
# if HasSharedLibraries
#  define LibraryCcCmd	cc -Xc -Di386 -Dasm=__asm
# endif
#else
# define CcCmd		cc -Xc -Di386 -Dasm=__asm
#endif

#include <sv4Lib.rules>

#define ManSourcePath ManDirectoryRoot/cat

/*
 * Man pages need to be formatted when installed, so override the default
 * imake rules.
 */
#define InstallManPageLong(file,destdir,dest)                           @@\
install.man:: file.man                                                  @@\
	$(RM) destdir/dest.ManSuffix.Z					@@\
	cat file.man | neqn | nroff -man >/tmp/file.man  		@@\
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.ManSuffix @@\
	$(COMPRESS) destdir/dest.ManSuffix				@@\
	$(RM) /tmp/file.man

#define InstallMultipleMan(list,dest)                                   @@\
install.man:: list                                                      @@\
	@case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
	for i in list; do \                                             @@\
		(set -x; \						@@\
		$(RM) dest/$$i.Z; \					@@\
		cat $$i | neqn | nroff -man >/tmp/$$i; \  		@@\
		$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \	@@\
		$(COMPRESS) dest/$$i; \					@@\
		$(RM) /tmp/$$i); \					@@\
	done

/* If you have trouble with make bombing out in Xlib, try uncommenting this. */
/* You will not get dependencies as a result, but better than nothing. */
/* #define DependTarget3(srcs1,srcs2,srcs3) */

#endif /* i386SVR4Architecture */


XCOMM operating system:  OSName OSVendor