Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during make examples #26

Closed
jrupp opened this issue Nov 13, 2013 · 1 comment
Closed

Error during make examples #26

jrupp opened this issue Nov 13, 2013 · 1 comment

Comments

@jrupp
Copy link

jrupp commented Nov 13, 2013

During a "make" or "make examples", I get the following compiler error:

#
# More usage options:
./rdkafka_example --help
cc1: warnings being treated as errors
rdkafka_performance.c: In function ‘main’:
rdkafka_performance.c:640: error: ‘rkmessages’ may be used uninitialized in this function
make[1]: *** [rdkafka_performance] Error 1
make[1]: Leaving directory `/tmp/librdkafka-master/examples'
make: *** [examples] Error 2

Changing line 640 of rdkafka_performance.c to the following fixes my problem:

                rd_kafka_message_t **rkmessages=NULL;

Information about my system if it helps you:

$ cat /etc/redhat-release 
CentOS release 6.4 (Final)
$ uname -a
Linux XXXXXXXX 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ cc --version
cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
$ make --version
GNU Make 3.81
@edenhill
Copy link
Contributor

Thanks for reporting this!

Fix is available in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants