Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 909080

Summary: net-vpn/i2pd[i2p-hardening] warning: _FORTIFY_SOURCE redefined with gcc12 hardened _F_S=3
Product: Gentoo Linux Reporter: genBTC
Component: Current packagesAssignee: Alexey Korepanov <kaikaikai>
Status: UNCONFIRMED ---    
Severity: normal CC: klondike, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: i2pd build.log

Description genBTC 2023-06-24 14:12:13 UTC
When using gentoo-hardened with the new  fortify-source-3.patch  built into gcc-12.2.1_p20230428-r1 ,
net-vpn/i2pd package with the i2p-hardening USE flag enabled:
results in a warning about a definition redefined collision.

<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition

Meaning the package has _F_S=2 hardcoded internally:
 @ CMakeLists.txt line 134 : add_definitions("-D_FORTIFY_SOURCE=2")
 @  & build.ninja (generated command)
that flag should be stripped so _F_S=3 can take effect from the gcc spec profile without conflict.
Comment 1 genBTC 2023-06-24 14:13:48 UTC
Created attachment 864560 [details]
i2pd build.log

FORTIFY_SOURCE redefined