[Pkg-dns-devel] Bug#835997: python-ldns broken: AttributeError: 'module' object has no attribute 'LDNS_RR_CLASS_IN'
Christoph Egger
christoph at christoph-egger.org
Mon Aug 29 23:44:47 UTC 2016
Hi!
Christoph Egger <christoph at christoph-egger.org> writes:
> Christoph Egger <christoph at christoph-egger.org> writes:
>> Seems the name without the _swigconstant suffix comes directly from the
>> interface description shipped with the source:
>>
>> | ./ldns_resolver.i:429: def get_addr_by_name(self, name, aclass = _ldns.LDNS_RR_CLASS_IN, flags = _ldns.LDNS_RD):
>
> And the suffix seems to have been added by some recent swig version. The
> Internet has some references on things breaking.
So I have a working build now!
Turns out swig became a lot more sensitive to ordering.
Moving the
%include <ldns/rr.h>
right after the
%include "ldns_rr.i"
in ldns.i yields a version of `ldns` that is at least importable!
Christoph
--
9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer
More information about the pkg-dns-devel
mailing list