barad@rex.cs.tulane.edu (Herb Barad) (09/05/89)
Has anyone got X-windows running on a Pyramid? The Xaw library doesn't build correctly and (of course) the server doesn't. I don't need the server since we don't have a local bitmapped graphics terminal on the Pyramid, but I would like to get the rest of X-windows running so that client programs can run on the Pyramid. Any suggestions? Please respond by mail as I don't normally read this group. Thanks. -- Herb Barad Electrical Engineering Dept., Tulane Univ. INTERNET: barad@ee.tulane.edu USENET: barad@bourbon.uucp
bob@tyranosaur.cis.ohio-state.edu (Bob Sutterfield) (09/05/89)
In article <1080@rex.cs.tulane.edu> barad@rex.cs.tulane.edu (Herb Barad) writes: Has anyone got X-windows running on a Pyramid? Here's the article that got the job done for me: From: mark@comp.vuw.ac.nz (Mark Davies) Newsgroups: comp.sys.pyramid Subject: Re: X windows Message-ID: <14434@comp.vuw.ac.nz> Date: 8 Dec 88 02:47:07 GMT Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand. In article <1866@questar.QUESTAR.MN.ORG> scott@questar.QUESTAR.MN.ORG (Scott Anderson) writes: >Are any of you using X windows 11r3 on your pyramids? If so, did you >port it yourself? Yes and Yes (Not that there was much to the "port"). This is what we did (but not in this order). 1) Apply the following patch to Login.h in clients/xdm. The Pyramid compiler objected to the lack of a semi-colon. Don't think this was fixed in fix1 or fix2 from MIT. *** Login.h~ Fri Nov 18 11:37:30 1988 --- Login.h Sat Nov 19 19:55:05 1988 *************** *** 73,79 **** #define NAME_LEN 32 typedef struct _LoginData { ! char name[NAME_LEN], passwd[NAME_LEN] } LoginData; # define NOTIFY_OK 0 --- 73,79 ---- #define NAME_LEN 32 typedef struct _LoginData { ! char name[NAME_LEN], passwd[NAME_LEN]; } LoginData; # define NOTIFY_OK 0 2) Add the following to Imake.tmpl #ifdef pyr #define MacroIncludeFile "Pyr.macros" #define MacroFile Pyr.macros #undef pyr #define PyramidArchitecture #endif /* pyr */ 3) Use the following as your Pyr.macros file (Yes it does look like a cross between the Sun and Mips files). -------- start of Pyr.macros ----------- /* * SET VERSION NUMBERS BEFORE MAKING MAKEFILES * * If you change either of the following numbers, you will need to do a * full build (make World) at the top of the sources.... */ #define PyrOSPlatform YES /* set to NO if not running SunOS */ #define OSName OSx 4.0 #define OSMajorVersion 4 #define OSMinorVersion 0 /* **************************************************************************** */ /**/# platform: $XConsortium: Pyr.macros,v 1.52 88/10/23 11:00:55 jim Exp $ /**/# operating system: OSName BOOTSTRAPCFLAGS = AS = as CC = cc COMPRESS = /usr/new/compress CPP = /lib/cpp LD = ld LINT = lint INSTALL = install TAGS = ctags RM = rm -f MV = mv LN = ln -s RANLIB = ranlib RANLIBINSTFLAGS = AR = ar clq LS = ls LINTOPTS = -axz LINTLIBFLAG = -C MAKE = make STD_CPP_DEFINES = STD_DEFINES = /* define this as you like for normal library compilation */ #define LibraryDefines /* define this as you like for server font support */ /*#define FontDefines -DFONT_SNF -DFONT_BDF -DCOMPRESSED_FONTS*/ /* -DTCPCONN allows TCP connections */ /* -DUNIXCONN allows Unix domain connections */ /* -DDNETCONN allows DECnet connections */ #define ConnectionFlags -DTCPCONN /* * override any parameters from site.def */ #define UnalignedReferencesAllowed NO /* if arbitrary deref is okay */ #define BuildServer NO #define ExpandManNames YES /* expand Xlib man page filenames */ #define UNCOMPRESSPATH /usr/new/uncompress -------- end of Pyr.macros ----------- Now follow the X11R3 installation guide. I think thats all we did here. cheers mark -- Domainised: mark@comp.vuw.ac.nz Bang form: ...!uunet!vuwcomp!mark
mechjgh@tness7.UUCP (Greg Hackney ) (09/08/89)
In article <BOB.89Sep5003649@tyranosaur.cis.ohio-state.edu> Bob Sutterfield <bob@cis.ohio-state.edu> writes: >> Has anyone got X-windows running on a Pyramid? > >Here's the article that got the job done for me: >From: mark@comp.vuw.ac.nz (Mark Davies) >Newsgroups: comp.sys.pyramid >Subject: Re: X windows >Message-ID: <14434@comp.vuw.ac.nz> If you don't mind, please try something for me on your Pyramid system: Pull up a couple of windows, then in the att universe, type the command: /usr/lib/fwtmp < /etc/utmp | grep ttyp Look at the output, and see if the first field (ut->ut_user) is someone else other than yourself for the ttyp* entries for the windows you have up.
mark@comp.vuw.ac.nz (Mark Davies) (09/08/89)
In article <BOB.89Sep5003649@tyranosaur.cis.ohio-state.edu> Bob Sutterfield <bob@cis.ohio-state.edu> writes: >In article <1080@rex.cs.tulane.edu> barad@rex.cs.tulane.edu (Herb Barad) writes: > Has anyone got X-windows running on a Pyramid? >Here's the article that got the job done for me: >From: mark@comp.vuw.ac.nz (Mark Davies) >Subject: Re: X windows >Date: 8 Dec 88 02:47:07 GMT >In article <1866@questar.QUESTAR.MN.ORG> scott@questar.QUESTAR.MN.ORG (Scott Anderson) writes: >>Are any of you using X windows 11r3 on your pyramids? If so, did you >>port it yourself? >Yes and Yes (Not that there was much to the "port"). >This is what we did (but not in this order). > [...] >Now follow the X11R3 installation guide. >I think thats all we did here. When I originally posted this I forgot one other change that was necessary. The OSx 4.0 C compiler does not like Display used as the name of a element of a particular structure (don't know about newer pyramid compilers). The fix for this that we are currently using here follows: *** lib/Xaw/TextSrcP.h~ Wed Oct 19 05:13:18 1988 --- lib/Xaw/TextSrcP.h Mon Jun 26 11:50:56 1989 *************** *** 52,61 **** --- 52,69 ---- caddr_t data; }; + #ifdef pyr + typedef int (*INTFUNCPTR)(); + #endif + typedef struct _XtTextSink { XFontStruct *font; int foreground; + #ifndef pyr int (*Display)(); + #else + INTFUNCPTR Display; + #endif int (*InsertCursor)(); int (*ClearToBackground)(); int (*FindPosition)(); cheers mark -- Domainised: mark@comp.vuw.ac.nz Bang form: ...!uunet!vuwcomp!mark