Skip to content

C11 thread check is not working with glibc 2.28 #2220

Closed
@Oxymoron79

Description

@Oxymoron79

Description

Glibc version 2.28 added support for C11 threads (see the release notes: https://www.sourceware.org/ml/libc-alpha/2018-08/msg00003.html).

But the check for C11 threads in configure.librdkafka (https://github.com/edenhill/librdkafka/blob/master/configure.librdkafka#L46) does not seem to
detect the C11 threads support on systems using glibc >= 2.28, because the link option
-lpthread is not used for the check.

I suspect that this leads to similar problems as #1998.

How to reproduce

On a system with glibc >= 2.28 (e.g. Arch Linux):

./configure
cat config.h | grep WITH_C11THREADS

WITH_C11THREADS is not defined in config.h, which leads to tinycthread being compiled without C11 thread support.

Checklist

Please provide the following information:

  • librdkafka version (release number or git tag): v0.11.1
  • Operating system: Arch Linux (x86_64)
  • Critical issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions