public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Bug in egcs-1.0.3a/vsprintf.c
@ 1998-08-20  3:36 Daniel T. Schwager
  1998-08-30 18:17 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel T. Schwager @ 1998-08-20  3:36 UTC (permalink / raw)
  To: egcs-bugs

Hallo Cygnus-Team,

i try to install your egcs-gcc compiler as a cross-compiler (sh2, hitachi)
for our Linux-Box. I compiled binutils 2.9.1 well. The egcs-gcc compiled
well also. 

But the compilation of the libraries failed because
egcs-1.0.3a/libiberty/vsprintf.c has the following code:
------------------------------------------
int
vsprintf (buf, format, ap)
     char *buf;
     const char *format;
     va_list ap;
{
  FILE b;
  int ret;
#ifdef VMS
  b->_flag = _IOWRT|_IOSTRG;
  b->_ptr = buf;
  b->_cnt = 12000;
#else
  b._flag = _IOWRT|_IOSTRG;
  b._ptr = buf;
  b._cnt = 12000;
#endif
  ret = _doprnt(format, ap, &b);
  putc('\0', &b);
  return ret;
}
---------------------------------------------------
I got the following errors:

/usr/tmp/sh/egcs.obj/gcc/xgcc -B/usr/tmp/sh/egcs.obj/gcc/ -c -g -O2  -ml -m3e
-I. -I/usr/tmp/sh/egcs-1.0.3a/libiberty/../include 
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c: In function `vsprintf':
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:48: structure has no member named
`_flag'
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:48: `_IOWRT' undeclared (first use
this function)
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:48: (Each undeclared identifier is
reported only once
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:48: for each function it appears
in.)
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:48: `_IOSTRG' undeclared (first use
this function)
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:49: structure has no member named
`_ptr'
/usr/tmp/sh/egcs-1.0.3a/libiberty/vsprintf.c:50: structure has no member named
`_cnt'


Could you please help me to compile this file ??

regards

Danny

-- 
------------------------------------------------------------
DTS Computer Schwager, Am Schnarrenberg 1, D-70376 Stuttgart
Tel: +49-711-5094390                    Fax: +49-711-5094391
WEB: http://www.dts-s.de/           email: schwager@dts-s.de


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

* Re: Bug in egcs-1.0.3a/vsprintf.c
  1998-08-20  3:36 Bug in egcs-1.0.3a/vsprintf.c Daniel T. Schwager
@ 1998-08-30 18:17 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-08-30 18:17 UTC (permalink / raw)
  To: danny; +Cc: egcs-bugs

  In message < 35DBFA51.B2B8A6CF@dts-s.de >you write:
  > Hallo Cygnus-Team,
  > 
  > i try to install your egcs-gcc compiler as a cross-compiler (sh2, hitachi)
  > for our Linux-Box. I compiled binutils 2.9.1 well. The egcs-gcc compiled
  > well also. 
  > 
  > But the compilation of the libraries failed because
  > egcs-1.0.3a/libiberty/vsprintf.c has the following code:
[ ... ]
Sounds like you are not picking up the right include files for
your sh target.

jeff


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

end of thread, other threads:[~1998-08-30 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-20  3:36 Bug in egcs-1.0.3a/vsprintf.c Daniel T. Schwager
1998-08-30 18:17 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).