-
Notifications
You must be signed in to change notification settings - Fork 826
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 building with GCC 14 #4456
Fix building with GCC 14 #4456
Conversation
That looks very similar to https://src.fedoraproject.org/rpms/mapnik/blob/rawhide/f/mapnik-gcc14.patch ;-) |
Indeed, it is basically the same, except that one source file has already had the patch applied and another source file has been renamed such that it cannot be applied directly as that patch is targeting Thanks for the help! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4456 +/- ##
==========================================
- Coverage 72.00% 72.00% -0.01%
==========================================
Files 524 524
Lines 33419 33418 -1
Branches 4145 4145
==========================================
- Hits 24065 24064 -1
Misses 9352 9352
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Unfortunately this patch needs more work as it is breaking Windows builds. |
I think you just need to add a connection_manager.cpp to postgis with template class MAPNIK_DECL singleton<ConnectionManager, CreateStatic>; However, for pgraster plugin it might get a bit weird, since it has been used header sources from the postgis plugin (which might be understandable, but isn't the greatest thing in terms of low coupling :D) |
Thanks for the suggestion @mathisloge, unfortunately I wasn't having much luck, especially since I don't have a Windows system at the ready to use for building this. Could you provide a little more detail? Thanks again! |
Alright @mathisloge, I have included a workaround to get Windows builds passing in addition to fixing GCC 14 builds. |
Co-authored-by: Tom Hughes <tom@compton.nu>
Fails to build with GCC 14.