Created
August 25, 2014 10:44
-
-
Save ioc32/4310ebf14abfca3d40c6 to your computer and use it in GitHub Desktop.
getdns-python-bindings fails to compile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(master)iortiz@rigel:~/Code/git/getdns-python-bindings | |
$ python setup.py build_ext --inplace | |
running build_ext | |
building 'getdns' extension | |
creating build | |
creating build/temp.macosx-10.9-intel-2.7 | |
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c getdns.c -o build/temp.macosx-10.9-intel-2.7/getdns.o | |
getdns.c:242:82: warning: implicit conversion loses integer precision: 'getdns_transaction_t' | |
(aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] | |
blob->type, blob->extensions, blob->userarg, blob->tid, | |
~~~~~~^~~ | |
getdns.c:403:33: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] | |
userarg, tid, callback); | |
^~~ | |
2 warnings generated. | |
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pygetdns_util.c -o build/temp.macosx-10.9-intel-2.7/pygetdns_util.o | |
pygetdns_util.c:146:38: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to | |
'int' [-Wshorten-64-to-32] | |
optionlistsize = PyList_Size(opt_value); | |
~ ^~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c fd_poller.c -o build/temp.macosx-10.9-intel-2.7/fd_poller.o | |
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c context.c -o build/temp.macosx-10.9-intel-2.7/context.o | |
context.c:123:60: warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') | |
to 'getdns_resolution_t' (aka 'enum getdns_resolution_t') [-Wshorten-64-to-32] | |
if ((ret = getdns_context_set_resolution_type(context, value)) != GETDNS_RETURN_GOOD) { | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ | |
context.c:152:58: warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') | |
to 'getdns_transport_t' (aka 'enum getdns_transport_t') [-Wshorten-64-to-32] | |
if ((ret = getdns_context_set_dns_transport(context, value)) != GETDNS_RETURN_GOOD) { | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ | |
context.c:299:24: warning: implicit conversion loses integer precision: 'long' to 'uint32_t' | |
(aka 'unsigned int') [-Wshorten-64-to-32] | |
if ((long)(value = PyInt_AsLong(py_value)) < 0) { | |
~ ^~~~~~~~~~~~~~~~~~~~~~ | |
context.c:323:24: warning: implicit conversion loses integer precision: 'long' to 'uint32_t' | |
(aka 'unsigned int') [-Wshorten-64-to-32] | |
if ((long)(value = PyInt_AsLong(py_value)) < 0) { | |
~ ^~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
cc -bundle -undefined dynamic_lookup -Wl,-F. -arch x86_64 build/temp.macosx-10.9-intel-2.7/getdns.o build/temp.macosx-10.9-intel-2.7/pygetdns_util.o build/temp.macosx-10.9-intel-2.7/fd_poller.o build/temp.macosx-10.9-intel-2.7/context.o -L/usr/local/lib -L/usr/local/lib -lldns -lgetdns -lgetdns_ext_event -o /Users/iortiz/Code/git/getdns-python-bindings/getdns.so | |
duplicate symbol _getdns_error in: | |
build/temp.macosx-10.9-intel-2.7/getdns.o | |
build/temp.macosx-10.9-intel-2.7/pygetdns_util.o | |
duplicate symbol _getdns_error in: | |
build/temp.macosx-10.9-intel-2.7/getdns.o | |
build/temp.macosx-10.9-intel-2.7/fd_poller.o | |
duplicate symbol _getdns_error in: | |
build/temp.macosx-10.9-intel-2.7/getdns.o | |
build/temp.macosx-10.9-intel-2.7/context.o | |
ld: 3 duplicate symbols for architecture x86_64 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
error: command 'cc' failed with exit status 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment