These are chat archives for arnaud-lb/php-rdkafka

7th
Feb 2017
Eliurkis
@eliurkis_twitter
Feb 07 2017 17:13
People, I am trying to do:
sudo pecl install channel://pecl.php.net/rdkafka
But I am getting a bunch of errors like:
/tmp/pear/install/rdkafka/rdkafka.c:662:19: note: each undeclared identifier is reported only once for each function it appears in
     COPY_CONSTANT(RD_KAFKA_RESP_ERR__ISR_INSUFF);
                   ^
/usr/include/php/20151012/Zend/zend_constants.h:42:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
                                                                                                         ^
/tmp/pear/install/rdkafka/rdkafka.c:662:5: note: in expansion of macro ‘COPY_CONSTANT’
     COPY_CONSTANT(RD_KAFKA_RESP_ERR__ISR_INSUFF);
     ^
make: *** [rdkafka.lo] Error 1
ERROR: `make' failed
Magnus Edenhill
@edenhill
Feb 07 2017 17:16
@eliurkis_twitter Is your librdkafka version too old perhaps?
Eliurkis
@eliurkis_twitter
Feb 07 2017 17:17
@edenhill
vagrant@homestead:~/php-rdkafka$ sudo apt-get install librdkafka1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
librdkafka1 is already the newest version.
Look like it's up-to-date
Eliurkis
@eliurkis_twitter
Feb 07 2017 17:52
Any idea?
Magnus Edenhill
@edenhill
Feb 07 2017 19:49
what version is that?
Eliurkis
@eliurkis_twitter
Feb 07 2017 19:49
vagrant@homestead:~/php-rdkafka$ sudo apt-cache policy librdkafka1
librdkafka1:
  Installed: 0.8.3-1ubuntu2
  Candidate: 0.8.3-1ubuntu2
  Version table:
 *** 0.8.3-1ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status
@edenhill
Magnus Edenhill
@edenhill
Feb 07 2017 19:50
whoa, that's very old
Eliurkis
@eliurkis_twitter
Feb 07 2017 19:50
It's the one that have Ubuntu on the repo
Magnus Edenhill
@edenhill
Feb 07 2017 19:51
You want 0.9.1 or later (0.9.3 was just pushed to latest ubuntu)
it should be safer than adding a newer ubuntu repo
Eliurkis
@eliurkis_twitter
Feb 07 2017 20:01
@edenhill Awesome! It's working. Thank you so much!