Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897930 - net-mail/checkpassword-pam-0.99-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:574: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 [-Wimpli
Summary: net-mail/checkpassword-pam-0.99-r1 fails to compile (MUSL-CLANG-SYSTEM): geto...
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:50 UTC by Agostino Sarubbo
Modified: 2023-08-19 05:50 UTC (History)
0 users

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


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

Issue: net-mail/checkpassword-pam-0.99-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-26 17:50:38 UTC
Created attachment 854842 [details]
build.log

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


getopt.c:213: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: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:388: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:401: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:510: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:966: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: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]
getopt1.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:574: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-08-19 05:50:50 UTC
The bug has been closed via the following commit(s):

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

commit f04d8a96685375fa27719a450cb803e6dbbb2667
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-08-16 08:34:40 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-08-19 05:50:45 +0000

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

 .../checkpassword-pam-0.99-r2.ebuild               | 24 ++++++++++++++++++++++
 .../checkpassword-pam-0.99-clang16-build-fix.patch | 11 ++++++++++
 2 files changed, 35 insertions(+)