[PATCH] tests: Fix undefined reference to 'pthread_create'

Clemens Lang cllang at redhat.com
Mon Feb 14 14:00:21 CET 2022


> On 14. Feb 2022, at 06:57, NIIBE Yutaka <gniibe at fsij.org> wrote:
> Could you please show us the build log (on that OS) for libgpg-error?

Please see https://gitlab.com/redhat-crypto/libgcrypt/libgcrypt-mirror/-/jobs/2067433059.

> When -lpthread is needed, GPG_ERROR_MT_LIBS should have that.
> (Or else, it may also fail in other places like compiling GnuPG.)
> For the build, libgcrypt depends on gpg-error.pc of libgpg-error, and
> uses GPG_ERROR_MT_CFLAGS and GPG_ERROR_MT_LIBS.  It is generated by the
> build of libgpg-error using Gnulib's M4 script m4/threadlib.m4.
> If something goes wrong, we need to fix libgpg-error.

I think the problem here is that this used libgpg-error 1.31, which does not ship a pkgconfig file.

What is the minimum version of libgpg-error required by libgcrypt?

Clemens Lang
RHEL Crypto Team
Red Hat

More information about the Gcrypt-devel mailing list