Hi! We have a very old but working webkit-gtk port in pkgsrc, but it's for version 2.36.8.
Over the years there have been a couple tries to get it updated to the latest version, but they failed. So now I'm trying to find some help here. We're currently targeting 2.50.4. The state of the package is here: https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=tree;f=webkit-gtk;h=18feb7e830324d6dc9b74d4a6f398651e882d382;hb=HEAD The Makefile https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=blob;f=webkit-gtk/Makefile;h=3a4c9607b4631bd9f562b918a2a80f0bbfe60bee;hb=HEAD contains the settings for cmake and the installed dependencies (at the bottom). We have a number of patches: https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=tree;f=webkit-gtk/patches;h=ad5c42f21ed5f6a430a87084acf98d6fcb7b2162;hb=HEAD Most of them just add the NetBSD case to existing code, the others are documented at the top of the files. (Merging these would be nice too, but perhaps after we get it to work.) The latest build problem is a core dump when generating the introspection files. [4/28] Generate bindings (WebCoreTestSupportBindings) ... Command '['/tmp/wip/webkit-gtk/work/webkitgtk-2.50.4/tmp-introspecttz1ub1ts/WebKit2WebExtension-4.1', '--introspect-dump=/tmp/wip/webkit-gtk/work/webkitgtk-2.50.4/tmp-introspecttz1ub1ts/functions.txt,/tmp/wip/webkit-gtk/work/webkitgtk-2.50.4/tmp-introspecttz1ub1ts/dump.xml']' died with <Signals.SIGSEGV: 11>. I see core dumps, but they do not help much because the binary is not there after the build, and I can't build with debugging symbols: When I try adding '-g' to the CFLAGS/CXXFLAGS, I get a linker error: FAILED: [code=1] lib/libwebkit2gtk-4.1.so.0.19.7 : && /tmp/wip/webkit-gtk/work/.cwrapper/bin/c++ -fPIC -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-subobject-linkage -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -O2 -Wno-unused-parameter -Wno-undef -g -DRELEASE_WITHOUT_OPTIMIZATIONS -fstack-clash-protection -I/usr/include -I/usr/pkg/include/python3.14 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/gstreamer-1.0 -I/usr/pkg/include/libxml2 -I/usr/pkg/include/libdrm -I/usr/pkg/include/gstreamer-1.0 -Wno-unused-parameter -Wno-undef -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=512 -DSTRUCTURE_HEAP_ADDRESS_SIZE_IN_MB=256 -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections-fdata-sections -DNDEBUG -shared -Wl,--no-undefined -lexecinfo -Wl,-zrelro -Wl,-znow -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -latomic -Wl,--gc-sections -Wl,--disable-new-dtags -Wl,--version-script,/tmp/wip/webkit-gtk/work/webkitgtk-2.50.4/Source/WebKit/webkitglib-symbols.map -Wl,-R/usr/pkg/lib -Wl,--dependency-file=Source/WebKit/CMakeFiles/WebKit.dir/link.d -Wl,-soname,libwebkit2gtk-4.1.so.0 -o lib/libwebkit2gtk-4.1.so.0.19.7 @CMakeFiles/WebKit.rsp && : /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(usenglish.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_loc+0x6f6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_loc+0x720): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_loc+0x74a): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_f0_model.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_ffeatures.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_text.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_expand.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_usenglish.a(us_aswd.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_cmulex.a(cmu_lex.o):(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 against `.debug_info' /tmp/wip/webkit-gtk/work/.buildlink/lib/libflite_cmulex.a(cmu_postlex.o):(.debug_aranges+0x6): additional relocation overflows omitted from the output ninja: build stopped: subcommand failed. *** Error code 1 I guess because the files get too big. Do you have some advice how to debug this? Thank you, Thomas
