BIRD doesn't compile

Martin Mares mj at ucw.cz
Tue Mar 6 14:40:19 CET 2001


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 at 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"
 



More information about the Bird-users mailing list