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<peter_at_wiscpa.weizmann.ac.il>, Paul A Sand <pas_at_unh.edu>,
Gernot Salzer <salzer_at_logic.tuwien.ac.at>
NOTE: the versions for gcc differ for each reply.
Peter Stern<peter_at_wiscpa.weizmann.ac.il> wrote:
<gcc version 2.7.2.1>
> 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 <ctype.h> */
Paul A Sand <pas_at_unh.edu> wrote:
<gcc version 2.7.2>
> This appeared on the list a few months back, and I saved it. Hope
> it helps.
>
>
> >From alpha-osf-managers-relay_at_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 <pas_at_kepler.unh.edu>; 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 <pas_at_unh.edu>); Thu, 8 Aug 1996 18:43:41 -0400
> Received: (from daemon_at_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_at_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
<alpha-osf-managers_at_sws1.ctd.ornl.gov>; 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
<alpha-osf-managers_at_ornl.gov>; 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
<alpha-osf-managers_at_ornl.gov>; 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 <jshen_at_kidsat.ucsd.edu>
> Reply-To: Jay Shen <jshen_at_kidsat.ucsd.edu>
> To: Alpha OSF/1 Managers <alpha-osf-managers_at_ornl.gov>
> Subject: SUMMARY: building gcc and libg++ on DU 4.0
> Message-Id: <Pine.OSF.3.95.960807112459.3880A-100000_at_emperor.kidsat.ucsd.edu>
> Mime-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Status: RO
>
> Thanks to:
> mooney_at_dogbert.cc.ndsu.NoDak.edu
> sysadmin_at_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 <stype.h> */
> 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_at_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_at_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 <salzer_at_logic.tuwien.ac.at> wrote:
<gcc 2.7.2.1>
>
> 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_at_sws1.ctd.ornl.gov Fri Aug 9 01:03:58 1996
> Sender: alpha-osf-managers-relay_at_sws1.ctd.ornl.gov
> Followup-To: poster
> Precedence: bulk
> Date: Thu, 8 Aug 1996 15:27:48 -0700 (PDT)
> From: Jay Shen <jshen_at_kidsat.ucsd.edu>
> Reply-To: Jay Shen <jshen_at_kidsat.ucsd.edu>
> To: Alpha OSF/1 Managers <alpha-osf-managers_at_ornl.gov>
> Subject: SUMMARY: building gcc and libg++ on DU 4.0
> Message-Id: <Pine.OSF.3.95.960807112459.3880A-100000_at_emperor.kidsat.ucsd.edu>
> Mime-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
> Thanks to:
> mooney_at_dogbert.cc.ndsu.NoDak.edu
> sysadmin_at_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 <stype.h> */
> 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_at_homer.bus.miami.edu
>
> This should allow both gcc and libg++ to be compiled.
>
> Jay
>
>
>
>
> Forwarded message:
> >From alpha-osf-managers-relay_at_sws1.ctd.ornl.gov Mon Sep 23 04:04:11 1996
> Sender: alpha-osf-managers-relay_at_sws1.ctd.ornl.gov
> Followup-To: poster
> Precedence: bulk
> From: Eli Burke <eburke_at_cslab.vt.edu>
> Message-Id: <9609230133.AA04957_at_alsatian.cslab.vt.edu>
> Subject: SUMMARY: building gcc and libg++ on DU 4.0
> To: alpha-osf-managers_at_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
> <ctype.h> and not <stype.h>
>
> > 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 <stype.h> */
> > 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_at_homer.bus.miami.edu
> >
> > This should allow both gcc and libg++ to be compiled.
>
> --
> Eli Burke
> eburke_at_vt.edu
> http://csugrad.cs.vt.edu/~eburke/
>
Sincere thanks for all of you who replied.
Deming Zhuang
Received on Wed Jan 15 1997 - 23:28:44 NZDT