Hello, i have got a problem compiling BIRD 1.0.4 on newly installed debian box with gcc 2.95.3 gcc 2.95.2 compiles without errors (but with many warnings). Here is what i have got (seems that #include <time.h> is missing) on 2.95.3 io.c: At top level: io.c:438: warning: missing initializer io.c:438: warning: (near initialization for `sk_class.lookup') io.c: In function `io_init': io.c:1021: warning: implicit declaration of function `time' make[2]: *** [io.o] Error 1 make[2]: Leaving directory `/home/davro/source/bird-1.0.4/obj/lib' make[1]: *** [subdir] Error 2 make[1]: Leaving directory `/home/davro/source/bird-1.0.4/obj' make: *** [all] Error 2 when i added #include <time.h> to several sources, it has passed without errors. But i don't know if this is "the right way" to do it. -- ------------------------------------------------------------------------- David Rohleder davro@ics.muni.cz Institute of Computer Science, Masaryk University Brno, Czech Republic -------------------------------------------------------------------------
Hello!
i have got a problem compiling BIRD 1.0.4 on newly installed debian box with gcc 2.95.3
gcc 2.95.2 compiles without errors (but with many warnings).
If all of them are the "missing initializer" ones, everything is right -- these warnings were introduced in gcc 2.95 and they are utterly bogus. Unfortunately, there is no switch which would disable them and leave all other useful warnings.
when i added #include <time.h> to several sources, it has passed without errors. But i don't know if this is "the right way" to do it.
This patch should fix that -- BIRD was somewhat confused in what belongs to <time.h> and what to <sys/time.h> which didn't matter in previous glibc releases where sys/time.h included time.h automatically. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth A professor is one who talks in someone else's sleep. Index: client/client.c =================================================================== RCS file: /home2/mj/BIRD/bird/client/client.c,v retrieving revision 1.17 diff -u -r1.17 client.c --- client/client.c 2000/06/16 23:12:47 1.17 +++ client/client.c 2001/03/06 13:37:16 @@ -13,7 +13,6 @@ #include <errno.h> #include <sys/socket.h> #include <sys/un.h> -#include <sys/time.h> #include <sys/types.h> #include <readline/readline.h> #include <readline/history.h> Index: sysdep/unix/io.c =================================================================== RCS file: /home2/mj/BIRD/bird/sysdep/unix/io.c,v retrieving revision 1.55 diff -u -r1.55 io.c --- sysdep/unix/io.c 2000/06/09 07:30:22 1.55 +++ sysdep/unix/io.c 2001/03/06 13:37:20 @@ -8,6 +8,7 @@ #include <stdio.h> #include <stdlib.h> +#include <time.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> Index: sysdep/unix/log.c =================================================================== RCS file: /home2/mj/BIRD/bird/sysdep/unix/log.c,v retrieving revision 1.16 diff -u -r1.16 log.c --- sysdep/unix/log.c 2000/06/19 23:50:03 1.16 +++ sysdep/unix/log.c 2001/03/06 13:37:20 @@ -18,7 +18,7 @@ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> -#include <sys/time.h> +#include <time.h> #include "nest/bird.h" #include "nest/cli.h" Index: sysdep/unix/timer.h =================================================================== RCS file: /home2/mj/BIRD/bird/sysdep/unix/timer.h,v retrieving revision 1.9 diff -u -r1.9 timer.h --- sysdep/unix/timer.h 2000/03/12 22:43:13 1.9 +++ sysdep/unix/timer.h 2001/03/06 13:37:20 @@ -9,7 +9,7 @@ #ifndef _BIRD_TIMER_H_ #define _BIRD_TIMER_H_ -#include <sys/time.h> +#include <time.h> #include "lib/resource.h"
On Tue, Mar 06, 2001 at 10:49:18AM +0100, David Rohleder wrote:
Hello,
i have got a problem compiling BIRD 1.0.4 on newly installed debian box with gcc 2.95.3
apt-get install bird ? Flo -- Florian Lohoff flo@rfc822.org +49-5201-669912 Why is it called "common sense" when nobody seems to have any?
participants (3)
-
David Rohleder -
Florian Lohoff -
Martin Mares