p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
150 stars 92 forks source link

On PPC Tiger, old Mac OS X 10.4.11, test target does not build with GCC 4.2 #649

Closed ballapete closed 1 month ago

ballapete commented 1 month ago

Hello!

Other compiler option would be GCC 7.5.

Version of p11-kit is 0.25.5.

The problem is that CK_ULONG and CK_SESSION_HANDLE get redefined. I prepared the attached patch set. With it applied the default and the test target build.

See also: https://trac.macports.org/ticket/70399.

--

Pete

Patches-for-test-target-on-Tiger.diff.zip

ballapete commented 1 month ago

The patches also work on PPC Leopard, Mac OS X 10.5.8. My test procedure was here also to invoke the port package manager with the argument test, then clean, and in the end build followed by test. So I could check that the target build succeeded and the target test could be reached directly and also via the build target.

ueno commented 1 month ago

Thank you for the report; it indeed looks like a bug. I've filed #653 to fix it.