From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,135bcf3a8dfac3df X-Google-Attributes: gid11318c,public X-Google-Thread: fee84,135bcf3a8dfac3df X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-26 07:38:40 PST Path: bga.com!news.sprintlink.net!hookup!news.kei.com!eff!news.duke.edu!solaris.cc.vt.edu!ceharris From: ceharris@vt.edu (Carl Harris) Newsgroups: gnu.gcc.help,comp.unix.osf.osf1 Subject: Re: Has anyone installed gcc-2.5.8 on an Alpha OSF1? Followup-To: gnu.gcc.help,comp.unix.osf.osf1 Date: 26 Jun 1994 14:38:26 GMT Organization: Virginia Tech Distribution: usa Message-ID: <2uk3t2$l09@solaris.cc.vt.edu> References: <2uep5b$1827@source.asset.com> Reply-To: ceharris@vt.edu NNTP-Posting-Host: mal9000.async.vt.edu NNTP-Posting-User: ceharris X-Newsreader: TIN [version 1.2 PL2] Xref: bga.com gnu.gcc.help:2271 comp.unix.osf.osf1:2218 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