* gcc 2.7.2 and DU 4.0
@ 1996-07-17 4:00 Richard Eckman
1996-07-18 4:00 ` Rob Hooft
1996-07-26 4:00 ` James Hicks
0 siblings, 2 replies; 3+ messages in thread
From: Richard Eckman @ 1996-07-17 4:00 UTC (permalink / raw)
I just upgraded to Digital UNIX v4.0 and tried to build the latest
version of gcc (v2.7.2). I was able to build a stage 1 compiler with
no difficulty, but trying to build stage 2 yielded the following error:
stage1/xgcc -Bstage1/ -c -DIN_GCC -g -O2 -I. -I.. -I. -I./.. -I./../config errfn.c
errfn.c: In function `cp_sprintf':
errfn.c:198: conflicting types for `sprintf'
include/stdio.h:182: previous declaration of `sprintf'
*** Exit 1
Stop.
Has anyone encountered this problem? I haven't had any problems previously
when building new versions of gcc on the Alpha.
Thanks in advance for any assistance.
Richard Eckman
NASA Langley Research Center
Hampton, VA
r.s.eckman@larc.nasa.gov
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gcc 2.7.2 and DU 4.0
1996-07-17 4:00 gcc 2.7.2 and DU 4.0 Richard Eckman
@ 1996-07-18 4:00 ` Rob Hooft
1996-07-26 4:00 ` James Hicks
1 sibling, 0 replies; 3+ messages in thread
From: Rob Hooft @ 1996-07-18 4:00 UTC (permalink / raw)
eckman@eos1.larc.nasa.gov (Richard Eckman) writes:
> stage1/xgcc -Bstage1/ -c -DIN_GCC -g -O2 -I. -I.. -I. -I./.. -I./../config errfn.c
> errfn.c: In function `cp_sprintf':
> errfn.c:198: conflicting types for `sprintf'
> include/stdio.h:182: previous declaration of `sprintf'
> *** Exit 1
> Stop.
>
> Has anyone encountered this problem?
Yes, and it has been reported to the "gcc development team". I have
changed the offending file errfn.c, but I haven't tested the resulting
C++ compiler yet, so I can't say whether it fixes the problem: The
compilation will continue if you change the "typedef void errorfn"
near line 40 by "typedef int errorfn".
Rob Hooft.
--
=== Rob.Hooft@EMBL-Heidelberg.DE http://www.Sander.EMBL-Heidelberg.DE/rob/ ==
==== In need of protein modeling? http://www.Sander.EMBL-Heidelberg.DE/whatif/
Validation of protein structures? http://biotech.EMBL-Heidelberg.DE:8400/ ====
================ Long Live Linux! Free Software Rules The World! =============
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gcc 2.7.2 and DU 4.0
1996-07-17 4:00 gcc 2.7.2 and DU 4.0 Richard Eckman
1996-07-18 4:00 ` Rob Hooft
@ 1996-07-26 4:00 ` James Hicks
1 sibling, 0 replies; 3+ messages in thread
From: James Hicks @ 1996-07-26 4:00 UTC (permalink / raw)
I encountered this problem. In gcc-2.7.2/cp/errfn.c, I changed:
void
cp_sprintf (format, arglist)
char *format;
arglist_dcl
{
extern errorfn sprintf;
cp_thing (sprintf, 0, format, arglist);
}
to
void
cp_sprintf (format, arglist)
char *format;
arglist_dcl
{
cp_thing ((errorfn*)sprintf, 0, format, arglist);
}
There is one other change I made for Digital Unix 4.0, because the
assembler no longer accepts the five number version directive. In
gcc-2.7.2/config/alpha/alpha.c, I modified alpha_write_verstamp
void
alpha_write_verstamp (file)
FILE *file;
{
#ifdef MS_STAMP
char *p;
fprintf (file, "\t.verstamp %d %d ", MS_STAMP, LS_STAMP);
#if 0 /* not on Digital Unix 4.0 - Jamey Hicks 7/3/96 */
for (p = version_string; *p != ' ' && *p != 0; p++)
fprintf (file, "%c", *p == '.' ? ' ' : *p);
#endif
fprintf (file, "\n");
#endif
}
-Jamey Hicks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-07-26 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-17 4:00 gcc 2.7.2 and DU 4.0 Richard Eckman
1996-07-18 4:00 ` Rob Hooft
1996-07-26 4:00 ` James Hicks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox