[Unbound-users] ldns fails to compile with swig-2.0.2

Chris Smith fixie at chrissmith.org
Mon Feb 28 00:48:32 UTC 2011


Hello,

Getting this problem compiling ldns-trunk with swig-2.0.2:
========================================================================
./libtool --tag=CC --quiet --mode=compile x86_64-pc-linux-gnu-gcc -I.
-DHAVE_CONFIG_H -Wwrite-strings -W -Wall -O2 -g -march=native -O2
-fomit-frame-pointer -pipe -D_GNU_SOURCE -c ./compat/strlcpy.c -o
strlcpy.o
./libtool --tag=CC --quiet --mode=link x86_64-pc-linux-gnu-gcc
-Wwrite-strings -W -Wall -O2 -g -march=native -O2 -fomit-frame-pointer
-pipe -D_GNU_SOURCE -Wl,-O1 -Wl,--as-needed -version-number 1:6:8
-no-undefined  -lcrypto -ldl --export-symbols ./ldns_symbols.def -o
libldns.la rdata.lo util.lo rr.lo packet.lo wire2host.lo host2str.lo
buffer.lo str2host.lo tsig.lo resolver.lo net.lo host2wire.lo dname.lo
dnssec.lo dnssec_verify.lo keys.lo higher.lo rr_functions.lo parse.lo
update.lo error.lo zone.lo dnssec_zone.lo dnssec_sign.lo rbtree.lo
sha1.lo sha2.lo b64_pton.lo b64_ntop.lo b32_pton.lo b32_ntop.lo
strlcpy.lo -rpath /usr/lib64
if [ ! -d lib ] ; then ln -s .libs lib ; fi ;
./libtool --tag=CC --quiet --mode=link x86_64-pc-linux-gnu-gcc
./linktest.c -I. -DHAVE_CONFIG_H  -Wwrite-strings -W -Wall -O2 -g
-march=native -O2 -fomit-frame-pointer -pipe -D_GNU_SOURCE -lldns  -o
linktest
./install-sh  -d doc
cat ./ldns/*.h | ./doc/doxyparse.pl -m ./doc/function_manpages 2>&1 | \
        grep -v ^doxygen | grep -v ^cat  > doc/ldns_manpages
/usr/bin/swig -python -o contrib/python/ldns_wrapper.c -I.
-DHAVE_CONFIG_H -I/usr/include/python2.7 contrib/python/ldns.i
contrib/python/ldns.i:117: Error: Syntax error in input(1).
========================================================================

If I downgrade to swig-2.0.1 it compiles fine.

Thank you,

Chris



More information about the Unbound-users mailing list