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

Bug 879719

Summary: net-analyzer/yersinia: 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    
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:12: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]
[-Werror,-Wimplicit-int]

[-Werror,-Wimplicit-function-declaration]
error: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]

[-Werror,-Wimplicit-int]
error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
Comment 1 Matt Jolly gentoo-dev 2022-11-04 22:12:37 UTC
Created attachment 827405 [details]
clang-14.log

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

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

build log
Comment 4 Larry the Git Cow gentoo-dev 2022-11-16 23:18:26 UTC
The bug has been closed via the following commit(s):

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

commit 39a47ae3a6b29144a075dc7d92db224011e31457
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-16 23:16:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-16 23:16:45 +0000

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

 .../files/yersinia-0.8.2-configure-clang16.patch   | 53 +++++++++++++++++++
 ...sinia-0.8.2.ebuild => yersinia-0.8.2-r1.ebuild} | 20 ++++----
 net-analyzer/yersinia/yersinia-9999.ebuild         | 59 ----------------------
 3 files changed, 64 insertions(+), 68 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-11-19 19:04:36 UTC
The bug has been referenced in the following commit(s):

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

commit dd41c7d4ea9b7a5e325fcebd493cbab7370a9915
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-19 18:45:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-19 19:04:25 +0000

    net-analyzer/yersinia: further Clang 16 fixes
    
    Bug: https://bugs.gentoo.org/879719
    Signed-off-by: Sam James <sam@gentoo.org>

 .../yersinia-0.8.2-configure-clang16-deux.patch    | 36 ++++++++++++++++++++++
 ...ia-0.8.2-r1.ebuild => yersinia-0.8.2-r2.ebuild} |  1 +
 2 files changed, 37 insertions(+)