From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,82263d691e500fb5 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-20 03:06:47 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!strath-cs!strath-cs!not-for-mail From: pgh@cs.strath.ac.uk (Pete Hendry) Newsgroups: comp.unix.osf.osf1 Subject: Re: trying to build tcsh 6.04 for DEC OSF/1 V2.0 Date: 20 Jun 1994 11:06:40 +0100 Organization: Comp. Sci. Dept., Strathclyde Univ., Glasgow, Scotland. Message-ID: <2u3png$1f8@maxwell-07.cs.strath.ac.uk> References: NNTP-Posting-Host: maxwell-07.cs.strath.ac.uk In article waterstraat@geology.ucdavis.edu writes: >Greetings, > >I'm trying to build tcsh (v.6.04) under DEC OSF/1 V2.0 and am encountering some >difficulties. >get a version of tcsh running on the ALpha. The second is to learn what I need >to know to effectively port applications from SunOS and others to Alpha/OSF. > Glad to know there are others in the same boat :-) >I think I've followed the instructions correctly. I'm not sure what to do about >DEC C's "missing" const. Here's the problem so far: > >% xmkmf >mv Makefile Makefile.bak >imake -DUseInstalled -I/usr/lib/X11/config > This is right. The problem seems to be that OSF/1 seems to have a mish-mash of functions defined for various OS's (BSD, SYSV, etc) and does not appear uniform for one particular OS. tcsh isn't too bad. I'll make a patch (forgot to keep the original files :-( ) sometime. Here's what worked for me: in IMakefile: # ifdef AlphaArchitecture # define ConfigH decosf1 # if !HasGCC # if (OSMajorVersion == 2) /***** new *****/ # define MyCflags -std1 -Olimit 2000 -Dosf1v2 /***** new *****/ # else /***** new *****/ # define MyCflags -std1 -Olimit 2000 /***** new *****/ # endif /***** new *****/ # endif # endif Then run xmkmf again. In 'tc.os.h': line 586: (around setpwent and endpwent) # if (!defined(fps500) && !defined(apollo) && !defined(__lucid)) && \ !defined(osf1v2) ^^^^^^^^^^^^^^^^ line 625: (around memmove and bcopy) #if (defined(BSD) && !defined(__386BSD__) && !defined(osf1v2)) || \ defined(SUNOS4) ^ ^^^^^^^^^^^^^^^^^^^^ line 645: (__osf__ && __alpha block) extern int gethostname __P((char *, int)); #ifdef osf1v2 /***** new *****/ extern char *sbrk __P((ssize_t)); /***** new *****/ #else /***** new *****/ extern void *sbrk __P((ssize_t)); #endif /* osf1v2 */ /***** new *****/ extern int ioctl __P((int, unsigned long, char *)); extern pid_t vfork __P((void)); extern int killpg __P((pid_t, int)); extern char *getwd __P((char *)); #endif /* __osf__ && __alpha */ That worked for me. In general, adding checks for OSF1 and correcting the function prototypes seems to account for a lot of problems. Pete.