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

Bug 879735

Summary: net-libs/netwib: 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: treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
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:13:36 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]
[-Wint-conversion]

[-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'getipnodebyaddr'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'getipnodebyname'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'pthread_delay_np'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]

[-Wint-conversion]
error: incompatible pointer to integer conversion passing 'void *' to parameter of type '__gid_t' (aka 'unsigned int') [-Wint-conversion]
Comment 1 Matt Jolly gentoo-dev 2022-11-04 22:13:39 UTC
Created attachment 827453 [details]
clang-14.log

build log
Comment 2 Matt Jolly gentoo-dev 2022-11-04 22:13:43 UTC
Created attachment 827455 [details]
clang-15.log

build log
Comment 3 Matt Jolly gentoo-dev 2022-11-04 22:13:46 UTC
Created attachment 827457 [details]
clang.diff

build log
Comment 4 Larry the Git Cow gentoo-dev 2023-03-18 21:23:05 UTC
The bug has been closed via the following commit(s):

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

commit 686d9515136b4e06bcd234438ec28aa2ffafc866
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-18 21:22:44 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-18 21:22:44 +0000

    net-libs/netwib: fix build with clang 16
    
    Closes: https://bugs.gentoo.org/710626
    Closes: https://bugs.gentoo.org/828721
    Closes: https://bugs.gentoo.org/879735
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../netwib/files/netwib-5.39.0-C99-decls.patch     | 19 +++++
 net-libs/netwib/files/netwib-5.39.0-config.patch   | 35 +++++++++
 .../netwib/files/netwib-5.39.0-sched_yield.patch   | 85 ++++++++++++++++++++++
 net-libs/netwib/netwib-5.39.0-r1.ebuild            | 56 ++++++++++++++
 net-libs/netwib/netwib-5.39.0.ebuild               | 61 ----------------
 5 files changed, 195 insertions(+), 61 deletions(-)