ok... 
here are the errors on the two (unfortunately 
one compiles on yours)
and i deleted TCL_HAVE_THREADS from
 the list of cc defines as it broke 2 others (
and didnt fix these two) (tclUnixSock.c, 
tclIOSock.c)



/C
ps. addrinfo is mentioned in the configure script and writes to tclConfig.h.in a flag (i tried turning this on and off)
--

cc -c -O    -DBUILD_tcl  -I"." -I/usr/glenda/tcl8.6.10/unix -I/usr/glenda/tcl8.6.10/generic -I/usr/glenda/tcl8.6.10/libtommath  -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DNO_DLFCN_H=1 -DHAVE_SYS_PARAM_H=1  -D_REENTRANT=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern -DTCL_SHLIB_EXT=\"\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DNO_GETWD=1 -DNO_REALPATH=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_IOCTL_H=1 -DNO_FD_SET=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1 -DNO_FSTATFS=1 -Dsocklen_t=int -Dintptr_t=int -Duintptr_t=unsigned\ int -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DNO_ISNAN=1 -D_BSD_EXTENSION -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1       -DMP_FIXED_CUTOFFS -DMP_NO_STDINT /usr/glenda/tcl8.6.10/generic/tclIOSock.c
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:191[stdin:18439] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:191[stdin:18439] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:192[stdin:18440] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:203[stdin:18449] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:205[stdin:18451] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:210[stdin:18456] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:230[stdin:18468] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:230[stdin:18468] name not declared: AI_PASSIVE
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:233[stdin:18471] structure not fully declared addrinfo
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:240[stdin:18478] incompatible types: "IND CONST CHAR" and "INT" for op "AS"
/usr/glenda/tcl8.6.10/generic/tclIOSock.c:255[stdin:18489] structure not fully declared addrinfo
too many errors
*** Error code 1
cc -c -O    -DBUILD_tcl  -I"." -I/usr/glenda/tcl8.6.10/unix -I/usr/glenda/tcl8.6.10/generic -I/usr/glenda/tcl8.6.10/libtommath  -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1  -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DNO_DLFCN_H=1 -DHAVE_SYS_PARAM_H=1  -D_REENTRANT=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern -DTCL_SHLIB_EXT=\"\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DNO_GETWD=1 -DNO_REALPATH=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_IOCTL_H=1 -DNO_FD_SET=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1 -DNO_FSTATFS=1 -Dsocklen_t=int -Dintptr_t=int -Duintptr_t=unsigned\ int -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DNO_ISNAN=1 -D_BSD_EXTENSION -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1       -DMP_FIXED_CUTOFFS -DMP_NO_STDINT /usr/glenda/tcl8.6.10/unix/tclUnixSock.c
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:39[stdin:18328] incomplete union element: sa6
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:39[stdin:18328] incomplete union element: sas
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:519[stdin:18657] name not declared: ECONNRESET
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:670[stdin:18754] name not declared: SHUT_RD
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:673[stdin:18757] name not declared: SHUT_WR
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:715[stdin:18784] incomplete structure: in6_addr
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:715[stdin:18784] incomplete structure: in6_addr
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:716[stdin:18785] structure not fully declared in6_addr
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:716[stdin:18785] name not declared: in6addr_any
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:725[stdin:18792] structure not fully declared in6_addr
/usr/glenda/tcl8.6.10/unix/tclUnixSock.c:729[stdin:18796] structure not fully declared in6_addr
too many errors
*** Error code 1
Configuring package 'itcl4.2.0'
ln: conf27997.dir destination exists
*** Error code 1
`all' not remade because of errors

On Sun, Jun 21, 2020 at 9:41 PM Conor Williams <conor.williams@gmail.com> wrote:
ok... down to two files..
it may be the posix threads...
leave it with me and i will post soon if i can't get ti.
thanks Ori

On Sun, Jun 21, 2020 at 8:50 PM <ori@eigenstate.org> wrote:
> great...
>

Hopefully that's enough to get you past the hurdles for the
other files :)

If not, post a mkfile so that I don't have to hand-edit the
command lines for each compilation, at least.