[2023-07-23 10:12] <eMTee> So a gcc 11.2 based official MinGW-w64 compiler gives the same linker errors for HTMLHelp. [2023-07-23 10:35] <eMTee> And so does winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2.7z... [2023-07-23 12:30] <eMTee> winlibs-x86_64-posix-seh-gcc-9.3.1-snapshot20210402-mingw-w64-8.0.0-r1.7z also does it whereas winlibs-x86_64-posix-seh-gcc-9.3.0-llvm-10.0.0-mingw-w64-7.0.0-r4.7z doesn't so apparently it happens on MinGW-W64 crt V8.0+ regardless the compiler version. [2023-07-23 12:33] <eMTee> Since I can't find any obvious changelog item or control option of what causes it I guess it is best to detect and link this additional lib from now.
-- You received this bug notification because you are a member of Dcplusplus-team, which is subscribed to DC++. https://bugs.launchpad.net/bugs/2028276 Title: gcc linker error: undefined reference to `__security_cookie' when building with gcc 8.5.0 based MinGW-w64 release Status in DC++: New Bug description: Trying to build DC++ with https://github.com/niXman/mingw-builds- binaries/releases/tag/8.5.0-rt_v10-rev0 , win32, seh. Got multiple " undefined reference to `__security_cookie'" errors when linking the HTMLHelp lib. This is a new issue, does not happen with a gcc 8.1 based compiler. https://stackoverflow.com/questions/21627607/gcc-linker-error- undefined-reference-to-security-cookie probably tells the cause (link to MS docs is broken, originally <https://web.archive.org/web/20070121194753/http://support.microsoft.com/?id=894573>) It says you either need to link bufferoverflowU.lib or build without the /GS switch. <https://stackoverflow.com/questions/57361083/gcc-equivalent-of-gs-gl- gy-oi-md-in-msvc> says "/GS is roughly equivalent to -fstack- protector-strong -fstack-clash-protection -D_FORTIFY_SOURCE=2. It also requires optimization (e.g., -O2 or -O3)" yet the error still happens even when building debug in which case all optimizations should be disabled. To manage notifications about this bug go to: https://bugs.launchpad.net/dcplusplus/+bug/2028276/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~linuxdcpp-team Post to : linuxdcpp-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~linuxdcpp-team More help : https://help.launchpad.net/ListHelp