duplicate symbols in 0.13

Stef Walter stefw at gnome.org
Mon Jul 16 09:59:52 PDT 2012


On 07/16/2012 05:16 PM, David Reiser wrote:
> I'm getting a duplicate symbols error in version 0.13:
> 
> ld: duplicate symbol _mock_module_no_slots in .libs/mock-module-ep.o
> and .libs/mock-module.o for architecture x86_64 clang: error: linker
> command failed with exit code 1 (use -v to see invocation)

Does this patch fix the issue?

Stef

commit 771f73276b6e134db3131963510e4ae7fefe5292
Author: Stef Walter <stefw at gnome.org>
Date:   Mon Jul 16 18:58:34 2012 +0200

    Don't define duplicate symbols

     * clang was giving a build failure here.

diff --git a/tests/mock-module.h b/tests/mock-module.h
index 21fa17a..9557f70 100644
--- a/tests/mock-module.h
+++ b/tests/mock-module.h
@@ -26,7 +26,7 @@

 #include "pkcs11.h"

-CK_FUNCTION_LIST    mock_module_no_slots;
+extern CK_FUNCTION_LIST    mock_module_no_slots;

 void        mock_module_init                              (void);



More information about the p11-glue mailing list