Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909080 - net-vpn/i2pd[i2p-hardening] warning: _FORTIFY_SOURCE redefined with gcc12 hardened _F_S=3
Summary: net-vpn/i2pd[i2p-hardening] warning: _FORTIFY_SOURCE redefined with gcc12 har...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Alexey Korepanov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-24 14:12 UTC by genBTC
Modified: 2023-06-25 22:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
i2pd build.log (i2pd-build2.log,131.72 KB, text/x-log)
2023-06-24 14:13 UTC, genBTC
Details

Note You need to log in before you can comment on or make changes to this bug.
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