Skip to content

Alien-Librdkafka dependency needs bumping to 0.11.6 or later for header support #52

@allsopp

Description

@allsopp

As mentioned in this comment, PR #48 introduced header support but didn't bump Alien-Librdkafka to a version with header support, i.e. v0.11.6 or later. Building this distribution against the older Alien-Librdkafka-0.9.3 causes compiler errors:

cc -c  -I/home/oallsopp/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/auto/share/dist/Alien-Librdkafka/include -I/home/oallsopp/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/auto/share/dist/Alien-Librdkafka/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC "-I/home/oallsopp/perl5/perlbrew/perls/perl-5.36.0/lib/5.36.0/x86_64-linux/CORE"   Rdkafka.c
Rdkafka.xs: In function ‘XS_Kafka__Librd__Message_headers’:
Rdkafka.xs:432:9: error: unknown type name ‘rd_kafka_headers_t’; did you mean ‘rd_kafka_event_t’?
  432 |         rd_kafka_headers_t *hdrs;
      |         ^~~~~~~~~~~~~~~~~~
      |         rd_kafka_event_t
Rdkafka.xs:441:15: warning: implicit declaration of function ‘rd_kafka_message_headers’; did you mean ‘rd_kafka_message_errstr’? [-Wimplicit-function-declaration]
  441 |         err = rd_kafka_message_headers(msg, &hdrs);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~
      |               rd_kafka_message_errstr
Rdkafka.xs:444:23: warning: implicit declaration of function ‘rd_kafka_header_get_all’ [-Wimplicit-function-declaration]
  444 |                 err = rd_kafka_header_get_all(hdrs, i, &name, &value, &len);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~
Rdkafka.xs:445:28: error: ‘RD_KAFKA_RESP_ERR__NOENT’ undeclared (first use in this function); did you mean ‘RD_KAFKA_RESP_ERR__END’?
  445 |                 if (err == RD_KAFKA_RESP_ERR__NOENT)
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~
      |                            RD_KAFKA_RESP_ERR__END
Rdkafka.xs:445:28: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:354: Rdkafka.o] Error 1

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