Skip to content

It's possible to compile the library under cygwin? #25

@zokusai

Description

@zokusai

Once the -Werror option was removed from Makefiles to avoid some warnings as errors (see below), when trying to compile the library under cygwin I obtain the following error:

$ make all
cc -MD -MP -O2 -Wall -Wfloat-equal -Wpointer-arith -fPIC -I. -g -Wno-gnu-designator -DSG -c rdkafka.c
rdkafka.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
rdkafka.c: In function 'rd_kafka_q_serve':
rdkafka.c:356:2: error: 'rd_kafka_op_t' has no member named 'tqh_first'
rdkafka.c:356:2: error: 'rko_link' undeclared (first use in this function)
rdkafka.c:356:2: note: each undeclared identifier is reported only once for each function it appears in
rdkafka.c:356:2: error: expected identifier before '&' token
rdkafka.c:356:2: warning: left-hand operand of comma expression has no effect [-Wunused-value]
rdkafka.c: In function 'rd_kafka_destroy':
rdkafka.c:518:2: error: 'rd_kafka_topic_t' has no member named 'tqh_first'
rdkafka.c:518:2: error: 'rkt_link' undeclared (first use in this function)
rdkafka.c:518:2: error: expected identifier before '&' token
rdkafka.c:518:2: warning: left-hand operand of comma expression has no effect [-Wunused-value]
rdkafka.c: At top level:
cc1: warning: unrecognized command line option "-Wno-gnu-designator" [enabled by default]
Makefile:39: recipe for target `rdkafka.o' failed
make: *** [rdkafka.o] Error 1

Tools version are:

  • CYGWIN_NT-6.1 1.7.25(0.270/5/3) i686 Cygwin
  • gcc (GCC) 4.7.3

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