Building p11-kit with MinGW on Windows

Stef Walter stefw at redhat.com
Wed Jan 8 06:33:24 PST 2014


On 07.01.2012 15:00, Eli Zaretskii wrote:
> [Please CC me on any responses, as I'm not subscribed to this list.]
> 
> About a week ago, I built p11-kit on MS-Windows using MinGW.  I found
> one problem with the package, related to the "install" target of the
> Makefile.  Specifically, "make install" fails like this:
> 
>      make  install-exec-hook
>      make[3]: Entering directory `/d/usr/eli/utils/p11-kit-0.9/p11-kit'
>      cp -p -f `readlink /d/usr/test/lib/libp11-kit.so` /d/usr/test/lib/p11-kit-proxy.so
>      cp: missing destination file operand after `/d/usr/test/lib/p11-kit-proxy.so'
>      Try `cp --help' for more information.
>      make[3]: *** [install-exec-hook] Error 1
>      make[3]: Leaving directory `/d/usr/eli/utils/p11-kit-0.9/p11-kit'
>      make[2]: *** [install-exec-am] Error 2
>      make[2]: Leaving directory `/d/usr/eli/utils/p11-kit-0.9/p11-kit'
>      make[1]: *** [install-am] Error 2
>      make[1]: Leaving directory `/d/usr/eli/utils/p11-kit-0.9/p11-kit'
>      make: *** [install-recursive] Error 1
> 
>    The bug is that the command line uses .so instead of .dll.a.
>    Therefore the `readlink ...` part evaluates to empty, and the rest
>    is history.
> 
>    Here's the offending fragment from Makefile.am:
> 
>      # Proxy module is actually same as library, so install a link
>      install-exec-hook:
> 	     $(LN_S) -f `readlink $(DESTDIR)$(libdir)/libp11-kit.so` $(DESTDIR)$(libdir)/p11-kit-proxy.so
> 
>    It shouldn't use a literal .so, as that is only appropriate for
>    Posix hosts.
> 
> Thanks for developing p11-kit!

Thanks for catching the issue. Do you have a patch that you applied to
fix the issue? I don't have my mingw setup all running right now, but
would be happy to include a patch.

Cheers,

Stef



More information about the p11-glue mailing list