Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ceharris@vt.edu (Carl Harris)
Subject: Re: Has anyone installed gcc-2.5.8 on an Alpha OSF1?
Date: 26 Jun 1994 14:38:26 GMT	[thread overview]
Message-ID: <2uk3t2$l09@solaris.cc.vt.edu> (raw)
In-Reply-To: 2uep5b$1827@source.asset.com

B.G. Mahesh (mahesh@source.asset.com) wrote:
: I get a zillion warnings when I compile. 

Not unusual, and not a problem.

: I got thru' stage1 but stage2 fails..
: stage2/xgcc -Bstage2/ -c  -DIN_GCC   -g -O     -I. -I. -I./config 
:                                                 ./fix-header.c
: In file included from ./hconfig.h:63,
:                  from ./fix-header.c:81:
: /usr/include/string.h:235: warning: conflicting types for 
:                                    built-in function `ffs'
: ./fix-header.c: In function `strdup':
: ./fix-header.c:436: argument `str' doesn't match prototype
: /usr/include/string.h:239: prototype declaration
: make: *** [fix-header.o] Error 1

I compiled it this morning.  There were two things I had to do in order to
compile it successfully under OSF/1 v2.0:

1.	Edit the file config/xm-alpha.h (it is distributed without write
	permission, so chmod it first).  Down near the bottom of the file
	is a line that looks like:
 	  extern void *malloc (), *realloc (), *sbrk(), *calloc (), *alloca ();

	Delete the declaration for *sbrk() in that list, and save the file.


2.	Run configure, build the stage1 compiler, and 'make stage1'.


3.	Edit the file fix-header.c.  At the function definition for strdup,
	you'll see:
	   strdup (str)
             char *str;
           {
	     (code in here)
           }

 	Add the 'const' modifier to the type declaration for str, like this
           strdup (str)
           const char *str;
           {
             (code in here)                
           }

4.	Now build the stage 2 compiler (step 12 in the INSTALL document), 
	and the rest will go smoothly.

--
Carl Harris		"If you give an infinite number of monkeys desktop
EXECUTIVE Scapegoat      publishing software, they will eventually produce an
ceharris@vt.edu          issue of _Wired_."  -Marc VanHeyningen
http://csugrad.cs.vt.edu/aboutus/ceharris.html


      parent reply	other threads:[~1994-06-26 14:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-24 14:04 Has anyone installed gcc-2.5.8 on an Alpha OSF1? B.G. Mahesh
1994-06-25 15:23 ` Mitch Gart
1994-06-25 23:29 ` Michael Meissner
1994-06-26 14:38 ` Carl Harris [this message]
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