From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076450423192.tru64-unix-managers.marc@archive.invalid> From: system PRIVILEGED account Date: Wed, 15 Jan 1997 19:53:44 +0000 To: tru64-unix-managers Subject: SUMMARY: gcc, g++, g77, and libg++ installation problems X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076450423192 Hello, managers: My previous question was: > > We have just upgraded our DEC2000/300 to DU4.0B, and are trying > > to compile gcc-2.7.2.1.f.1, g++, g77 and libg++. > > > > At the 'make bootstrap' stage of the compilation, the following error > > message appears: > > > > errfn.c: In function `cp_sprintf': > > errfn.c:198: conflicting types for `sprintf' > > include/stdio.h:182: previous declaration of `sprintf' > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop. Apparently, many people have had this problem. Here are some replies. Thanks to:Peter Stern, Paul A Sand , Gernot Salzer NOTE: the versions for gcc differ for each reply. Peter Stern wrote: > This is in the archives (from Eli Burke via Jay Shen). > Comment out line 198 in gcc-2.7.2.1/cp.errfn.c > /* extern errorfn sprintf; */ > > You will also have a problem with libg++. > In $LIBG++_SOURCE/libg++/src/Regex.cc, comment out the line: > /* include */ Paul A Sand wrote: > This appeared on the list a few months back, and I saved it. Hope > it helps. > > > >From alpha-osf-managers-relay@sws1.ctd.ornl.gov Thu Aug 8 18:43:43 1996 > Received: from unh.edu (unh.edu [132.177.132.50]) by wilmot.unh.edu (8.7.5/8.7.3) with SMTP id SAA25591 for ; Thu, 8 Aug 1996 18:43:42 -0400 (EDT) > Received: from sws1.ctd.ornl.gov by unh.edu with SMTP id AA17410 > (5.67b+/IDA-1.5 for ); Thu, 8 Aug 1996 18:43:41 -0400 > Received: (from daemon@localhost) by sws1.CTD.ORNL.GOV (8.7.5/8.7.3) id SAA08284 for aomam; Thu, 8 Aug 1996 18:37:19 -0400 > Sender: alpha-osf-managers-relay@sws1.ctd.ornl.gov > Followup-To: poster > Precedence: bulk > Received: from oaunx1.ctd.ornl.GOV (oaunx1.ctd.ornl.gov [128.219.128.17]) by sws1.CTD.ORNL.GOV (8.7.5/8.7.3) with ESMTP id SAA08156 for ; Thu, 8 Aug 1996 18:27:55 -0400 > Received: from UCSD.EDU (mailbox1.ucsd.edu [132.239.1.53]) by oaunx1.ctd.ornl.GOV (8.7.4/8.7.3) with ESMTP id SAA11479 for ; Thu, 8 Aug 1996 18:27:54 -0400 (EDT) > Received: from emperor.kidsat.ucsd.edu (emperor.kidsat.ucsd.edu [199.105.12.6]) by UCSD.EDU (8.7.5/8.6.9) with SMTP id PAA06645 for ; Thu, 8 Aug 1996 15:27:53 -0700 (PDT) > Received: from localhost by emperor.kidsat.ucsd.edu (5.65v3.2/1.1.10.5/03Aug96-0811PM) > id AA25763; Thu, 8 Aug 1996 15:27:48 -0700 > Date: Thu, 8 Aug 1996 15:27:48 -0700 (PDT) > From: Jay Shen > Reply-To: Jay Shen > To: Alpha OSF/1 Managers > Subject: SUMMARY: building gcc and libg++ on DU 4.0 > Message-Id: > Mime-Version: 1.0 > Content-Type: TEXT/PLAIN; charset=US-ASCII > Status: RO > > Thanks to: > mooney@dogbert.cc.ndsu.NoDak.edu > sysadmin@homer.bus.miami.edu > > After upgrade to DU 4.0, I am a hard time rebuilding GNU C++ 2.7.2 and GNU > libg++ 2.7.2. Here is a summary of how to build it. Most of these are > actually summaried here to before. But they were either scattered across > different messages or under subject that was not very easily searched. > > To build gcc: > In file $GCC_SOURCE/config/alpha/alpha.c > Comment out the following lines in alpha_write_verstamp() > /* for (p = version_string; *p != ' ' && *p != 0; p++) > fprintf (file, "%c", *p == '.' ? ' ' : *p);*/ > In file $GCC_SOURCE/cp/errfn.c > Comment out the following line in cp_sprintf() > /* extern int sprintf; */ > > To build libg++: > In file $LIBG++_SOURCE/libg++/src/Regx.cc > Comment out the following line: > /* include */ > or replace the file $LIBG++_SOURCE/librx/rx.h with one on > ftp://ftp.bus.miami.edu/alpha-os/g++ > It is kindly provide by sysadmin@homer.bus.miami.edu > > This should allow both gcc and libg++ to be compiled. > > Jay > > > > -- > -- Paul A. Sand | I named the program "more". This was a daring > -- University of New Hampshire | move at the time, since it was such a long > -- pas@unh.edu | name for a UNIX command, and was also a real > -- http://pubpages.unh.edu/~pas | English word. (D Halbert, c.soc.folklore) Gernot Salzer wrote: > > Below I include some mails concerning c/c++ under DU4.0. > I also remember to have changed something (minor) additionally, before > I was able to compile gcc-2.7.2.1, g++ and libg++ without errors. > > Forwarded message: > >From alpha-osf-managers-relay@sws1.ctd.ornl.gov Fri Aug 9 01:03:58 1996 > Sender: alpha-osf-managers-relay@sws1.ctd.ornl.gov > Followup-To: poster > Precedence: bulk > Date: Thu, 8 Aug 1996 15:27:48 -0700 (PDT) > From: Jay Shen > Reply-To: Jay Shen > To: Alpha OSF/1 Managers > Subject: SUMMARY: building gcc and libg++ on DU 4.0 > Message-Id: > Mime-Version: 1.0 > Content-Type: TEXT/PLAIN; charset=US-ASCII > > Thanks to: > mooney@dogbert.cc.ndsu.NoDak.edu > sysadmin@homer.bus.miami.edu > > After upgrade to DU 4.0, I am a hard time rebuilding GNU C++ 2.7.2 and GNU > libg++ 2.7.2. Here is a summary of how to build it. Most of these are > actually summaried here to before. But they were either scattered across > different messages or under subject that was not very easily searched. > > To build gcc: > In file $GCC_SOURCE/config/alpha/alpha.c > Comment out the following lines in alpha_write_verstamp() > /* for (p = version_string; *p != ' ' && *p != 0; p++) > fprintf (file, "%c", *p == '.' ? ' ' : *p);*/ > In file $GCC_SOURCE/cp/errfn.c > Comment out the following line in cp_sprintf() > /* extern int sprintf; */ > > To build libg++: > In file $LIBG++_SOURCE/libg++/src/Regx.cc > Comment out the following line: > /* include */ > or replace the file $LIBG++_SOURCE/librx/rx.h with one on > ftp://ftp.bus.miami.edu/alpha-os/g++ > It is kindly provide by sysadmin@homer.bus.miami.edu > > This should allow both gcc and libg++ to be compiled. > > Jay > > > > > Forwarded message: > >From alpha-osf-managers-relay@sws1.ctd.ornl.gov Mon Sep 23 04:04:11 1996 > Sender: alpha-osf-managers-relay@sws1.ctd.ornl.gov > Followup-To: poster > Precedence: bulk > From: Eli Burke > Message-Id: <9609230133.AA04957@alsatian.cslab.vt.edu> > Subject: SUMMARY: building gcc and libg++ on DU 4.0 > To: alpha-osf-managers@ornl.gov > Date: Sun, 22 Sep 1996 21:33:01 -0400 (EDT) > X-Mailer: ELM [version 2.4 PL25] > Mime-Version: 1.0 > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: 7bit > > > Just a quick followup. gcc 2.7.2.1 now builds with only one problem > under DU 4.0 -- comment out line 198 in gcc-2.7.2.1/cp/errfn.c > /* extern errorfn sprintf; */ > > There are also a few problems in the below summary on libg++ > The ftp site listed no longer contains the fixed file, and the correct > file to tweak is "Regex.cc" not "Regx.cc" and the line to comment out is > and not > > > After upgrade to DU 4.0, I am a hard time rebuilding GNU C++ 2.7.2 and GNU > > libg++ 2.7.2. Here is a summary of how to build it. Most of these are > > actually summaried here to before. But they were either scattered across > > different messages or under subject that was not very easily searched. > > > > To build gcc: > > In file $GCC_SOURCE/config/alpha/alpha.c > > Comment out the following lines in alpha_write_verstamp() > > /* for (p = version_string; *p != ' ' && *p != 0; p++) > > fprintf (file, "%c", *p == '.' ? ' ' : *p);*/ > > In file $GCC_SOURCE/cp/errfn.c > > Comment out the following line in cp_sprintf() > > /* extern int sprintf; */ > > > > To build libg++: > > In file $LIBG++_SOURCE/libg++/src/Regx.cc > > Comment out the following line: > > /* include */ > > or replace the file $LIBG++_SOURCE/librx/rx.h with one on > > ftp://ftp.bus.miami.edu/alpha-os/g++ > > It is kindly provide by sysadmin@homer.bus.miami.edu > > > > This should allow both gcc and libg++ to be compiled. > > -- > Eli Burke > eburke@vt.edu > http://csugrad.cs.vt.edu/~eburke/ > Sincere thanks for all of you who replied. Deming Zhuang