Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898092 - net-misc/portfwd-0.29-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:580: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-functi
Summary: net-misc/portfwd-0.29-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:580:3...
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:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-27 09:35 UTC by Agostino Sarubbo
Modified: 2023-03-18 21:54 UTC (History)
0 users

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


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

Issue: net-misc/portfwd-0.29-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:35:58 UTC
Created attachment 854954 [details]
build.log

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


getopt.c:1169: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:219: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:302: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:387: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:400: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:509: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:580: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-03-18 21:54:50 UTC
The bug has been closed via the following commit(s):

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

commit 8132bd88e43fd6d55783885c570e129b98ee80e1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-18 21:11:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-18 21:54:36 +0000

    net-misc/portfwd: EAPI 8, fix configure w/ clang 16
    
    Closes: https://bugs.gentoo.org/725162
    Closes: https://bugs.gentoo.org/809326
    Closes: https://bugs.gentoo.org/898092
    Closes: https://bugs.gentoo.org/900308
    Signed-off-by: Sam James <sam@gentoo.org>

 .../portfwd/files/portfwd-0.29-build-system.patch  | 76 ++++++++++++++++++++++
 net-misc/portfwd/portfwd-0.29-r1.ebuild            | 45 -------------
 net-misc/portfwd/portfwd-0.29-r2.ebuild            | 33 ++++++++++
 3 files changed, 109 insertions(+), 45 deletions(-)