From: pgh@cs.strath.ac.uk (Pete Hendry)
Subject: Re: trying to build tcsh 6.04 for DEC OSF/1 V2.0
Date: 20 Jun 1994 11:06:40 +0100 [thread overview]
Message-ID: <2u3png$1f8@maxwell-07.cs.strath.ac.uk> (raw)
In-Reply-To: CrK8L3.5FA@ucdavis.edu
In article <CrK8L3.5FA@ucdavis.edu> 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.
next prev parent reply other threads:[~1994-06-20 10:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-17 21:19 trying to build tcsh 6.04 for DEC OSF/1 V2.0 Paul Waterstraat
1994-06-20 10:06 ` Pete Hendry [this message]
1994-06-20 11:19 ` The Fantom Ferret
1994-07-18 16:42 ` Douglas Jones
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox