[getdns-api] Error during "python setup.py install"

shadrach rajasekar shadrach.r at gmail.com
Thu Aug 27 12:57:44 CEST 2015


Hi All,



I have downloaded getdns source from https://getdnsapi.net/.



I have executed below command



./configure --prefix=/home/deploy/build --with-ssl=/usr/local
--with-libevent --includedir=/home/deploy/build/include
 --libdir=/home/deploy/build/lib

make

make install

mv lib lib64



Now i have downloaded python binding and have the direc
in /home/deploy/getdns-python-bindings-master.



Now when i execute python setup.py install i get below errors



running install

running build

running build_ext

building 'getdns' extension

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I/usr/local/include
-I/sw/packages/python/current/include/python2.7 -c getdns.c -o
build/temp.linux-x86_64-2.7/getdns.o

getdns.c:43:27: error: getdns/getdns.h: No such file or directory

getdns.c:44:40: error: getdns/getdns_ext_libevent.h: No such file or
directory

In file included from getdns.c:47:

pygetdns.h:76: error: expected specifier-qualifier-list before
âgetdns_resolution_tâ

pygetdns.h:101: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:101: warning: its scope is only this definition or declaration,
which is probably not what you want

pygetdns.h:104: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:105: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:106: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:107: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:108: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:109: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:114: error: expected â)â before â*â token

pygetdns.h:115: error: expected â)â before â*â token

pygetdns.h:116: error: expected â)â before â*â token

pygetdns.h:117: error: expected â)â before â*â token

pygetdns.h:118: error: expected â)â before â*â token

pygetdns.h:119: error: expected â)â before â*â token

pygetdns.h:120: error: expected â)â before â*â token

pygetdns.h:121: error: expected â)â before â*â token

pygetdns.h:122: error: expected â)â before â*â token

pygetdns.h:123: error: expected â)â before â*â token

pygetdns.h:124: error: expected â)â before â*â token

pygetdns.h:125: error: expected â)â before â*â token

pygetdns.h:126: error: expected â)â before â*â token

pygetdns.h:127: error: expected â)â before â*â token

pygetdns.h:128: error: expected â)â before â*â token

pygetdns.h:129: error: expected â)â before â*â token

pygetdns.h:143: error: expected declaration specifiers or â...â before
âgetdns_callback_type_tâ

pygetdns.h:144: error: expected declaration specifiers or â...â before
âgetdns_transaction_tâ

pygetdns.h:144: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:144: warning: âstruct getdns_contextâ declared inside parameter
list

pygetdns.h:150: error: expected â)â before â*â token

pygetdns.h:151: warning: âstruct getdns_listâ declared inside parameter list

pygetdns.h:152: warning: âstruct getdns_dictâ declared inside parameter list

pygetdns.h:153: error: expected â)â before â*â token

pygetdns.h:158: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
before â*â token

getdns.c:137: error: âgetdns_ContextObjectâ has no member named
âresolution_typeâ

getdns.c:139: error: âgetdns_ContextObjectâ has no member named
âdns_transportâ

getdns.c:141: error: âgetdns_ContextObjectâ has no member named
âlimit_outstanding_queriesâ

getdns.c:143: error: âgetdns_ContextObjectâ has no member named
âfollow_redirectsâ

getdns.c:145: error: âgetdns_ContextObjectâ has no member named
âappend_nameâ

getdns.c:147: error: âgetdns_ContextObjectâ has no member named
âdnssec_allowed_skewâ

getdns.c:149: error: âgetdns_ContextObjectâ has no member named
âedns_maximum_udp_payload_sizeâ

getdns.c:151: error: âgetdns_ContextObjectâ has no member named
âedns_extended_rcodeâ

getdns.c:153: error: âgetdns_ContextObjectâ has no member named
âedns_do_bitâ

getdns.c:155: error: âgetdns_ContextObjectâ has no member named
âedns_versionâ

getdns.c:156: error: âgetdns_ContextObjectâ has no member named ânamespacesâ

getdns.c:158: error: âgetdns_ContextObjectâ has no member named
âdns_root_serversâ

getdns.c:160: error: âgetdns_ContextObjectâ has no member named
âdnssec_trust_anchorsâ

getdns.c:162: error: âgetdns_ContextObjectâ has no member named âsuffixâ

getdns.c:163: error: âgetdns_ContextObjectâ has no member named
âupstream_recursive_serversâ

getdns.c:166: error: âgetdns_ContextObjectâ has no member named
âimplementation_stringâ

getdns.c:168: error: âgetdns_ContextObjectâ has no member named
âversion_stringâ

getdns.c: In function âget_errorstr_by_idâ:

getdns.c:232: error: âGETDNS_RETURN_INVALID_PARAMETER_TEXTâ undeclared
(first use in this function)

getdns.c:232: error: (Each undeclared identifier is reported only once

getdns.c:232: error: for each function it appears in.)

getdns.c:232: warning: passing argument 2 of âPyErr_SetStringâ from
incompatible pointer type

/sw/packages/python/current/include/python2.7/pyerrors.h:78: note: expected
âconst char *â but argument is of type âstruct PyMemberDef *â

getdns.c:235: warning: implicit declaration of function
âgetdns_get_errorstr_by_idâ

getdns.c:235: warning: cast to pointer from integer of different size

error: command 'gcc' failed with exit status 1





Can someone help me on this where i go wrong



Regards,

Shadrach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://getdnsapi.net/pipermail/spec/attachments/20150827/207f19e0/attachment.html>


More information about the spec mailing list