[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Alpine: strscpy.c:25:1: error: unknown type name 'ssize_t'; did you mean
From: |
Tianon Gravi |
Subject: |
Alpine: strscpy.c:25:1: error: unknown type name 'ssize_t'; did you mean 'size_t'? |
Date: |
Wed, 3 May 2023 16:56:16 -0700 |
I'm getting the following error when building the latest "devel"
(23935dbe8513437e69ca14d6b0890067dddceba3) on Alpine Linux 3.17:
| gcc -c -I. -I../.. -I../.. -I../../lib -I../../include -I.
-I../../lib/intl -I/tmp/bash/lib/intl -DHAVE_CONFIG_H -DSHELL -DDEBUG
-Wno-parentheses -Wno-format-security -g -O2 strscpy.c
| strscpy.c:25:1: error: unknown type name 'ssize_t'; did you mean 'size_t'?
| 25 | ssize_t
| | ^~~~~~~
| | size_t
| strscpy.c: In function 'strscpy':
| strscpy.c:32:16: error: 'ssize_t' undeclared (first use in this
function); did you mean 'size_t'?
| 32 | return ((ssize_t)i);
| | ^~~~~~~
| | size_t
| strscpy.c:32:16: note: each undeclared identifier is reported only
once for each function it appears in
| strscpy.c:32:24: error: expected ')' before 'i'
| 32 | return ((ssize_t)i);
| | ~ ^
| | )
| make[1]: *** [Makefile:79: strscpy.o] Error 1
Here's a super extra basic `Dockerfile` I used to reproduce this
inside my local Git checkout of bash.git, in case that's useful:
FROM alpine:3.17
RUN apk add --no-cache bison coreutils dpkg dpkg-dev gcc libc-dev make
ncurses-dev patch tar
WORKDIR /tmp/bash
COPY . .
RUN ./configure --enable-readline --with-curses --without-bash-malloc
RUN make
RUN make install
RUN bash --version
I'm happy to do more diagnosing, testing, etc if that would be
helpful, but will need a little guidance to what's actually going to
be useful. 🙇
(my configure output includes the seemingly related "checking for
ssize_t... yes" but I don't know if that's actually helpful
information or not!)
♥,
- Tianon
4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4
- Alpine: strscpy.c:25:1: error: unknown type name 'ssize_t'; did you mean 'size_t'?,
Tianon Gravi <=