-
Notifications
You must be signed in to change notification settings - Fork 353
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
Rename generated version header to avoid conflict on case insensitive filesystems #1927
Conversation
ccb2210
to
b682ea0
Compare
How can there be a conflict? These are in different directories, and libmpdclient's version.h isn't even in the search path - it's below "mpd/". |
This is the error I'm seeing after the updates to master this morning
|
… filesystems On macOS the compiler was not correctly choosing between the Version.h header from MPD or the version.h header in mpdclient.
Okay, I see, that's because libmpdclient is not installed, so version.h is not in the same directory as client.h, and your compiler flags happen to be in this order. But there must be a better way to fix this; your solution is too fragile, it just makes the symptom go away, but doesn't really solve the general problem. |
This fixes a "version.h" conflict when used as a Meson subproject: when the parent project also generates a "version.h", it is not clear which one will be included. We solve this by requiring the "mpd/" prefix for libmpdclient. See MusicPlayerDaemon/MPD#1927
I implemented a better solution which avoids the conflict completely instead of sidestepping it with a different filename. |
Hmm, just checked out master and I'm still running into the import conflict 🤔 |
Is there a version.h leftover from the previous build? Did you rebuild from scratch? |
I deleted the output folder and ran from scratch, yeah. Updated to the latest master again and now it seems that id3 is mad too
|
Ah, yeah definitely the same include path leaking issue there too |
Going to try to be more explicit with that include_directories export and see if that fixes the id3 issue |
Not sure where the i3dtag wrap file comes from but this does the trick, and lets me build the whole project.
|
On macOS the compiler was not correctly choosing between the Version.h header from MPD or the version.h header in mpdclient.