Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887329 - www-client/w3mmee-0.3.2_p24-r12 fails to compile (CLANG-STRICTER-SYSTEM): etc.c:927:1: error: conflicting types for strerror
Summary: www-client/w3mmee-0.3.2_p24-r12 fails to compile (CLANG-STRICTER-SYSTEM): etc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-12-20 08:16 UTC by Agostino Sarubbo
Modified: 2025-03-10 03:02 UTC (History)
0 users

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


Attachments
build.log (build.log,142.53 KB, text/plain)
2022-12-20 08:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-20 08:16:46 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-client/w3mmee-0.3.2_p24-r12 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-20 08:16:48 UTC
Created attachment 843955 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-20 08:16:49 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


main.c:695:12: warning: passing arguments to 'newHist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main.c:696:12: warning: passing arguments to 'newHist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main.c:697:12: warning: passing arguments to 'newHist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main.c:698:12: warning: passing arguments to 'newHist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main.c:699:12: warning: passing arguments to 'newHist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main.c:700:12: warning: passing arguments to 'newHist' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
table.c:2058:20: warning: passing arguments to 'Strnew' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
etc.c:927:1: error: conflicting types for 'strerror'
Comment 3 Larry the Git Cow gentoo-dev 2025-03-10 03:02:03 UTC
The bug has been closed via the following commit(s):

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

commit dfdebbfb4e686ab2ffe9d86e6ffe71230d59517a
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2025-02-24 09:25:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 03:00:25 +0000

    www-client/w3mmee: fix build failure on modern compiler
    
    0. update to EAPI 8
    1. w3mmee-boehm-gc.patch is merged into w3mmee-configure.patch
    2. fix errors and warnings reported by modern compiler
    3. fix QA warning on uninitialized variable
    4. fix error on -Wincompatible-pointer-types
    
    Closes: https://bugs.gentoo.org/875125
    Closes: https://bugs.gentoo.org/883735
    Closes: https://bugs.gentoo.org/887329
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40730
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/w3mmee/files/w3mmee-configure.patch | 773 +++++++++++++++++++++++++
 www-client/w3mmee/files/w3mmee-display.patch   |  26 +
 www-client/w3mmee/files/w3mmee-linein.patch    |  23 +
 www-client/w3mmee/w3mmee-0.3.2_p24-r13.ebuild  | 160 +++++
 4 files changed, 982 insertions(+)