duplicate symbols in 0.13

David Reiser dbreiser at me.com
Mon Jul 16 13:49:30 PDT 2012


On Jul 16, 2012, at 12:59 PM, Stef Walter wrote:

> 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);

Works for me. Thanks.

Dave
--
Dave Reiser
dbreiser at me.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/p11-glue/attachments/20120716/f79c2480/attachment.html>


More information about the p11-glue mailing list