From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,78acbf16042c6c3e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-02-02 20:33:04 PST Path: gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!msuinfo!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!uqcspe.cs.uq.oz.au!cs.uq.oz.au!efung From: efung@cs.uq.oz.au (Eddie Fung) Newsgroups: comp.unix.osf.misc Subject: Re: TeX, xdvi, etc Date: 3 Feb 1994 04:33:04 GMT Organization: Computer Science Dept, University of Queensland Message-ID: <2ipuq1$a5b@uqcspe.cs.uq.oz.au> References: <1994Jan31.031559.17712@news.qut.edu.au> Reply-To: efung@cs.uq.oz.au NNTP-Posting-Host: lacewing.cs.uq.oz.au stevei@anduril.fsc.qut.edu.au (Steve Imber) writes: >I saw a post asking whether TeX, xdvi, etc would make under OSF/1. Yes, xdvi and dvips is building fine. TeX needs some modifications. What I did was: TeX-3.14: 1. Edit site.h and change typedef long integer to typedef int integer 2. I also undefined BSD. (If you need Mf as well, do the following changes.) 3. Edit mf/MFwindow/x11.c Add the following definitions at line 39: typedef struct { unsigned int res_width; unsigned int res_height; Pixel res_fg; Pixel res_bg; } mf_res_struct, *mf_res_struct_ptr; static mf_res_struct mt_res; In the mf_resources structure, change the following: (Cardinal)mf_width to XtOffset(mf_res_struct_ptr,res_width) (Cardinal)mf_height to XtOffset(mf_res_struct_ptr,res_height) (Cardinal)mf_fg to XtOffset(mf_res_struct_ptr,res_fg) (Cardinal)mf_bg to XtOffset(mf_res_struct_ptr,res_bg) Now search for "XtGetApplicationResources" and change the second parameter to "(XtPointer)&mf_res". Immediately following "XtGetApplicationResources", add the following lines: mf_width=mf_res.res_width; mf_height=mf_res.res_height; mf_fg=mf_res.res_fg; mf_bg=mf_res.res_bg; 4. Edit common/texmf.c. At line 172, change "(long)" to "(time_t)". 5. Follow the standard procedure to build TeX. Regards Eddie -- _____________________________________________________________ | Eddie Fung | Department of Computer Science | | efung@cs.uq.oz.au | University of Queensland | | (617) 365 2425 | Brisbane Qld 4072 Australia |