system/nspr: FTBFS: ../../../../nspr/pr/include/md/_unixos.h:592:9: error: unknown type name ‘off64_t
Found on ppc64:
...
make[3]: Entering directory '/usr/src/packages/system/nspr/src/nspr-4.35/build/pr/src/io'
gcc -o prfdcach.o -c -fvisibility=hidden -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE -Wall -pthread -O2 -fPIC -UDEBUG -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DHAVE_POINTER_LOCALTIME_R=1 -DLINUX=1 -DHAVE_DLADDR=1 -DHAVE_GETTID=1 -DHAVE_LCHOWN=1 -DHAVE_SETPRIORITY=1 -DHAVE_STRERROR=1 -DHAVE_SYSCALL=1 -DHAVE_SECURE_GETENV=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_PR_INET6 -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../../nspr/pr/include -I../../../../nspr/pr/include/private ../../../../nspr/pr/src/io/prfdcach.c
In file included from ../../../../nspr/pr/include/md/_linux.h:713,
from ../../../../nspr/pr/include/md/prosdep.h:53,
from ../../../../nspr/pr/include/private/primpl.h:32,
from ../../../../nspr/pr/src/io/prfdcach.c:6:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^~~~~~~
In file included from ../../../../nspr/pr/include/md/prosdep.h:81,
from ../../../../nspr/pr/include/private/primpl.h:32,
from ../../../../nspr/pr/src/io/prfdcach.c:6:
../../../../nspr/pr/include/md/_unixos.h:592:9: error: unknown type name ‘off64_t’
typedef off64_t _MDOff64_t;
^~~~~~~
make[3]: *** [../../../../nspr/config/rules.mk:450: prfdcach.o] Error 1
make[3]: Leaving directory '/usr/src/packages/system/nspr/src/nspr-4.35/build/pr/src/io'
make[2]: *** [../../../nspr/config/rules.mk:163: export] Error 2
make[2]: Leaving directory '/usr/src/packages/system/nspr/src/nspr-4.35/build/pr/src'
make[1]: *** [../../nspr/config/rules.mk:163: export] Error 2
make[1]: Leaving directory '/usr/src/packages/system/nspr/src/nspr-4.35/build/pr'
make: *** [../nspr/config/rules.mk:163: export] Error 2
>>> ERROR: nspr: build failed
The Alpine patch doesn't seem correct?