Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897842 - net-dialup/linux-atm-2.5.2-r1 fails to compile (MUSL-CLANG-SYSTEM): unix.c:24:5: error: call to undeclared library function strcpy with type char (char , const char ); ISO C99 and later do not support implicit function declarations [-Wimplicit-function-d
Summary: net-dialup/linux-atm-2.5.2-r1 fails to compile (MUSL-CLANG-SYSTEM): unix.c:24...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: patch
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-02-26 08:11 UTC by Agostino Sarubbo
Modified: 2025-02-20 13:51 UTC (History)
2 users (show)

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


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

Issue: net-dialup/linux-atm-2.5.2-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 08:11:20 UTC
Created attachment 854744 [details]
build.log

build log and emerge --info
Comment 2 Maxim P. Dementiev 2024-04-11 12:52:55 UTC
So, no option to bypass a part from "-atm" in use flags?
I've got two packages depending on: ppp and iproute2.
As a solution, atm is disabled.
Comment 3 Larry the Git Cow gentoo-dev 2025-02-20 13:51:03 UTC
The bug has been closed via the following commit(s):

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

commit c43b5fb511c078be274b6952fd041189982ea15c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-20 09:06:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-20 13:50:12 +0000

    net-dialup/linux-atm: fix build on musl, C23
    
    As usual, wrong defines, missing includes, need for gnu extensions,
    `int` instead of `socklen_t`, `Bool_t bool`, weird fixes for buggy
    and outdated system libraries.
    Included fixes for formatting in *printf(), partially cherry-picked
    from debian patch
    https://sources.debian.org/patches/linux-atm/1:2.5.1-7/misc/
    
    Closes: https://bugs.gentoo.org/897842
    Closes: https://bugs.gentoo.org/949721
    Closes: https://bugs.gentoo.org/712860
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40666
    Signed-off-by: Sam James <sam@gentoo.org>

 .../linux-atm/files/linux-atm-2.5.2-c99-musl.patch | 113 ++++++++++++
 .../files/linux-atm-2.5.2-fix-booleans.patch       |  42 +++++
 .../files/linux-atm-2.5.2-fix-formatting.patch     | 192 +++++++++++++++++++++
 .../files/linux-atm-2.5.2-remove-bad-define.patch  |  31 ++++
 .../files/linux-atm-2.5.2-socklen-types.patch      | 182 +++++++++++++++++++
 net-dialup/linux-atm/linux-atm-2.5.2-r2.ebuild     |  48 ++++++
 6 files changed, 608 insertions(+)