modutils-2.3.14/util/config.c and #include <stdarg.h>

From: David Dyck (dcd@tc.fluke.com)
Date: Thu Aug 10 2000 - 11:54:34 EST


Hi,

I needed to add the line
  #include <stdarg.h>
to get util/config.c in modutils-2.3.14 to compile

I though that this was because I am using an old distribution from
slackware (still libc5), but then I tried it on a SuSE 6.1
and got the same errors.

would you consider adding
  #include <stdarg.h>
to the list of includes in config.c?

Do you have any idea why this would compile on your systems,
but not an older traditional linux system or even a new SuSE?

Before sending this I reviewed the linux-kernel recent postings,
and I see that you have been flooded, so in case you miss this,
and it may be valueable to others, I'm cc'ing linux-kernel.

Thanks,
  David Dyck

PS. the previous insmod I had installed was insmod version 2.3.5
    and I think the change was just put during the changes
    from 2.3.13 and 2.3.14

--- modutils-2.3.13/util/config.c Tue Jul 11 16:38:38 2000
+++ modutils-2.3.14/util/config.c Mon Aug 7 18:07:12 2000

This is the error I get

gcc -O2 -Wall -I./../include -D_GNU_SOURCE -DCONFIG_USE_SYSCALL=1 -DELF_MACHINE_H='"elf_i386.h"' -DARCH_i386 -c -o config.o config.c
config.c: In function `verbose':
config.c:115: `va_list' undeclared (first use this function)
config.c:115: (Each undeclared identifier is reported only once
config.c:115: for each function it appears in.)
config.c:115: parse error before `list'
config.c:116: warning: implicit declaration of function `va_start'
config.c:116: `list' undeclared (first use this function)
config.c:118: warning: implicit declaration of function `va_end'
config.c: At top level:
config.c:1377: `list' used prior to declaration

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:22 EST