Created attachment 895679 [details] build.log Hello, This build fail throwing this error. FAILED: src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/../common -O2 -pipe -march=broadwell -mtune=broadwell -fomit-frame-pointer -std=gnu99 -std=gnu99 -MD -MT src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o -MF src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o.d -o src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o -c /var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/tkogl.c /var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/tkogl.c: In function ‘OGLwinCmd’: /var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/tkogl.c:602:8: error: implicit declaration of function ‘TkWmAddToColormapWindows’ [-Wimplicit-function-declaration] Thanks, Regards, Petr Sourek
Created attachment 895680 [details] emerge --info '=sci-libs/cgnslib-4.4.0-r1::gentoo'
Created attachment 895681 [details] emerge -pqv '=sci-libs/cgnslib-4.4.0-r1::gentoo'
Created attachment 895682 [details] environment
I have found out, that there should be patch (https://patch-diff.githubusercontent.com/raw/CGNS/CGNS/pull/757.patch) for it. But then I am stuck on this error, which don't see the tkInt.h file in /usr/lib/tk8.6/include path. FAILED: src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/../common -O2 -pipe -march=broadwell -mtune=broadwell -fomit-frame-pointer -std=gnu99 -std=gnu99 -MD -MT src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o -MF src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o.d -o src/cgnstools/cgnsplot/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o -c /var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/tkogl.c /var/tmp/portage/sci-libs/cgnslib-4.4.0-r1/work/CGNS-4.4.0/src/cgnstools/tkogl/tkogl.c:28:10: fatal error: tk-private/generic/tkInt.h: No such file or directory 28 | #include <tk-private/generic/tkInt.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. TBH: Since I need my system to be repaired (some Qt related stuff and dependencies), I took the patch, changed the tk-private to path to my include dir and it works fine (attaching now), but maybee someone smarter should make it dynamic. Thanks, Regards, Petr Sourek
Created attachment 895952 [details, diff] fedoraGCCPatch, with hardcoded path to TK include paths
same as https://bugs.gentoo.org/933088 - it builds with gcc 13
(In reply to Petr Šourek from comment #5) > Created attachment 895952 [details, diff] [details, diff] > fedoraGCCPatch, with hardcoded path to TK include paths Patch works for me with one modification in case of my profile: the hardcoded path should contain lib64 instead of lib.
*** Bug 933088 has been marked as a duplicate of this bug. ***
I'll take a look.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9acc8d665d245b46d3c8c7e864337c2ee0f41351 commit 9acc8d665d245b46d3c8c7e864337c2ee0f41351 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-05 08:15:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-05 08:15:24 +0000 sci-libs/cgnslib: fix modern C issues Closes: https://bugs.gentoo.org/934122 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/cgnslib/cgnslib-4.4.0-r2.ebuild | 106 +++++++++++++++++++++++++ sci-libs/cgnslib/files/cgnslib-4.4.0-c99.patch | 55 +++++++++++++ 2 files changed, 161 insertions(+)