Bug #44220
closedceph build error rgw_kafka.cc:365: undefined reference to rd_kafka_last_error
0%
Description
ceph build error
sys info:
/work/ceph/build$ uname -a
Linux db01-Latitude-7490 4.15.0-76-generic #86~16.04.1-Ubuntu SMP Mon Jan 20 11:02:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
ERROR:
[ 94%] Linking CXX executable ../../../bin/ceph-dencoder
[ 94%] Built target ceph_test_librgw_file_marker
[ 95%] Built target radosgw
[ 96%] Built target radosgwd
[100%] Built target unittest_librbd
../../../lib/librgw_a.a(rgw_kafka.cc.o): In function `rgw::kafka::create_connection(boost::intrusive_ptr<rgw::kafka::connection_t>&)':
/home/db01/work/ceph/src/rgw/rgw_kafka.cc:239: undefined reference to `rd_kafka_last_error'
/home/db01/work/ceph/src/rgw/rgw_kafka.cc:250: undefined reference to `rd_kafka_last_error'
../../../lib/librgw_a.a(rgw_kafka.cc.o): In function `rgw::kafka::connection_t::destroy(int)':
/home/db01/work/ceph/src/rgw/rgw_kafka.cc:89: undefined reference to `rd_kafka_flush'
../../../lib/librgw_a.a(rgw_kafka.cc.o): In function `rgw::kafka::Manager::publish_internal(rgw::kafka::message_wrapper_t*)':
/home/db01/work/ceph/src/rgw/rgw_kafka.cc:331: undefined reference to `rd_kafka_last_error'
/home/db01/work/ceph/src/rgw/rgw_kafka.cc:365: undefined reference to `rd_kafka_last_error'
collect2: error: ld returned 1 exit status
src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/build.make:292: recipe for target 'bin/ceph-dencoder' failed
make2: * [bin/ceph-dencoder] Error 1
CMakeFiles/Makefile2:7242: recipe for target 'src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/all' failed
make1: [src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: ** [all] Error 2
Updated by Swing Hu about 4 years ago
+ librdkafk verison below
librdkafka-0.9.5/
librdkafka-1.2.2/
all this two version build error
Updated by Yuval Lifshitz about 4 years ago
- Status changed from New to Won't Fix
kafka is not supported in ubuntu16.04 when standard version of librdkafka is used.
latest master (and nautilus) should fail cmake as it checks for the correct kafka version.
options are either to use newer version of ubuntu (e.g. 18.04) or build librdkafka 0.9.2 (and up) for your current OS.
Updated by Swing Hu about 4 years ago
Yuval Lifshitz wrote:
kafka is not supported in ubuntu16.04 when standard version of librdkafka is used.
latest master (and nautilus) should fail cmake as it checks for the correct kafka version.
options are either to use newer version of ubuntu (e.g. 18.04) or build librdkafka 0.9.2 (and up) for your current OS.
yep,firstly,thanks for your reply,after run uninstall librdkafka and install from source,the problem fixed
sudo apt install librdkafka-dev