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

Clang fixes #2905

Closed
wants to merge 2 commits into from
Closed

Clang fixes #2905

wants to merge 2 commits into from

Conversation

Aatch
Copy link
Contributor

@Aatch Aatch commented Jun 11, 2014

A couple fixes for compilation errors I found using clang.

The strange check for this has been broken since October last year, it seems
when the callback type was changed to take a `const char*` instead of `char*`.

This probably works ok in GCC, but fails in clang because it doesn't coerce
the `char*` to `const char*`.
For some reason this causes clang to be unable to find various standard
headers.
@kristapsk
Copy link
Contributor

Your changes with Dwarf will break compiling with libdwarf 20130729 and later versions, I think. Also, I'm pretty sure, I have been able to successfully compile using Clang with this LIBDWARF_CALLBACK_NAME_TYPE. But I can test that later. See also #1490.

@Aatch
Copy link
Contributor Author

Aatch commented Jun 11, 2014

@kristapsk I'm using libdwarf from April 2014. The change was made in October last year, which I mention in my commit message.

@Aatch
Copy link
Contributor Author

Aatch commented Jun 12, 2014

Ok, the dwarf error happens on GCC as well.

@Aatch Aatch closed this Jun 12, 2014
@kristapsk
Copy link
Contributor

My mistake - your changes would actually break compiling with libdwarf older than 20130729. :) That change in October was made to support both 20120410 and 20130729, where incompatible changes were introduced (see http://www.prevanders.net/dwarf.html#const).

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.

3 participants