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

Bug 890275

Summary: dev-libs/libatasmart-0.19_p5 warning: _FORTIFY_SOURCE redefined with gcc12 hardened _F_S=3
Product: Gentoo Linux Reporter: genBTC
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: egor-gl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 847148    
Attachments: libatasmart build.log

Description genBTC 2023-01-09 08:31:36 UTC
When using gentoo-hardened with the new  fortify-source-3.patch  built into Gcc-12.2.1_p20221231 ,
libatasmart package 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 somewhere and that flag should be stripped so _F_S=3 can take effect without conflict.


Reproducible: Always
Comment 1 genBTC 2023-01-09 08:33:12 UTC
Created attachment 848005 [details]
libatasmart build.log

warning: "_FORTIFY_SOURCE" redefined
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-02 08:10:31 UTC
hardened_tinderbox has reproduced this issue with version 0.19_p5 - Updating summary.