[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3843) duplicate symbol error in back-bdb/tools.c on HEAD



Full_Name: Jason Townsend
Version: HEAD
OS: Mac OS X 10.4.1
URL: http://www.opendarwin.org/~jtownsend/patches/duplicatesymbolerror/servers-slapd-back-bdb-tools.patch
Submission from: (NULL) (17.221.43.142)


When building HEAD with both back-bdb and back-hdb included I get the following
error during linking:

ld: for architecture ppc
ld: multiple definitions of symbol _index_attrs
libbackends.a(bdbtools.o) definition of _index_attrs in section
(__DATA,__common)
libbackends.a(hdbtools.o) definition of _index_attrs in section
(__DATA,__common)
ld: multiple definitions of symbol _index_dummy
libbackends.a(bdbtools.o) definition of _index_dummy in section
(__DATA,__common)
libbackends.a(hdbtools.o) definition of _index_dummy in section
(__DATA,__common)

A simple fix is to make these variables static. I've prepared a patch file here
with the fix:

http://www.opendarwin.org/~jtownsend/patches/duplicatesymbolerror/servers-slapd-back-bdb-tools.patch