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

compile error with libevent 2.0.10 #8

Closed
bjin opened this issue Feb 16, 2011 · 3 comments
Closed

compile error with libevent 2.0.10 #8

bjin opened this issue Feb 16, 2011 · 3 comments

Comments

@bjin
Copy link
Contributor

bjin commented Feb 16, 2011

direct access to buffer in "struct evbuffer" is forbidden in newer version of libevent(2.0.10):
clang -g -O2 -std=gnu99 -Wall -c -o redsocks.o redsocks.c
redsocks.c:185:69: error: incomplete definition of type 'struct evbuffer'
log_vwrite(file, line, func, do_errno, priority, (const char)fmt->buffer, ap);
~~~^
In file included from redsocks.c:29:
In file included from /usr/include/event.h:194:
/usr/include/event2/buffer.h:78:8: note: forward declaration of 'struct evbuffer'
struct evbuffer;
^
1 error generated.
make: *_* [redsocks.o] Error 1

i guess evbuffer is not the best choice as variable length buffer of printf.

@darkk
Copy link
Owner

darkk commented Feb 16, 2011

Thank you. What linux distro is using libevent-2.0.10? gentoo — one the kings of bleeding edge — has it hardmasked.

@bjin
Copy link
Contributor Author

bjin commented Feb 16, 2011

I'm using archlinux now

@bjin
Copy link
Contributor Author

bjin commented Feb 18, 2011

#10

This issue was closed.
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