Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* trying to build tcsh 6.04 for DEC OSF/1 V2.0
@ 1994-06-17 21:19 Paul Waterstraat
  1994-06-20 10:06 ` Pete Hendry
  1994-06-20 11:19 ` The Fantom Ferret
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Waterstraat @ 1994-06-17 21:19 UTC (permalink / raw)


Greetings,

I'm trying to build tcsh (v.6.04) under DEC OSF/1 V2.0 and am encountering some
difficulties. (My background is heavy in OpenVMS and FORTRAN and a little Sun
4.1.x. This is just the first of many things that I will be attemtping to port
from SunOS to Alpha/OSF. So I'm pretty low on the Unix/OSF and C learning
curves. So your patience is appreciated.)  I have two goals here. one is to just
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.

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

% make
cc -O  -I.    -DDEC -DR5_XLIB -DSMT  -DFUNCPROTO=3     -std1 -Olimit 2000 -c sh.c
/usr/lib/cmplrs/cc/cfe: Error: ./tc.os.h, line 626: redeclaration of 'bcopy'; pr
evious declaration at line 219 in file '/usr/include/string.h' (3.1.2.3)
 extern void bcopy      (const void *, void *, size_t) ;
 ------------^
/usr/lib/cmplrs/cc/cfe: Error: ./tc.os.h, line 626: Incompatible type for the fu
nction parameter (3.5.4.3(15))
 extern void bcopy      (const void *, void *, size_t) ;
 -----------------      -^
/usr/lib/cmplrs/cc/cfe: Error: ./tc.os.h, line 647: redeclaration of 'sbrk'; pre
vious declaration at line 505 in file '/usr/include/unistd.h' (3.1.2.3)
 extern void *sbrk (ssize_t) ;
 -------------^
/usr/lib/cmplrs/cc/cfe: Error: ./tc.os.h, line 647: Incompatible function return
 type for this function (3.5.4.3(15))
 extern void *sbrk (ssize_t) ;
 ------------------^
*** Exit 1
Stop.



-- 
Paul Waterstraat            Internet: waterstraat@geology.ucdavis.edu
Department of Geology       BITNET:   <no longer available>
University of California    Voice:    (916) 752-7421
Davis, CA  95616-8605 USA   FAX:      (916) 752-0951
--
 "Phenomenal Cosmic Power, little bitty living space" -- The Genie, Aladdin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trying to build tcsh 6.04 for DEC OSF/1 V2.0
  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
  1994-06-20 11:19 ` The Fantom Ferret
  1 sibling, 0 replies; 4+ messages in thread
From: Pete Hendry @ 1994-06-20 10:06 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trying to build tcsh 6.04 for DEC OSF/1 V2.0
  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
@ 1994-06-20 11:19 ` The Fantom Ferret
  1994-07-18 16:42   ` Douglas Jones
  1 sibling, 1 reply; 4+ messages in thread
From: The Fantom Ferret @ 1994-06-20 11:19 UTC (permalink / raw)


Paul Waterstraat wrote:

|I'm trying to build tcsh (v.6.04) under DEC OSF/1 V2.0 and am encountering
|some difficulties.

I got it to build OK. I skipped the xmkmf bit and worked from the
Makefile.std. After fixing the bits in tc.os.h and putting "#undef VFORK" in
config_f.h everything seemed to go OK. This was the first thing I attempted
to port to OSF after coming from an Ultrix environment and it's the only
thing I have had any real trouble with.

--
Graeme Wightman (GW211) - System Support     Email: ferret@fuzzy.seqeb.gov.au
South East Queensland Electricity Board	     Fax:   +61 7 2217556
GPO Box 1461, Brisbane 4001 AUSTRALIA	     Phone: +61 7 2234150

             <<< GOD is REAL .... unless declared INTEGER >>>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: trying to build tcsh 6.04 for DEC OSF/1 V2.0
  1994-06-20 11:19 ` The Fantom Ferret
@ 1994-07-18 16:42   ` Douglas Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Douglas Jones @ 1994-07-18 16:42 UTC (permalink / raw)


In article <Crp0t6.LoC@un.seqeb.gov.au>,
The Fantom Ferret <ferret@fuzzy.seqeb.gov.au> wrote:
>Paul Waterstraat wrote:
>
>|I'm trying to build tcsh (v.6.04) under DEC OSF/1 V2.0 and am encountering
>|some difficulties.
>
....deleted.....
>
>--
>Graeme Wightman (GW211) - System Support     Email: ferret@fuzzy.seqeb.gov.au
>South East Queensland Electricity Board	     Fax:   +61 7 2217556
>GPO Box 1461, Brisbane 4001 AUSTRALIA	     Phone: +61 7 2234150
>
>             <<< GOD is REAL .... unless declared INTEGER >>>

6.05 is out now and I compiled it on our alpha 4610, DEC OSF 1.3A.

had NO problems in compiling it. It is now on the system a running.......

Cheers,
Douglas


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-07-18 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1994-06-20 11:19 ` The Fantom Ferret
1994-07-18 16:42   ` Douglas Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox