X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Date: Thu, 14 May 2009 06:20:19 +0300 From: Eli Zaretskii Subject: Re: Beta GNU binutils troubles solved In-reply-to: <001001c9d421$ac528bf0$04f7a3d0$@u-strasbg.fr> X-012-Sender: halo1 AT inter DOT net DOT il To: Pierre Muller Cc: djgpp-workers AT delorie DOT com Message-id: <83zldgqsjw.fsf@gnu.org> References: <001001c9d421$ac528bf0$04f7a3d0$@u-strasbg.fr> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Pierre Muller" > Cc: "'Eli Zaretskii'" > Date: Thu, 14 May 2009 01:22:23 +0200 > > > I was trying for a long time to use beta DJGPP > libraries to compile binutils and gdb. > > 2.03 had the problem that scanf was not supported > enough for gdb.. > Eli, how did you solve this issue? What issue? I didn't have any such issues with v2.03. If you mean that v2.03 lacks snprintf, then the solution is easy and pretty automatic: the configure script detects that and uses snprintf from libiberty. I had absolutely no problems with v2.03 library building GDB. > RCS file: /cvs/djgpp/djgpp/src/libc/ansi/stdio/fflush.c,v > retrieving revision 1.11 > diff -u -p -r1.11 fflush.c > --- ansi/stdio/fflush.c 29 Jan 2003 01:28:34 -0000 1.11 > +++ ansi/stdio/fflush.c 13 May 2009 23:13:41 -0000 > @@ -77,5 +77,11 @@ fflush(FILE *f) > f->_flag &= ~(_IOWRT|_IOREAD); > f->_ptr = f->_base; > } > + if (f->_flag & _IOREAD) > + { > + f->_cnt = 0; > + f->_ptr = f->_base; > + } > + ??? fflush semantics with read streams is undefined. Why did you need this change? how does Binutils use fflush for input streams?