2.0 kernel compile fails
Network Administration
noc at clouddancer.com
Sat Jun 17 12:10:15 CEST 2000
> /usr/src/routing/bird-1.0.0/obj/lib/io.c:777: undefined reference to `SUN_LEN'
> make[1]: *** [../bird] Error 1
> make[1]: Leaving directory `/usr/src/routing/bird-1.0.0/obj'
> make: *** [all] Error 2
>
> What is missing here?
Please try this patch.
diff -u -r1.15 unix.h
--- sysdep/unix/unix.h 2000/06/09 07:32:57 1.15
+++ sysdep/unix/unix.h 2000/06/16 23:05:14
@@ -34,6 +34,10 @@
typedef struct sockaddr_in sockaddr;
#endif
+#ifndef SUN_LEN
+#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path))
+#endif
+
struct birdsock;
void io_init(void);
Adding the missing (for this OS setup) SUN_LEN def allowed BIRD to be
compiled. I now configuring a BIRD pair on 2.0 and 2.2 kernels.
Thanks.
More information about the Bird-users
mailing list