Skip to content
Tcl Source Code View Ticket
Login

View Ticket

socklen_t not set from config.cache

Closed / Fixed600931ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-08-27 19:07:57
On solaris, and some other unices, the following
sequence will
fail to build the shared executables because socklen_t
is undefined:

    ./configure
    make
    ./configure
    make clean
    # or just "rm tclIOSock.o"
    make

The problem is that the second ./configure is not
correctly getting the cached result from the first
./configure

The fix is:


--- configure.in.orig   2002-08-27 14:12:27.000000000 -0400
+++ configure.in        2002-08-27 14:45:15.000000000 -0400
@@ -277,11 +277,11 @@
 #include <stdlib.h>
 #include <stddef.h>
 #endif], ac_cv_type_socklen_t=yes,
ac_cv_type_socklen_t=no)
+])
 AC_MSG_RESULT($ac_cv_type_socklen_t)
 if test $ac_cv_type_socklen_t = no; then
   AC_DEFINE(socklen_t, unsigned)
 fi
-])

 #--------------------------------------------------------------------
 #      If a system doesn't have an opendir function
(man, that's old!)
dkfplain2002-08-28 15:48:04
Logged In: YES 
user_id=79902

Hmm.  That looks like a bit of a Homer moment!  ;^)
Log in (anonymous is fine) to add a comment.