Package Details: mingw-w64-p11-kit 0.25.5-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-p11-kit.git (read-only, click to copy)
Package Base: mingw-w64-p11-kit
Description: Provides a way to load and enumerate PKCS#11 modules (mingw-w64)
Upstream URL: https://p11-glue.freedesktop.org
Licenses: BSD
Submitter: xantares
Maintainer: pingplug
Last Packager: pingplug
Votes: 7
Popularity: 0.000000
First Submitted: 2014-10-29 11:11 (UTC)
Last Updated: 2024-07-06 00:57 (UTC)

Latest Comments

1 2 Next › Last »

patlefort commented on 2023-08-31 20:11 (UTC)

@pingplug: Do you read or ever respond to comments? pokes

patlefort commented on 2023-08-22 20:26 (UTC)

There is a problem if one include <rpc.h> before <pkcs11.h>: rpc.h defines interface as struct #define interface struct. That problem occurs in package mingw-w64-gnutls. A simple work around would be to add this little patch: sed -i 's/struct ck_interface **interface/struct ck_interface **interface_/' to the pkcs11.h file. Since it's just a declaration, the name of the argument doesn't really matter.

I still don't know why my simple example doesn't compile but I can compile fine using cmake.

patlefort commented on 2023-08-18 16:58 (UTC) (edited on 2023-08-18 17:51 (UTC) by patlefort)

I can't compile even a simple test program as such:

#include <p11-kit/p11-kit.h>

int main()
{
    CK_FUNCTION_LIST **flist = p11_kit_modules_load(NULL, P11_KIT_MODULE_UNMANAGED);
    p11_kit_modules_release(flist);
    return 0;
}

x86_64-w64-mingw32-gcc $(x86_64-w64-mingw32-pkg-config --cflags --libs p11-kit-1) -l:libp11-kit.dll.a test-p11-kit.c result in link errors:

/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld: /tmp/ccy52soV.o:test-p11-kit.c:(.text+0x18): undefined reference to `p11_kit_modules_load'
/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld: /tmp/ccy52soV.o:test-p11-kit.c:(.text+0x28): undefined reference to `p11_kit_modules_release'
collect2: error: ld returned 1 exit status

The same work fine using gcc natively. Using winedump, I can see the symbols being exported with winedump -j export /usr/x86_64-w64-mingw32/bin/libp11-kit-0.dll. Any idea what could be wrong?

epicalert commented on 2021-07-15 05:42 (UTC)

Build seems to fail without mingw-w64-gettext installed.

Martchus commented on 2019-10-24 15:23 (UTC)

Ah, seems like you've been updating the PKGBUILD yourself. You also tried with --default-library=both but it apparently has no effect (at least when I tried to build it). Can you keep the executables? And localization is possibly useful as well.

Martchus commented on 2019-10-24 15:20 (UTC)

The meson build script works for me: https://github.com/Martchus/PKGBUILDs/commit/d0f1be8378d43a20822d3e9e1c1992d8ebdd1d46

Unfortunately static libraries are still missing. These are apparently not supported by upstream (anymore).

Martchus commented on 2019-10-24 13:20 (UTC)

It is also bad that the static library is disabled. That prevents using static gnutls. (Static gmp is also missing, though.)

zebulon commented on 2019-10-15 16:31 (UTC)

I have the same issue than Martchus, and also a linking error for another package: mingw-w64-spirv-tools. This is very strange and possibly related.

Martchus commented on 2019-10-13 18:51 (UTC)

The latest version doesn't build (for me):

libtool: link: i686-w64-mingw32-gcc -shared  p11-kit/.libs/libp11_kit_la-proxy.o p11-kit/.libs/libp11_kit_la-proxy-init.o p11-kit/.libs/libp11_kit_la-rpc-server.o  -Wl,--whole-archive ./.libs/libp11-kit-internal.a ./.libs/libp11-common.a ./.libs/libp11-library.a -Wl,--no-whole-archive  -L/usr/i686-w64-mingw32/lib/../lib -lffi  -O2 -g -Wl,--version-script=../p11-kit/libp11-kit.map -Wl,-O1 -Wl,--sort-common -Wl,--as-needed   -o .libs/libp11-kit-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libp11-kit.dll.a
libtool: link: ( cd ".libs" && rm -f "libp11-kit.la" && ln -s "../libp11-kit.la" "libp11-kit.la" )
/bin/sh ./libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc  -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4  -g           -Wall -Wstrict-prototypes -Wmissing-declarations                -Wmissing-prototypes -Wnested-externs -Wpointer-arith           -Wdeclaration-after-statement -Wformat=2 -Winit-self
                -Waggregate-return -Wno-missing-format-attribute                -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef  -Wl,-O1,--sort-common,--as-needed  -o p11-kit/p11-kit.exe p11-kit/lists.o p11-kit/p11-kit.o  libp11-kit.la libp11-tool.la libp11-common.la
/bin/sh ./libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc  -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4  -g           -Wall -Wstrict-prototypes -Wmissing-declarations                -Wmissing-prototypes -Wnested-externs -Wpointer-arith           -Wdeclaration-after-statement -Wformat=2 -Winit-self
                -Waggregate-return -Wno-missing-format-attribute                -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef  -Wl,-O1,--sort-common,--as-needed  -o p11-kit/p11-kit-remote.exe p11-kit/remote.o  libp11-tool.la libp11-common.la libp11-kit.la
/bin/sh ./libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc -DP11_KIT_REMOTE=\"p11-kit-remote\" -DP11_SYSTEM_CONFIG_FILE=\""/usr/i686-w64-mingw32/etc/pkcs11/pkcs11.conf"\" -DP11_SYSTEM_CONFIG_MODULES=\""/usr/i686-w64-mingw32/etc/pkcs11/modules"\" -DP11_PACKAGE_CONFIG_MODULES=\""/usr/i686-w64-mingw32/share/p11-kit/modules"\" -DP11_USER_CONFIG_FILE=\""~/.config/pkcs11/pkcs11.conf"\" -DP11_USER_CONFIG_MODULES=\""~/.config/pkcs11/modules"\" -DP11_MODULE_PATH=\""/usr/i686-w64-mingw32/lib/pkcs11"\" -I/usr/i686-w64-mingw32/lib/libffi-3.2.1/include     -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4  -g              -Wall -Wstrict-prototypes -Wmissing-declarations             -Wmissing-prototypes -Wnested-externs -Wpointer-arith           -Wdeclaration-after-statement -Wformat=2 -Winit-self            -Waggregate-return -Wno-missing-format-attribute                -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef  -Wl,-O1,--sort-common,--as-needed  -o p11-kit/p11-kit-server.exe p11-kit/p11_kit_server-server.o  libp11-tool.la libp11-common.la libp11-kit.la
libtool: link: i686-w64-mingw32-gcc -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -g -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wdeclaration-after-statement -Wformat=2 -Winit-self -Waggregate-return -Wno-missing-format-attribute -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o p11-kit/.libs/p11-kit.exe p11-kit/lists.o p11-kit/p11-kit.o  ./.libs/libp11-kit.dll.a -L/usr/i686-w64-mingw32/lib/../lib -lffi ./.libs/libp11-tool.a ./.libs/libp11-common.a -L/usr/i686-w64-mingw32/lib
libtool: link: i686-w64-mingw32-gcc -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -g -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wdeclaration-after-statement -Wformat=2 -Winit-self -Waggregate-return -Wno-missing-format-attribute -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o p11-kit/.libs/p11-kit-remote.exe p11-kit/remote.o  ./.libs/libp11-tool.a ./.libs/libp11-common.a ./.libs/libp11-kit.dll.a -L/usr/i686-w64-mingw32/lib/../lib -lffi -L/usr/i686-w64-mingw32/lib
libtool: link: i686-w64-mingw32-gcc -DP11_KIT_REMOTE=\"p11-kit-remote\" -DP11_SYSTEM_CONFIG_FILE=\"/usr/i686-w64-mingw32/etc/pkcs11/pkcs11.conf\" -DP11_SYSTEM_CONFIG_MODULES=\"/usr/i686-w64-mingw32/etc/pkcs11/modules\" -DP11_PACKAGE_CONFIG_MODULES=\"/usr/i686-w64-mingw32/share/p11-kit/modules\" "-DP11_USER_CONFIG_FILE=\"~/.config/pkcs11/pkcs11.conf\"" "-DP11_USER_CONFIG_MODULES=\"~/.config/pkcs11/modules\"" -DP11_MODULE_PATH=\"/usr/i686-w64-mingw32/lib/pkcs11\" -I/usr/i686-w64-mingw32/lib/libffi-3.2.1/include -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4 -g -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wdeclaration-after-statement -Wformat=2 -Winit-self -Waggregate-return -Wno-missing-format-attribute -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o p11-kit/.libs/p11-kit-server.exe p11-kit/p11_kit_server-server.o  ./.libs/libp11-tool.a ./.libs/libp11-common.a ./.libs/libp11-kit.dll.a -L/usr/i686-w64-mingw32/lib/../lib -lffi -L/usr/i686-w64-mingw32/lib
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: p11-kit/remote.o: in function `main':
/build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:82: undefined reference to `p11_kit_be_loud'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:115: undefined reference to `p11_kit_module_load'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:120: undefined reference to `p11_kit_remote_serve_tokens'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:124: undefined reference to `p11_kit_module_release'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:136: undefined reference to `p11_kit_module_load'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:140: undefined reference to `p11_kit_remote_serve_module'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:142: undefined reference to `p11_kit_module_release'
/usr/lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld: /build/mingw-w64-p11-kit/src/p11-kit/build-i686-w64-mingw32/../p11-kit/remote.c:120: undefined reference to `p11_kit_remote_serve_tokens'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:3042: p11-kit/p11-kit-remote.exe] Error 1

Martchus commented on 2018-04-11 22:12 (UTC)

Make dependency git is missing.