Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898078 - net-news/yydecode-0.2.10-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:423:30: error: call to undeclared library function strcmp with type int (const char , const char ); ISO C99 and later do not support implicit function declarations [-Wimplicit-fun
Summary: net-news/yydecode-0.2.10-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:42...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-27 09:15 UTC by Agostino Sarubbo
Modified: 2023-06-29 12:56 UTC (History)
0 users

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


Attachments
build.log (build.log,73.64 KB, text/plain)
2023-02-27 09:15 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 2023-02-27 09:15:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-news/yydecode-0.2.10-r1 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-27 09:15:36 UTC
Created attachment 854938 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-27 09:15:38 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


                error(0, 0, _("%s: Assertion `%s' failed -- output may be corrupt"),    \
                error(0, 0, _("%s: Assertion `%s' failed -- output may be corrupt"),    \n
crc32.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crc32.c:67:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crc32.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:303:28: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:686:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt1.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt1.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1086:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1093:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1122:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1126:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1130:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1141:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1170:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1176:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:1200:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:143:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:277:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:286:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:295:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:322:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:334:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:365:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:383:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:393:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:419:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:427:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:430:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:466:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:473:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:505:2: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:509:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:523:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:524:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:525:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:532:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:538:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:539:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:542:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:556:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:565:4: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:566:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:571:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:573:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:575:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:576:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:577:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:578:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:587:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:594:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:603:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:614:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:630:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:660:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:666:4: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:670:4: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:675:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:687:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:691:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:702:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:703:3: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:707:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:713:9: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:723:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:747:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:768:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:827:10: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:852:11: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:909:8: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:925:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
yydecode.c:961:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:423:30: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2023-06-29 12:56:28 UTC
The bug has been closed via the following commit(s):

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

commit 909a43287489284ede0304fc3bd913c49d80c345
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-06-16 05:29:32 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-06-29 12:56:00 +0000

    net-news/yydecode: Fix error: call to undeclared library function strcmp
    
    Closes: https://bugs.gentoo.org/898078
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31475
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../yydecode-0.2.10-fix-strcmp-not-found.patch      | 15 +++++++++++++++
 net-news/yydecode/yydecode-0.2.10-r2.ebuild         | 21 +++++++++++++++++++++
 2 files changed, 36 insertions(+)