Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897938 - net-mail/mboxgrep-0.7.9-r2 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:386: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-func
Summary: net-mail/mboxgrep-0.7.9-r2 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:386...
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-26 17:53 UTC by Agostino Sarubbo
Modified: 2023-07-18 05:22 UTC (History)
0 users

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


Attachments
build.log (build.log,55.47 KB, text/plain)
2023-02-26 17:53 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-26 17:53:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-mail/mboxgrep-0.7.9-r2 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-26 17:53:24 UTC
Created attachment 854846 [details]
build.log

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


getopt.c:192: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:206: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:236: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:314: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:349:23: 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:648: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:55: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:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:209:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
md5.c:84: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:386: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-07-18 05:22:08 UTC
The bug has been closed via the following commit(s):

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

commit 1d3c32911700b0ebdcff3e07f0d0fe4d85a4621c
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-07-17 08:24:29 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-07-18 05:22:03 +0000

    net-mail/mboxgrep: Fix call to undeclared library function strcmp
    
    Closes: https://bugs.gentoo.org/897938
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31618
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/mboxgrep-0.7.9-musl-missing-strcmp.patch | 11 +++++
 net-mail/mboxgrep/mboxgrep-0.7.9-r3.ebuild         | 49 ++++++++++++++++++++++
 2 files changed, 60 insertions(+)