This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug in egcs-1.0.3a/vsprintf.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]