Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877319 - app-misc/ola-0.10.9 fails to compile (MUSL): AutoStart.cpp:116:12: error: invalid cast from type std::nullptr_t to type char
Summary: app-misc/ola-0.10.9 fails to compile (MUSL): AutoStart.cpp:116:12: error: inv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-16 12:45 UTC by Agostino Sarubbo
Modified: 2023-08-21 18:09 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,410.81 KB, text/plain)
2022-10-16 12:45 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 2022-10-16 12:45:47 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/ola-0.10.8 fails to compile (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-10-16 12:45:50 UTC
Created attachment 824439 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-05-12 06:41:24 UTC
tinderbox_musl has reproduced this issue with version 0.10.9 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2023-08-21 18:09:06 UTC
The bug has been closed via the following commit(s):

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

commit c21efb2f184c2d4189a623d9dd2df088295eecfb
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-08-21 17:49:40 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-08-21 18:08:48 +0000

    app-misc/ola: do not use reinterpret_cast on NULL
    
    In C++, nullptr_t values generally cannot be converted to a pointer
    using reinterpret_cast. I say "generally" because glibc apparently
    lets it slide; musl on the other hand does not. Do it the proper way
    and use static_cast instead.
    
    Closes: https://bugs.gentoo.org/877319
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 app-misc/ola/files/ola-0.10.9-nullptr.patch | 214 ++++++++++++++++++++++++++++
 app-misc/ola/ola-0.10.9.ebuild              |   7 +-
 2 files changed, 220 insertions(+), 1 deletion(-)