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

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



Most compilers would have put those in BSS not DATA, and the linker 
would silently combine the redundant symbols into one.
Anyway, the patch is fine, now committed to HEAD, thanks.

jtownsend@opendarwin.org wrote:
> 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
>
>
>   


-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support