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

Bug 879715

Summary: net-analyzer/net-snmp: possible configure breakage with Clang 16
Product: Gentoo Linux Reporter: Matt Jolly <kangie>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://github.com/net-snmp/net-snmp/pull/480
https://bugs.gentoo.org/show_bug.cgi?id=899928
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906027    
Attachments: clang-14.log
clang-15.log
clang.diff

Description Matt Jolly gentoo-dev 2022-11-04 22:12:21 UTC
This package has been identified via automation as potentially impacted by upcoming Clang 16 changes.
The following have been identified as potential issues:

[-Werror,-Wimplicit-function-declaration]

[-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'ioctlsocket'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'statfs'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'sysctl'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Comment 1 Matt Jolly gentoo-dev 2022-11-04 22:12:24 UTC
Created attachment 827393 [details]
clang-14.log

build log
Comment 2 Matt Jolly gentoo-dev 2022-11-04 22:12:26 UTC
Created attachment 827395 [details]
clang-15.log

build log
Comment 3 Matt Jolly gentoo-dev 2022-11-04 22:12:27 UTC
Created attachment 827397 [details]
clang.diff

build log
Comment 4 Larry the Git Cow gentoo-dev 2022-11-19 19:36:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be240aefac66f023742421eba6775a8f106a19ab

commit be240aefac66f023742421eba6775a8f106a19ab
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-19 19:29:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-19 19:29:23 +0000

    net-analyzer/net-snmp: fix configure w/ clang 16
    
    Closes: https://bugs.gentoo.org/879715
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/net-snmp-5.9.3-configure-clang16.patch   | 160 +++++++++++++++++++++
 ...-snmp-5.9.3.ebuild => net-snmp-5.9.3-r1.ebuild} |   1 +
 2 files changed, 161 insertions(+)