Open anandht21 opened 3 years ago
not sure if i need to download/update other softwares..Please help
i had to install "cmake" . its a requirement to have curl and cmake.
now getting below after running ./bootstrap.sh Generated config.cache
Now type 'make' to build
gcc -MD -MP -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -c kafkacat.c -o kafkacat.o
gcc -MD -MP -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -c format.c -o format.o
gcc -MD -MP -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -c tools.c -o tools.o
gcc -MD -MP -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -c json.c -o json.o
gcc -MD -MP -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -c avro.c -o avro.o
Creating program kafkacat
gcc -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -I/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -L/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib -Wl,-rpath-link=/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib -L/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib -Wl,-rpath-link=/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib kafkacat.o format.o tools.o json.o avro.o -o kafkacat /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/librdkafka/mklove/deps/dest/libzstd/usr/lib/libzstd.a -L/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib -lm -lssl -lcrypto -lz -ldl -lpthread -lrt /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib/libavro.a /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib/libjansson.a -lcurl /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib/libserdes.a -Wl,-Bstatic -lavro -Wl,-Bdynamic -lyajl /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib/librdkafka.a /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/librdkafka/mklove/deps/dest/libzstd/usr/lib/libzstd.a -L/home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib -lm -lssl -lcrypto -lz -ldl -lpthread -lrt /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib/libavro.a /home/a486637/kafkacat/kafkacat-1.6.0/tmp-bootstrap/usr/lib/libjansson.a -lcurl
json.o: In function fmt_msg_output_json': /home/a486637/kafkacat/kafkacat-1.6.0/json.c:167: undefined reference to
yajl_gen_verbatim'
/home/a486637/kafkacat/kafkacat-1.6.0/json.c:136: undefined reference to `yajl_gen_verbatim'
collect2: error: ld returned 1 exit status
make: *** [kafkacat] Error 1
@anandht21 Hey, did you solve your problem? Now I have the same situation, can you give me some advice?
[root@vc2crtp1454794n kafkacat-1.6.0]# ./configure checking for OS or distribution... ok (redhatenterpriseserver) checking for C compiler from CC env... failed checking for gcc (by command)... ok checking executable ld... ok checking executable nm... ok checking executable objdump... ok checking executable strip... ok checking executable libtool... failed (disable) checking for pkgconfig (by command)... ok checking for install (by command)... ok checking for rdkafka (by pkg-config)... ok checking for librdkafka metadata API... ok checking for librdkafka KafkaConsumer support... ok checking for yajl (by pkg-config)... ok checking for avroc (by pkg-config)... failed checking for avroc (by compile)... failed (disable) Generated Makefile.config Generated config.h
Configuration summary: prefix /usr/local MKL_DISTRO redhatenterpriseserver SOLIB_EXT .so ARCH x86_64 CPU generic MKL_APP_NAME MKL_APP_DESC_ONELINE CC gcc LD ld NM nm OBJDUMP objdump STRIP strip CPPFLAGS -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align PKG_CONFIG pkg-config INSTALL install KAFKACAT_VERSION 1.6.0 CFLAGS LIBS -lyajl -lrdkafka MKL_DYNAMIC_LIBS -lyajl -lrdkafka exec_prefix /usr/local bindir /usr/local/bin sbindir /usr/local/sbin libexecdir /usr/local/libexec datadir /usr/local/share sysconfdir /usr/local/etc sharedstatedir /usr/local/com localstatedir /usr/local/var runstatedir /usr/local/var/run libdir /usr/local/lib includedir /usr/local/include infodir /usr/local/info mandir /usr/local/man BUILT_WITH JSON AVRO GCC PKGCONFIG INSTALL Generated config.cache
Now type 'make' to build [root@vc2crtp1454794n kafkacat-1.6.0]# make gcc -MD -MP -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -c kafkacat.c -o kafkacat.o gcc -MD -MP -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -c format.c -o format.o gcc -MD -MP -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -c tools.c -o tools.o gcc -MD -MP -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -c json.c -o json.o Creating program kafkacat gcc -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align kafkacat.o format.o tools.o json.o -o kafkacat -lyajl -lrdkafka kafkacat.o: In function
dr_msg_cb': /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:146: undefined reference to
rd_kafka_message_broker_id' kafkacat.o: In functionerror_cb': /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:1309: undefined reference to
rd_kafka_fatal_error' kafkacat.o: In functionconsume_cb': /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:554: undefined reference to
rd_kafka_message_errstr' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:559: undefined reference tord_kafka_message_errstr' kafkacat.o: In function
producer_run': /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:323: undefined reference tord_kafka_init_transactions' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:329: undefined reference to
rd_kafka_begin_transaction' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:465: undefined reference tord_kafka_abort_transaction' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:470: undefined reference to
rd_kafka_commit_transaction' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:478: undefined reference tord_kafka_error_string' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:331: undefined reference to
rd_kafka_error_string' /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:326: undefined reference tord_kafka_error_string' kafkacat.o: In function
metadata_list': /home/a486637/kafkacat/kafkacat-1.6.0/kafkacat.c:1009: undefined reference tord_kafka_controllerid' json.o: In function
fmt_msg_output_json': /home/a486637/kafkacat/kafkacat-1.6.0/json.c:81: undefined reference to `rd_kafka_message_broker_id' collect2: error: ld returned 1 exit status make: *** [kafkacat] Error 1 [root@vc2crtp1454794n kafkacat-1.6.0]#