[09:24:34] <eMTee> https://sourceforge.net/p/mingw-w64/mailman/message/36804945/ "* __FORTIFY_SOURCE support " [09:40:16] <eMTee> https://github.com/StephanTLavavej/mingw-distro/issues/71 , https://github.com/msys2/MINGW-packages/issues/5803 [11:39:11] <eMTee> meh, it's not because of these. I tried '-fstack-check=no', '-fno-stack-check', '-fno-stack-protector', '-fno-stack-clash-protection', '-D_FORTIFY_SOURCE=0' , still errors
[14:16:20] <eMTee> managed to compile it by adding 'BufferOverflowU' lib from the SDK. Altough some fix it by using dummy defines like https://github.com/kfrlib/fft-benchmark/blob/master/mingw_fix.h I tried extern "C" { int __security_cookie; } with no luck, not sure if I added it to the proper place though. [14:17:37] <eMTee> I still want to know what option to disable or what was enabled vs. the old 8.1 build we've been using but I'm at a loss how to find it out what it is. [14:18:39] <eMTee> Nevertheless these checks should make the app more safe, not sure to what extent though since it's a 20 year old technology/practice. Will try a similar winlibs built compiler which reportedly don't exhibit this issue with its defaults. ** Bug watch added: github.com/StephanTLavavej/mingw-distro/issues #71 https://github.com/StephanTLavavej/mingw-distro/issues/71 ** Bug watch added: github.com/msys2/MINGW-packages/issues #5803 https://github.com/msys2/MINGW-packages/issues/5803 -- 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