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

Bug 934184

Summary: net-irc/epic5-2.0.1-r2 fails to compile: irc_std.h:398:8: error: redefinition of struct sockaddr_storage
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal CC: atoth
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-06-13 06:11:38 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-irc/epic5-2.0.1-r2 fails to compile.
Discovered on: amd64 (internal ref: gcc14_tinderbox)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-06-13 06:11:39 UTC
Created attachment 895729 [details]
build.log

build log and emerge --info
Comment 2 Attila Tóth 2024-06-19 12:20:17 UTC
configure checks struct sockaddr_storage in sys/socket.h, but this was moved to bits/socket.h, which is included in sys/socket.h. Configure greps in the file, so does not find the definition, therefore the source code redefines it. Unfortunately using bits/socket.h directly is discouraged and results in an error. Bypassing or workarounding this piece lets the code compile.
Upstream has a newer version and Debian also has 2.1.6 in Sid...