Skip to content

Commit 5a48f63

Browse files
committed
Fix compilation error due to duplicated symbols
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
1 parent cd6894b commit 5a48f63

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

getdns.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
#include <pthread.h>
4747
#include "pygetdns.h"
4848

49+
#include "context.c"
50+
#include "fd_poller.c"
51+
#include "pygetdns_util.c"
4952

5053

5154
PyMethodDef Context_methods[] = {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
include_dirs = [ '/usr/local/include', ],
4343
libraries = [ 'ldns', 'getdns', 'getdns_ext_event' ],
4444
library_dirs = [ '/usr/local/lib' ],
45-
sources = [ 'getdns.c', 'pygetdns_util.c', 'fd_poller.c', 'context.c' ],
45+
sources = [ 'getdns.c' ],
4646
runtime_library_dirs = [ '/usr/local/lib' ]
4747
)
4848

0 commit comments

Comments
 (0)