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

Bug 879761

Summary: sci-libs/plplot: possible configure breakage with Clang 16
Product: Gentoo Linux Reporter: Matt Jolly <kangie>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: ago
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://sourceforge.net/p/plplot/patches/37/
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:15:09 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 library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Comment 1 Matt Jolly gentoo-dev 2022-11-04 22:15:11 UTC
Created attachment 827531 [details]
clang-14.log

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

build log
Comment 3 Matt Jolly gentoo-dev 2022-11-04 22:15:16 UTC
Created attachment 827535 [details]
clang.diff

build log
Comment 4 Pacho Ramos gentoo-dev 2023-11-24 14:06:39 UTC
Please retry with plplot-5.15.0_p6
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-10 01:22:47 UTC
*** Bug 923256 has been marked as a duplicate of this bug. ***
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-10 01:23:09 UTC
-/var/tmp/portage/sci-libs/plplot-5.15.0-r103/work/plplot-5.15.0/cmake/modules/TestForHighBitCharacters.c:20:8: 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]
+/var/tmp/portage/sci-libs/plplot-5.14.0-r103/work/plplot-5.14.0/cmake/modules/TestForHighBitCharacters.c:20:8: 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]
        exit(1);
        ^
-/var/tmp/portage/sci-libs/plplot-5.15.0-r103/work/plplot-5.15.0/cmake/modules/TestForHighBitCharacters.c:20:8: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
+/var/tmp/portage/sci-libs/plplot-5.14.0-r103/work/plplot-5.14.0/cmake/modules/TestForHighBitCharacters.c:20:8: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
 

Definitely still there.
Comment 7 Larry the Git Cow gentoo-dev 2024-05-10 01:43:00 UTC
The bug has been closed via the following commit(s):

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

commit 359a269725785328df0c0cf856d1e8374d98735e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-10 01:24:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-10 01:24:28 +0000

    sci-libs/plplot: fix modern C issue in (CMake) configure
    
    Closes: https://bugs.gentoo.org/879761
    Signed-off-by: Sam James <sam@gentoo.org>

 .../plplot/files/plplot-5.15.0_p6-configure-c99.patch  | 18 ++++++++++++++++++
 ...lot-5.15.0_p6.ebuild => plplot-5.15.0_p6-r1.ebuild} |  1 +
 2 files changed, 19 insertions(+)