Skip to content

Can't compile with C only toolchain. #4364

@ThomasDevoogdt

Description

Description

Fluent-bit is a C-only lib, but requries still a C++ compiler to get compiled. Librdkafka used to be a C library, but requries C++ to get compiled with CMake.

For what I can see:

  • No cmake language specifier.

project(RdKafka VERSION ${RDKAFKA_VERSION})

  • Unconditional include of both sub-projects.

librdkafka/CMakeLists.txt

Lines 281 to 282 in efc65e7

add_subdirectory(src)
add_subdirectory(src-cpp)

See:

How to reproduce

See:

Checklist

Please provide the following information:

  • librdkafka version (release number or git tag): v2.1.0 (fluent/fluent-bit@1cda073)
  • Apache Kafka version: <REPLACE with e.g., 0.10.2.3>
  • librdkafka client configuration: <REPLACE with e.g., message.timeout.ms=123, auto.reset.offset=earliest, ..>
  • Operating system: <REPLACE with e.g., Centos 5 (x64)>
  • Provide logs (with debug=.. as necessary) from librdkafka
  • Provide broker log excerpts
  • 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