[Tcsh] configure fails on Debian 12 (bookworm)

Christos Zoulas christos at zoulas.com
Thu Apr 13 16:33:59 UTC 2023


On 2023-04-13 9:45 am, Kimmo Suominen wrote:
> | configure:8065: gcc -c -g -O2
> -ffile-prefix-map=/home/builder/build-aAEu4Kg5pL/tcsh-6.24.09=.
> -fstack-protector-strong -Wformat
> -Werror=format-security -D_FILE_OFFSET_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 conftest.c >&5
> | conftest.c: In function 'main':
> | conftest.c:42:24: error: expected expression before ')' token
> |    42 | if (sizeof ((socklen_t)))
> |       |                        ^
> 
> root at 07589e99ecd2:/# gcc --version
> gcc (Debian 12.2.0-14) 12.2.0

Where does it define socklen_t?

AC_DEFUN([AC_TYPE_SOCKLEN_T], [
AC_CHECK_TYPE(socklen_t,,
AC_DEFINE(socklen_t, int, [Define to `int' if neither <sys/types.h> nor 
<sys/soc
ket.h> define.]), [dnl
#include <sys/types.h>
#include <sys/socket.h>
])
])
AC_TYPE_SOCKLEN_T()

-- 
christos


More information about the Tcsh mailing list