[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#44444: netkit-telnet_0.14-3(unstable): doesn't compile with gcc 2.95.1



Well, in libc 2.1 we have this:

/* We don't use `memset' because this would require a prototype and
   the array isn't too big.  */
#define __FD_ZERO(s) \
  do {                                                                        \
    unsigned int __i;                                                         \
    __fd_set *__arr = (s);                                                    \
    for (__i = 0; __i < sizeof (__fd_set) / sizeof (__fd_mask); ++__i)        \
      __FDS_BITS (__arr)[__i] = 0;                                            \
  } while (0)


This would probably be because m68k has not yet moved to glibc 2.1. 
Until they're prepared to do that, you should probably work around this
in netkit, since I don't think there's too much chance of a new glibc
2.0 upload.

On Sat, Sep 11, 1999 at 12:52:35PM +1000, Herbert Xu wrote:
> reassign 44444 libc6-dev
> quit
> 
> On Mon, Sep 06, 1999 at 02:06:24PM +0200, Roman Hodek wrote:
> > Package: netkit-telnet
> > Version: 0.14-3
> > Severity: important
> > 
> > I tried to recompile netkit-telnet for m68k, but it failed with:
> > 
> > > gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wcast-align -DUSE_TERMIO -DKLUDGELINEMODE sys_bsd.cc -c
> > > sys_bsd.cc: In function `void init_sys()':
> > > sys_bsd.cc:70: implicit declaration of function `int memset(...)'
> > > sys_bsd.cc: In function `int process_rings(int, int, int, int, int, int)':
> > > sys_bsd.cc:284: warning: missing initializer for member `timeval::tv_usec'
> > > make[2]: *** [sys_bsd.o] Error 1
> > > make[2]: Leaving directory `/usr/local/build/buildd/netkit-telnet-0.14/telnet'
> > > make[1]: *** [telnet.build] Error 2
> > > make[1]: Leaving directory `/usr/local/build/buildd/netkit-telnet-0.14'
> > > make: *** [build-stamp] Error 2
> > 
> > There's simply a prototype missing for memset() (include <string.h>).
> > This is an error for g++ 2.95, but was only a warning for previous
> > versions.
> 
> This does not seem to be a bug in telnet, because the offending line is
> actually a call to the FD_ZERO macro, and the required header file,
> sys/types.h is included.  Thus it seems to me that this is a bug in libc6
> on m68k (it doesn't happen on i386 with glibc2.1).
> -- 
> Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
> Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-glibc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/


Reply to: