The procedure I used is the same I've always used successfully in the
past on FreeBSD
%setenv CC gcc
%cd tcl/unix
%./configure --enable-threads --prefix=/tcl
make
TCL_UNLOAD_DLLS=1 /usr/local/buildtcl/8.5b3_1/tcl/unix/../unix/
tclUnixChan.c
/usr/local/buildtcl/8.5b3_1/tcl/unix/../unix/tclUnixChan.c: In
function `CreateSocketAddress':
/usr/local/buildtcl/8.5b3_1/tcl/unix/../unix/tclUnixChan.c:2689:
error: `EAI_ADDRFAMILY' undeclared (first use in this function)
/usr/local/buildtcl/8.5b3_1/tcl/unix/../unix/tclUnixChan.c:2689:
error: (Each undeclared identifier is reported only once
/usr/local/buildtcl/8.5b3_1/tcl/unix/../unix/tclUnixChan.c:2689:
error: for each function it appears in.)
/usr/local/buildtcl/8.5b3_1/tcl/unix/../unix/tclUnixChan.c:2690:
error: `EAI_NODATA' undeclared (first use in this function)
*** Error code 1
Stop in /usr/local/buildtcl/8.5b3_1/tcl/unix.
I managed to get it to build by editing tclUnixChan using the info I
found here:
http://fixunix.com/kerberos/60907-compiling-krb5-1-6-freebsd-6-1-required-patches.html
Cheers,
Julian