Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906166 - dev-libs/nspr-4.35-r1 fails to compile (MUSL-SYSTEM): unix.c:2489:17: error: invalid use of incomplete typedef _MDStat64 {aka const struct stat64}
Summary: dev-libs/nspr-4.35-r1 fails to compile (MUSL-SYSTEM): unix.c:2489:17: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-1.2.4
  Show dependency tree
 
Reported: 2023-05-11 19:02 UTC by Agostino Sarubbo
Modified: 2023-06-10 06:54 UTC (History)
0 users

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


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

Issue: dev-libs/nspr-4.35-r1 fails to compile (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-11 19:02:47 UTC
Created attachment 861535 [details]
build.log

build log and emerge --info
Comment 2 Piotr Kubaj 2023-06-07 16:50:28 UTC
Alpine had similar issue, fixed with https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/nspr/lfs64.patch.
Comment 3 Joonas Niilola gentoo-dev 2023-06-07 17:00:34 UTC
Hmm I'm pretty sure I tried that, and then it failed to compile somewhere else. I was following a thread... somewhere... about nspr and musl compile failures. Need to dig that up again if it was ever resolved.
Comment 4 Joonas Niilola gentoo-dev 2023-06-07 17:06:05 UTC
https://git.adelielinux.org/adelie/packages/-/issues/1020 probably this.
Comment 5 Violet Purcell 2023-06-10 04:30:31 UTC
This issue seems to be caused by nspr-4.21-ipv6-musl-support.patch, as it compiles correctly without it.
Comment 6 Larry the Git Cow gentoo-dev 2023-06-10 06:54:53 UTC
The bug has been closed via the following commit(s):

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

commit 5caead31afd6d66482e29c075b2a21675cb99015
Author:     Violet Purcell <vimproved@inventati.org>
AuthorDate: 2023-06-10 04:46:44 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-06-10 06:54:51 +0000

    dev-libs/nspr: Fix Musl ipv6 patch for Musl 1.2.4
    
    Closes: https://bugs.gentoo.org/906166
    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    Closes: https://github.com/gentoo/gentoo/pull/31370
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../nspr/files/nspr-4.21-ipv6-musl-support.patch   | 26 ++++++++--------------
 .../{nspr-4.35-r1.ebuild => nspr-4.35-r2.ebuild}   |  0
 2 files changed, 9 insertions(+), 17 deletions(-)