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: ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
Keywords: PullRequest
Depends on:
Blocks: 903611
  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: ---

build.log (build.log,85.46 KB, text/plain)
2023-05-11 19:02 UTC, Agostino Sarubbo

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

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

(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 and emerge --info
Comment 2 Piotr Kubaj 2023-06-07 16:50:28 UTC
Alpine had similar issue, fixed with
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 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):

commit 5caead31afd6d66482e29c075b2a21675cb99015
Author:     Violet Purcell <>
AuthorDate: 2023-06-10 04:46:44 +0000
Commit:     Joonas Niilola <>
CommitDate: 2023-06-10 06:54:51 +0000

    dev-libs/nspr: Fix Musl ipv6 patch for Musl 1.2.4
    Signed-off-by: Violet Purcell <>
    Signed-off-by: Joonas Niilola <>

 .../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(-)