mgetty-0.97, gcc 2.5.8, Linux 1.2.11 -> compile problem

Gert Doering (gert@greenie.muc.de)
Mon, 6 Nov 1995 08:34:04 +0100


Hi,

Jan Richert wrote:
> Trying to compile mgetty in the environment described in the
> subject line results in this:
> 
> gcc -O2 -Wall -pipe   -c logfile.c -o logfile.o
> In file included from /usr/include/sys/syslog.h:173,
>                  from /usr/include/syslog.h:1,
>                  from logfile.c:19:
> /usr/lib/gcc-lib/i486-linux/2.5.8/include/stdarg.h:69: warning: `va_start' redefined
> /usr/lib/gcc-lib/i486-linux/2.5.8/include/varargs.h:89: warning: this is the location of the previous definition

Oh my. Mismatch of "varargs" and "stdarg" :(

For a short fix, I'd just compile without syslog (#define SYSLOG in
policy.h). For a real fix, one would have to change either syslog.h to use
varargs.h, or logfile.c to use stdarg.h.

Strange enough, on my Linux system, it compiles fine.

gert
-- 
                                                            //www.muc.de/~gert
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-3545980 <---new!!!              gert.doering@physik.tu-muenchen.de