Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879735 - net-libs/netwib: possible configure breakage with Clang 16
Summary: net-libs/netwib: possible configure breakage with Clang 16
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 906027
  Show dependency tree
 
Reported: 2022-11-04 22:13 UTC by Matt Jolly
Modified: 2023-05-09 13:16 UTC (History)
1 user (show)

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


Attachments
clang-14.log (clang-14.log,33.88 KB, text/plain)
2022-11-04 22:13 UTC, Matt Jolly
Details
clang-15.log (clang-15.log,33.23 KB, text/plain)
2022-11-04 22:13 UTC, Matt Jolly
Details
clang.diff (clang.diff,8.11 KB, text/plain)
2022-11-04 22:13 UTC, Matt Jolly
Details

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