Bug report: p11-kit build failure on Solaris 11.4

Stef Walter swalter at redhat.com
Mon Nov 2 10:11:07 UTC 2020


Hi Sad Clouds,

Thanks for the email. I would suggest sending this email to the
p11-glue at lists.freedesktop.org mailing list, as described here:

https://p11-glue.github.io/p11-glue/p11-kit.html

Or you can file a issue or pull request in github:

https://github.com/p11-glue/p11-kit/issues

Cheers,

Stef

On Sun, Nov 1, 2020 at 4:16 PM Sad Clouds <cryintothebluesky at gmail.com>
wrote:

> There are some issues with -std=gnu99 in CFLAGS and defining
> _XOPEN_SOURCE macro
>
> This line needs removal in common/compat.c
>
> /*
>  * This is needed to expose pthread_mutexattr_settype and
> PTHREAD_MUTEX_DEFAULT
>  * on older pthreads implementations
>  */
> #define _XOPEN_SOURCE 700
>
> as it results in the following error:
>
>   CC       common/compat.lo
> In file included from /usr/include/sys/types.h:12,
>                  from common/compat.h:40,
>                  from common/compat.c:43:
> /opt/gcc-10.2.0-sparc64/lib/gcc/sparc64-sun-solaris2.11/10.2.0/include-fixed/sys/feature_tests.h:363:2:
> error: #error "Compiler or options invalid for pre-UNIX 03 X/Open
> applications  and pre-2001 POSIX applications"
>   363 | #error "Compiler or options invalid for pre-UNIX 03 X/Open
> applications \
>       |  ^~~~~
> *** [common/compat.lo] Error code 1
>
> bmake[2]: stopped in
> /opt/pkgbuild/objects/security/p11-kit/work/p11-kit-0.23.21
> 1 error
>
>

-- 
Stef Walter (he / his)
Linux Engineering
Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/p11-glue/attachments/20201102/c60d07bb/attachment.htm>


More information about the p11-glue mailing list