[Babel-users] babel freebsd 1.3.1 port

Antoine Beaupré anarcat at anarcat.ath.cx
Mon Jul 30 01:22:41 UTC 2012


Hi,

The 1.3.1 source needs a small modification to compile properly in
FreeBSD. It's just the order of header includes:

--- net.c.orig  2012-07-29 21:11:48.000000000 -0400
+++ net.c       2012-07-29 21:06:43.000000000 -0400
@@ -28,8 +28,8 @@
 #include <sys/types.h>
 #include <sys/uio.h>
 #include <sys/socket.h>
-#include <netinet/ip.h>
 #include <netinet/in.h>
+#include <netinet/ip.h>
 #include <arpa/inet.h>
 #include <errno.h>

Also note that I can segfault babeld using a judicious choice of
commandline arguments (1.0, 1.2 and 1.3 have this problem):

roadkiller# babeld -d9 -C 'redistribute metric 128' -C 'interface vr2
wired' vr2
Segmentation fault (core dumped)

Backtrace:

#0  0x2810f76c in free () from /lib/libc.so.7
#1  0x0805651f in getbool ()
#2  0x0805708f in parse_config ()
#3  0x080572b0 in parse_config_from_string ()
#4  0x08049cc3 in main ()

Thanks,

A.

-- 
Having failed to discover weapons of mass destruction, Washington
shifted its propaganda to "establishing democracy." That flatly refutes
their earlier claim that the "only question" was whether Saddam would
disarm. But with a sufficiently obedient intellectual class, and loyal
media, the farce can proceed untroubled.
			            - Noam Chomsky, in an interview about Irak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/babel-users/attachments/20120729/40b3bfa7/attachment.pgp>


More information about the Babel-users mailing list