Closed greyltc closed 2 years ago
This is to do with a change in GCC 10 - there's a PR to fix it #33.
Which branch are you compiling?
For me, this was an issue on the gtk3
branch (which is the branch the PR is against).
Looks like you were using the most up-to-date branch. But i can't confirm this happening on CentOS6, CentOS7, RHEL8.
What operating system did you use?
I use Arch. It looks like all the distros you listed have older versions of GCC. Prior to GCC 10, this wasn't an issue. I linked the GCC 10 release notes on my PR - if you look for the notes on -fno-common
, you can see that the issue is a linker error exclusive to newer versions of GCC.
Thank you for clarification. Now I must check how to integrate gcc 10 in our build environment.
The proposed fix was incorporated into branch "gtk3_fixes" and will be published with GtkSheet v4.3.10
I have no possibility to test it, due to lack of gcc 10 in my build environment. Would be nice to get feedback.
Thanks for reporting.
@fpaquet thanks for fixing this! I can confirm it works in Arch Linux (with gcc (GCC) 11.2.0
) now.
To get this to build while trying to test testing this, I had to apply some new fixes I'll attach here in a patch
build_fix.patch.txt
Thank you for feedback.
Why did you remove the embedded stylesheet 'gtksheet.css' from meson.build compile_resources()?
I've incorporated your glade sheet editor fixes into branch gtk3_fixes, to be released soon.
Still curious, why you removed the embedded stylesheet 'gtksheet.css' from meson.build?
Thanks for reporting.
Why did you remove the embedded stylesheet 'gtksheet.css' from meson.build compile_resources()?
I'm not so sure if I did the right thing there. I can't remember the exact error that was coming up with that one, but I read the docs here for gnome.compile_resources()
and found the function call as it was didn't seem to adhere to the documentation, so I made the change and the build was then able to complete.
I'm building your latest tagged commit: https://github.com/fpaquet/gtksheet/commit/3d84430c1223b97edf2e1dff3767e2ab8ff585fb
But my build fails with the above. Any ideas?