[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#764692: dns-flood-detector: FTBFS on kfreebsd-*



clone 764692 -1
reassign -1 src:dns-flood-detector
found -1 dns-flood-detector/1.20-2
tags -1 + patch
thanks

Hi,

> On 12/10/14 16:45, Steven Chamberlain wrote:
>> glibc-provided features.h no longer defines a __FAVOR_BSD macro, so the
>> BSD version of struct tcphdr in netinet/tcp.h cannot be used, [...]

> https://buildd.debian.org/status/fetch.php?pkg=dns-flood-detector&arch=kfreebsd-amd64&ver=1.20-2&stamp=1413149812

This problem with glibc 2.19 can be worked around in dns-flood-detector
with the attached patch.

(Although in the next release of glibc, it might no longer work, so
maybe libbsd-dev could provide a suitable netinet/tcp.h someday)

Thanks,
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
--- debian/rules.orig	2014-10-12 20:01:04.000000000 +0100
+++ debian/rules	2014-10-15 12:35:53.128715139 +0100
@@ -11,7 +11,7 @@
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
-CFLAGS += -D_BSD_SOURCE -Wall -g
+CFLAGS += -D_BSD_SOURCE -D__FAVOR_BSD -Wall -g
 LDLIBS += -lpcap -lpthread -lm
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))

Reply to: