[ldns-users] adding (partial) Python3 support
patrik at frobbit.se
Sun Aug 21 20:16:36 CEST 2011
Ok, I have spent some time trying to get things together, but I do not have configure karma with me today.
I.e. there are many things one need to build the package that is not in the SVN repository. I am working on a mac btw.
Autoconf and "automake --add-missing" has helped, as libtoolize that is called from makedist.sh is something I do not have.
Because of that, I have not really been able to move forward much.
Can someone help, and build a distribution for me that I can use to build the thing?
I am close, maybe:
# ./configure --with-pyldns --disable-gost PYTHON_VERSION=3.2
checking whether the C compiler (gcc) accepts the "unused" attribute... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ldns/common.h
config.status: creating ldns/net.h
config.status: creating ldns/util.h
config.status: creating packaging/libldns.pc
config.status: creating packaging/ldns-config
config.status: error: cannot find input file: ldns/config.h.in
On 16 aug 2011, at 12.04, Ondřej Surý wrote:
> could you also test the Python 3 implementation? It was you who asked about it?
> On Tue, Aug 16, 2011 at 11:50, W.C.A. Wijngaards <wouter at nlnetlabs.nl> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Hi Karel,
>> On 08/15/2011 04:24 PM, Karel Slany wrote:
>>> recently I have been toying with the ldns sources in order to make them
>>> compile with Python3 support -- via the './configure --with-pyldns
>>> PYTHON_VERSION=3' command. I've made several changes to the supplied
>>> autoconf Python detection macros and others to make them work both with
>>> Python 2 and 3.
>> Because we do not maintain these python implementations ourselves, it
>> would be good if other users could tell us if these patches work for
>> Python 2. There are large changes, and we want to support our users.
>> If that works, the patch is likely very nice to accept. Thanks for the
>> good work :-)
>> Best regards,
>>> The Python3 wrapper does now compile. However, the Python3 support is
>>> incomplete. In Python3 they have abandoned the old C I/O API in favour
>>> of the io module. Therefore SWIG does no longer support FILE* typemaps
>>> -- i.e. C functions taking FILE* arguments will generate an error in
>>> This mail contains two patches:
>>> 1) python3.diff -- Contains modifications enabling the Python3 module to
>>> compile and to run with Python3. It also contains a few working examples
>>> for Python3 which do the same as the original Python2 examples.
>>> 2)ldns_axfr_start.diff -- As I discovered, the ldns-axf example did not
>>> work -- this patch should fix it.
>>> The patches are against the 3523 (current) svn revision.
>>> Best regard
>>> Karel Slany
>>> ldns-users mailing list
>>> ldns-users at open.nlnetlabs.nl
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (GNU/Linux)
>> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>> -----END PGP SIGNATURE-----
>> ldns-users mailing list
>> ldns-users at open.nlnetlabs.nl
> Ondřej Surý <ondrej at sury.org>
More information about the ldns-users