I am compiling on a RHEL 6.3 machine. Running through leaves WITH_TCPWRAPPER undefined for some reason.
This cause a compile error in these lines of dcmnet/libsrc/dwrap.c
Code: Select all
0024 #ifndef TCPWRAPPER_SEVERITY_EXTERN
0025 int deny_severity = LOG_WARNING;
0026 int allow_severity = LOG_INFO;
0027 #endif
The simplest fix is to include syslog.h unconditionally, since LOG_WARNING and LOG_INFO are referenced unconditionally:
Code: Select all
diff --git a/dcmnet/libsrc/dwrap.c b/dcmnet/libsrc/dwrap.c
index e93214e..8522efe 100644
--- a/dcmnet/libsrc/dwrap.c
+++ b/dcmnet/libsrc/dwrap.c
@@ -23,8 +23,8 @@
#ifdef WITH_TCPWRAPPER
#include <tcpd.h> /* for hosts_ctl */
-#include <syslog.h>
#endif
+#include <syslog.h>
/* libwrap expects that two global flags, deny_severity and allow_severity,
* are defined and initialized by user code. If these flags are already present