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

Fix to compilation and warnings on ubuntu 18.04 #132

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

achreto
Copy link

@achreto achreto commented Jul 2, 2018

5965bb0: hash define of errno in the header errno.h causes linking errors.
ef9c2a8: squash compiler warning
be214fc: adding missing ; that prevented the grammar to be compiled.

This is caused by functions in gm_error.cc using 'int errno' as
function parameter, while the header defines the parameter as
'int errnumber'. This is a problem, as errno.h is included which
defines errno to be:

 #define errno (*__errno_location ())

which effectively changes the function parameter in the gm_error.cc
file to take a function pointer as the first argument and therefore
the other code doesn't find the symbols.

Signed-off-by: Reto Achermann <rachermann@vmware.com>
Signed-off-by: Reto Achermann <rachermann@vmware.com>
Signed-off-by: Reto Achermann <rachermann@vmware.com>
Signed-off-by: Reto Achermann <rachermann@vmware.com>
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

Successfully merging this pull request may close these issues.

1 participant