As maintainer of pdns-recursor I'm currently investigating why it fails
to build on kfreebsd-{amd64,i386} and found out that the include path
not is added to the compile line.
This include path gets added by a file in the sysdeps/ directory. (as
far as I found out) In this directory are the following files:
- Darwin.inc
- FreeBSD.inc
- Linux.inc
- SunOS.inc
But I'm not able to find out why the FreeBSD.inc (I think this file
should get loaded for kfreebsd-{amd64,i386}) is not loaded anymore.
Hopefully someone can enlighten me on this point.
Well, the OS-specific part is not well designed.
As a workaround please use patches bellow.
Petr
--- kqueuemplexer.cc
+++ kqueuemplexer.cc
@@ -6,7 +6,7 @@
#include <boost/lexical_cast.hpp>
#include "syncres.hh"
#include <sys/types.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <sys/event.h>
#endif
#include <sys/time.h>
--- Makefile
+++ Makefile
@@ -27,8 +27,13 @@
all: message pdns_recursor rec_control
# OS specific instructions
+
-include sysdeps/$(shell uname).inc
+ifeq ($(shell uname),GNU/kFreeBSD)
+-include sysdeps/FreeBSD.inc
+endif
+
ifeq ($(LUA), 1)
LUALIBS=$(LUA_LIBS_CONFIG)
CXXFLAGS+=$(LUA_CPPFLAGS_CONFIG) -DPDNS_ENABLE_LUA
--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org