Bug#637944: FTBFS on kfreebsd-amd64
Package: ptlib
Version: 2.6.7-2
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
ptlib fails to build on kfreebsd-amd64 due to undefined RTF_WASCLONED macro.
This macro was provided in FreeBSD before 8.0 release, and so it is no longer
available on GNU/kFreeBSD either (which is currently using 8.x headers).
Solution used in FreeBSD ports/devel/ptlib26 is to replace RTF_WASCLONED with
0x20000 constant. See attached patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.utf8, LC_CTYPE=ca_AD.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'src/ptlib/unix/socket.cxx'
--- src/ptlib/unix/socket.cxx 2011-08-15 20:44:02 +0000
+++ src/ptlib/unix/socket.cxx 2011-08-15 20:51:37 +0000
@@ -1167,6 +1167,10 @@ PBoolean process_rtentry(struct rt_msghd
#if defined(P_NETBSD) || defined(P_QNX)
&& (~rtm->rtm_flags&RTF_CLONED) // Net BSD has flag one way
#elif !defined(P_OPENBSD)
+#ifndef RTF_WASCLONED
+/* This macro was removed with FreeBSD 8.0 (arp-v2 rewrite). */
+#define RTF_WASCLONED 0x20000
+#endif
&& (~rtm->rtm_flags&RTF_WASCLONED) // Free BSD/MAC has it another
#else
// Open BSD does not have it at all!
Reply to: