make error for mgetty

Thomas Cameron (tcameron@three-sixteen.com)
Thu, 17 Jun 1999 22:42:01 -0500


Howdy all -

I had the same problem as the original poster.  I changed the logfile.c file from this:

#if !defined(__NetBSD__) && !defined( __FreeBSD__ )
extern char *sys_errlist[];
#endif

to this:

/*
#if !defined(__NetBSD__) && !defined( __FreeBSD__ )
extern char *sys_errlist[];
#endif
*/

The package compiled, with no errors, but a bunch of weird garbage on the screen that looked like escape sequences.  It also seems to work just fine.  Anyone know why?

Thomas

Gert Doering wrote:

> Hi,
>
> use 1.1.20.  mgetty 1.1.0 will not work with gnu libc 2 (which is what
> RedHat 5.x and up use).
>
> gert
>
> On Fri, May 28, 1999 at 06:46:48PM +1000, Pat Grogan wrote:
> > I get the following error when trying to compile mgetty on my RedHat 5.2 box. I have compiled mgetty several times on other systems without this error. Can anyone suggest what may be wrong?
> >
> > root@canrsg mgetty-1.0.0]# make
> > gcc -O2 -Wall -pipe   -c logfile.c -o logfile.o
> > logfile.c:57: conflicting types for `sys_errlist'
> > /usr/include/stdio.h:221: previous declaration of `sys_errlist'
> > make: *** [logfile.o] Error 1
> > [root@canrsg mgetty-1.0.0]
> >
> > Any help would be appreciated
> >
> > Pat grogan
>
> --
> USENET is *not* the non-clickable part of WWW!
>                                                            //www.muc.de/~gert/
> Gert Doering - Munich, Germany                             gert@greenie.muc.de
> fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de
>
> -
> Posted automagically by a mail2news gateway at muc.de e.V.
> Please direct questions, flames, donations, etc. to admin@newsgate.muc.de