-
Notifications
You must be signed in to change notification settings - Fork 877
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
libevent build failures with -std=c99 #3812
Comments
Might be interesting to check their 2.1 release and see if it is fixed there |
Well, v2.1.8 certainly doesn't build by default:
Turns out the definition of
|
We're not going to make libevent C99 compliant. Closing as "wontfix". |
I am getting the same problem with version 4.0.0 after I upgraded to the latest gcc. Do you have any immediate solutions? |
If this is happening to you in v4.0.x, please open a new issue with all the relevant details (logs, etc.). Thanks! |
As was noted in issue #17, Linux does not define
NSIG
unless_USE_MISC
is defined.For this reason, configuration with
CC="gcc -std=c99"
fails when building libevent becauseNSIG
is undefined in strict C99 mode:Something as simple as the following somewhere in libevent (event-internal.h?) might be sufficient:
However, that alone is not sufficient since there are other things that are outside of strict C99:
That, at least, is POSIX rather than "MISC".
So, it may be a good idea to document that the embedded libevent is not compatible with (at least) Linux glibc in strict C99 mode.
The text was updated successfully, but these errors were encountered: