Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* gcc 2.7.2.2 on DU 4.0
@ 1997-02-26  5:00 Alfonso E. Urdaneta
  1997-02-26  5:00 ` Aleksandar Milivojevic
  0 siblings, 1 reply; 2+ messages in thread
From: Alfonso E. Urdaneta @ 1997-02-26  5:00 UTC (permalink / raw)



Hi,

Am in the process of installing gcc-2.7.2.2 on 4.0.  While making the
stage 2 compiler

    make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2"
     
I get the following error.  It goes for a while and then gets to the
point where it tries to compile errfn.c.  I then get the following
output.

stage1/xgcc -Bstage1/ -c  -DIN_GCC   -g -O2     -I. -I.. -I. -I./..
-I./../confi
g 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.
*** Exit 1
Stop.


Has anyone seen this before ?

Thanks,

Alfonso.

-- 
Alfonso E. Urdaneta                                  VOX: 407.729.3840
Harris Corp/Transcomm Division                       FAX: 407.729.2003
PO Box 5100, MS 6B.3827            mailto:aurdanet@ursa.ess.harris.com
Melbourne, FL 32902.5100           http://www.transcomm.ess.harris.com

The Harris Corporation agrees with everything I say.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc 2.7.2.2 on DU 4.0
  1997-02-26  5:00 gcc 2.7.2.2 on DU 4.0 Alfonso E. Urdaneta
@ 1997-02-26  5:00 ` Aleksandar Milivojevic
  0 siblings, 0 replies; 2+ messages in thread
From: Aleksandar Milivojevic @ 1997-02-26  5:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]


Alfonso E. Urdaneta (aurdanet@ursa.ess.harris.com) wrote:
> 
> Am in the process of installing gcc-2.7.2.2 on 4.0.  While making the
> stage 2 compiler
[snip]

I think that fix for this was posted here (or was it gnu.gcc.bug?)
some time ago.  Anyway, you need to edit file cp/errfn.c and replace
line 198:

extern errorfn sprintf;

with:

extern int sprintf __((char *, const char *, ...));

I have no idea why gnu people redeclared sprintf in cp/errfn.c, but it
seems that everything works ok if their declaration is replaced with
declaration of sprintf from /usr/include/stdio.h.

-- 
Aleksandar Milivojevi�                        http://jagor.srce.hr/~alex/
                           e-mail: alex@srce.hr
================================ooooO=Ooooo==============================

  Real Users never know what they want, but they always know when your
                       program doesn't deliver it.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-02-26  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-26  5:00 gcc 2.7.2.2 on DU 4.0 Alfonso E. Urdaneta
1997-02-26  5:00 ` Aleksandar Milivojevic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox