Guest User

rdkafka error

a guest
Oct 31st, 2017
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In file included from /root/php-rdkafka/rdkafka.c:33:0:
  2. /root/php-rdkafka/metadata.h:20:1: error: unknown type name 'rd_kafka_metadata_t'
  3. void kafka_metadata_init(zval *return_value, const rd_kafka_metadata_t *metadata TSRMLS_DC);
  4. ^
  5. In file included from /root/php-rdkafka/rdkafka.c:36:0:
  6. /root/php-rdkafka/queue.h:23:5: error: unknown type name 'rd_kafka_queue_t'
  7. rd_kafka_queue_t *rkqu;
  8. ^
  9. /root/php-rdkafka/rdkafka.c:59:1: warning: useless storage class specifier in empty declaration [enabled by default]
  10. };
  11. ^
  12. /root/php-rdkafka/rdkafka.c: In function 'zim_RdKafka__Kafka_getMetadata':
  13. /root/php-rdkafka/rdkafka.c:313:5: error: unknown type name 'rd_kafka_metadata_t'
  14. const rd_kafka_metadata_t *metadata;
  15. ^
  16. /root/php-rdkafka/rdkafka.c: In function 'zim_RdKafka__Kafka_newQueue':
  17. /root/php-rdkafka/rdkafka.c:376:5: error: unknown type name 'rd_kafka_queue_t'
  18. rd_kafka_queue_t *rkqu;
  19. ^
  20. /root/php-rdkafka/rdkafka.c:389:10: warning: assignment makes pointer from integer without a cast [enabled by default]
  21. rkqu = rd_kafka_queue_new(intern->rk);
  22. ^
  23. In file included from /usr/include/php/20160303/main/php.h:414:0,
  24. from /root/php-rdkafka/rdkafka.c:25:
  25. /root/php-rdkafka/rdkafka.c: In function 'register_err_constants':
  26. /root/php-rdkafka/rdkafka.c:676:19: error: 'RD_KAFKA_RESP_ERR__ISR_INSUFF' undeclared (first use in this function)
  27. COPY_CONSTANT(RD_KAFKA_RESP_ERR__ISR_INSUFF);
  28. ^
  29. /usr/include/php/20160303/Zend/zend_constants.h:42:105: note: in definition of macro 'REGISTER_LONG_CONSTANT'
  30. #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
  31. ^
  32. /root/php-rdkafka/rdkafka.c:676:5: note: in expansion of macro 'COPY_CONSTANT'
  33. COPY_CONSTANT(RD_KAFKA_RESP_ERR__ISR_INSUFF);
  34. ^
  35. /root/php-rdkafka/rdkafka.c:676:19: note: each undeclared identifier is reported only once for each function it appears in
  36. COPY_CONSTANT(RD_KAFKA_RESP_ERR__ISR_INSUFF);
  37. ^
  38. /usr/include/php/20160303/Zend/zend_constants.h:42:105: note: in definition of macro 'REGISTER_LONG_CONSTANT'
  39. #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
  40. ^
  41. /root/php-rdkafka/rdkafka.c:676:5: note: in expansion of macro 'COPY_CONSTANT'
  42. COPY_CONSTANT(RD_KAFKA_RESP_ERR__ISR_INSUFF);
  43. ^
  44. make: *** [rdkafka.lo] Error 1
RAW Paste Data