Martin Michlmayr wrote: > Package: ldns > Version: 1.6.17-7 > Severity: serious > > Same as #809055 - maybe you find some info there.
Somewhat similar, the ldns and unbound build systems are not quite identical. Here is the diff submitted upstream for #809055: https://www.nlnetlabs.nl/bugs-script/attachment.cgi?id=320&action=diff > > /usr/bin/swig -python -o contrib/python/ldns_wrapper.c -I. -I. -Wdate-time > > -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -I/usr/include/python2.7 > > ./contrib/python/ldns.i > > swig error : Unrecognized option -Wdate-time I get a successful build with the attached patch. It causes the above lines of the build output to become: > /usr/bin/swig -python -o contrib/python/ldns_wrapper.c > -I/usr/include/python2.7 ./contrib/python/ldns.i -- Robert Edmonds edmo...@debian.org
>From cf88e0dd7d9711c8b945aa874c256d500fec2872 Mon Sep 17 00:00:00 2001 From: Robert Edmonds <edmo...@debian.org> Date: Sun, 24 Jan 2016 23:59:13 -0500 Subject: [PATCH] Makefile.in: Don't pass CPPFLAGS to swig (Closes: #811230) --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 7a1c241..fb8e090 100644 --- a/Makefile.in +++ b/Makefile.in @@ -242,7 +242,7 @@ manpages: $(srcdir)/doc/function_manpages pyldns: _ldns.la $(pywrapdir)/ldns_wrapper.c: $(PYLDNS_I_FILES) ldns/config.h - $(swig) $(swigpy_flags) -o $@ $(CPPFLAGS) $(PYTHON_CPPFLAGS) $(pywrapdir)/ldns.i + $(swig) $(swigpy_flags) -o $@ $(PYTHON_CPPFLAGS) $(pywrapdir)/ldns.i ldns_wrapper.lo: $(pywrapdir)/ldns_wrapper.c ldns/config.h $(COMP_LIB) -I./include/ldns $(PYTHON_CPPFLAGS) $(PYTHON_X_CFLAGS) -c $(pywrapdir)/ldns_wrapper.c -o $@ -- 2.7.0