← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 2028276] [NEW] gcc linker error: undefined reference to `__security_cookie' when building with gcc 8.5.0 based MinGW-w64 release

 

Public bug reported:

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.

** Affects: dcplusplus
     Importance: Undecided
         Status: New

** Summary changed:

- gcc linker error: undefined reference to `__security_cookie' when building with gcc 8.5.0 basedMinGW-w64 release
+ gcc linker error: undefined reference to `__security_cookie' when building with gcc 8.5.0 based MinGW-w64 release

-- 
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



Follow ups