<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 16, 2012, at 12:59 PM, Stef Walter wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 07/16/2012 05:16 PM, David Reiser wrote:<br><blockquote type="cite">I'm getting a duplicate symbols error in version 0.13:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ld: duplicate symbol _mock_module_no_slots in .libs/mock-module-ep.o<br></blockquote><blockquote type="cite">and .libs/mock-module.o for architecture x86_64 clang: error: linker<br></blockquote><blockquote type="cite">command failed with exit code 1 (use -v to see invocation)<br></blockquote><br>Does this patch fix the issue?<br><br>Stef<br><br>commit 771f73276b6e134db3131963510e4ae7fefe5292<br>Author: Stef Walter <<a href="mailto:stefw@gnome.org">stefw@gnome.org</a>><br>Date: Mon Jul 16 18:58:34 2012 +0200<br><br> Don't define duplicate symbols<br><br> * clang was giving a build failure here.<br><br>diff --git a/tests/mock-module.h b/tests/mock-module.h<br>index 21fa17a..9557f70 100644<br>--- a/tests/mock-module.h<br>+++ b/tests/mock-module.h<br>@@ -26,7 +26,7 @@<br><br> #include "pkcs11.h"<br><br>-CK_FUNCTION_LIST mock_module_no_slots;<br>+extern CK_FUNCTION_LIST mock_module_no_slots;<br><br> void mock_module_init (void);<br></div></blockquote><br></div><div>Works for me. Thanks.</div><div><br></div><div>Dave</div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>--</div><div>Dave Reiser</div><div><a href="mailto:dbreiser@me.com">dbreiser@me.com</a></div><div><br></div></span><br class="Apple-interchange-newline"></div></div><br></body></html>