[eggheads-patches] PATCH: more-tcl-pthreads.diff

Tothwolf tothwolf at concentric.net
Tue Oct 19 20:09:56 CST 1999


more-tcl-pthreads.diff:
  Defines HAVE_BUGGY_TCL_THREADS for any verison of Tcl that has threads
  Sets default make to 'static' when libtcl is an unshared lib
  Updated/revised BUG-REPORT

-Toth
-------------- next part --------------
diff -urNPX ../exclude ../eggdrop1.3.tmp/configure ./configure
--- ../eggdrop1.3.tmp/configure	Tue Oct 19 14:59:31 1999
+++ ./configure	Tue Oct 19 16:32:43 1999
@@ -3218,19 +3218,17 @@
 if test "x${ac_cv_var_tcl_threads}" = "xyes"
 then
   echo "$ac_t""yes" 1>&6
-  echo $ac_n "checking for Tcl threads bug""... $ac_c" 1>&6
-echo "configure:3223: checking for Tcl threads bug" >&5
-  TCL_VER_IS81=`echo $TCL_VERSION | $AWK '{split($1, i, "."); if ((i[1] == 8) && (i[2] == 1)) print "yes"; else print "no"}'`
-  if test "x$TCL_VER_IS81" = "xyes"
-  then
-    echo "$ac_t""yes" 1>&6
-    cat >> confdefs.h <<\EOF
+  cat << 'EOF' >&2
+configure: warning:
+
+  Your Tcl library is compiled with threads.
+  There are known problems, but we will attempt to work around them.
+
+EOF
+  cat >> confdefs.h <<\EOF
 #define HAVE_BUGGY_TCL_THREADS 1
 EOF
 
-  else
-    echo "$ac_t""no" 1>&6
-  fi
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -3241,6 +3239,19 @@
   TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS -lm"
 else
 
+  # set default make as static for unshared Tcl library
+  if test ! "$DEFAULT_MAKE" = "static"
+  then
+    cat << 'EOF' >&2
+configure: warning:
+
+  Your Tcl library is not a shared lib.
+  configure will now set default make type to static...
+
+EOF
+    DEFAULT_MAKE=static
+  fi
+
   # are we using a pre 7.4 Tcl version ?
   TCL_VER_PRE74=`echo $TCL_VERSION | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
   if test "x${TCL_VER_PRE74}" = "xno"
@@ -3260,7 +3271,7 @@
 configure: warning:
 
   Your Tcl version ($TCL_VERSION) is older then 7.4.
-  There are known problems, but we will work around them.
+  There are known problems, but we will attempt to work around them.
 
 EOF
     TCL_REQS="libtcle.a"
diff -urNPX ../exclude ../eggdrop1.3.tmp/configure.in ./configure.in
--- ../eggdrop1.3.tmp/configure.in	Tue Oct 19 14:54:16 1999
+++ ./configure.in	Tue Oct 19 16:32:06 1999
@@ -771,17 +771,14 @@
 if test "x${ac_cv_var_tcl_threads}" = "xyes"
 then
   AC_MSG_RESULT(yes)
-  AC_MSG_CHECKING(for Tcl threads bug)
-changequote(,)dnl
-  TCL_VER_IS81=`echo $TCL_VERSION | $AWK '{split($1, i, "."); if ((i[1] == 8) && (i[2] == 1)) print "yes"; else print "no"}'`
-changequote([, ])dnl
-  if test "x$TCL_VER_IS81" = "xyes"
-  then
-    AC_MSG_RESULT(yes)
-    AC_DEFINE(HAVE_BUGGY_TCL_THREADS)
-  else
-    AC_MSG_RESULT(no)
-  fi
+  cat << 'EOF' >&2
+configure: warning:
+
+  Your Tcl library is compiled with threads.
+  There are known problems, but we will attempt to work around them.
+
+EOF
+  AC_DEFINE(HAVE_BUGGY_TCL_THREADS)
 else
   AC_MSG_RESULT(no)
 fi
@@ -792,6 +789,19 @@
   TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS -lm"
 else
 
+  # set default make as static for unshared Tcl library
+  if test ! "$DEFAULT_MAKE" = "static"
+  then
+    cat << 'EOF' >&2
+configure: warning:
+
+  Your Tcl library is not a shared lib.
+  configure will now set default make type to static...
+
+EOF
+    DEFAULT_MAKE=static
+  fi
+
   # are we using a pre 7.4 Tcl version ?
 changequote(,)dnl
   TCL_VER_PRE74=`echo $TCL_VERSION | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
@@ -813,7 +823,7 @@
 configure: warning:
 
   Your Tcl version ($TCL_VERSION) is older then 7.4.
-  There are known problems, but we will work around them.
+  There are known problems, but we will attempt to work around them.
 
 EOF
     TCL_REQS="libtcle.a"
diff -urNPX ../exclude ../eggdrop1.3.tmp/doc/BUG-REPORT ./doc/BUG-REPORT
--- ../eggdrop1.3.tmp/doc/BUG-REPORT	Sat Oct  9 14:19:41 1999
+++ ./doc/BUG-REPORT	Tue Oct 19 19:46:26 1999
@@ -2,29 +2,30 @@
               Eggheads Eggdrop 1.3 Bug Report Form
 =====================================================================
 
-By reporting bugs you help to improve the quality of eggdrop which
+By reporting bugs, you help to improve the quality of eggdrop which
 naturally results in a more stable bot. The more information you
 provide, the easier and more likely it is for the dev team to fix the
-bug. So please try to add everything you think is important, in
-addition to the information asked for in this form. Thanks.
+bug. Please add everything that you think is important, in addition
+to the information requested in this form. Thanks.
 
 Note: First check http://www.eggheads.org/bugs.html to see if the bug
       you want to report is already fixed.
 
 Instructions:
-1]  Please try to fill in as many fields as possible.
+1]  Please complete as many fields as possible.
 2]  Email the completed report to: eggheads at eggheads.org
 
 =====================================================================
-1) INFORMATION ABOUT YOUR USED EGGDROP
+1) INFORMATION ABOUT YOUR EGGDROP
 
 1.1) version:
      1.3.__
 
 1.2) make type:
-     ( ) dynamic  (default)
+     ( ) dynamic
      ( ) static
-     ( ) debugmem
+     ( ) debug
+     ( ) sdebug
 
 1.3) list of patches and/or modules you use:
 
@@ -32,36 +33,50 @@
 2) INFORMATION ABOUT TCL
 
 2.1) TCL library version:
+     ( ) 7.0
+     ( ) 7.1
+     ( ) 7.2
+     ( ) 7.3
+     ( ) 7.4
      ( ) 7.5
-     ( ) 7.6p2
+     ( ) 7.6
      ( ) 8.0
      ( ) 8.1
      ( ) 8.2
      ( ) Other - Which? ____
 
-2.2) TCLs used:
-     [ ] Alltools.tcl
-     [ ] sentinel.tcl
-     [ ] getops.tcl
-     [ ] others. Please mention all others:
+2.2) TCL library patchlevel: ___
+  eg; p1, p2, etc for Tcl versions up to 8.0p2
+      or the 3rd part of the version number for 8.0.3 and newer
+
+2.3) TCL scripts used:
+     [ ] alltools
+     [ ] sentinel
+     [ ] getops
+     [ ] others - Please mention all others:
 
 =====================================================================
 3) INFORMATION ABOUT THE OS
 
 3.1) OS type:
-     ( ) Linux
+     ( ) BSD/OS
+     ( ) Cygwin
      ( ) FreeBSD
+     ( ) HP-UX
+     ( ) IRIX
+     ( ) IRIX64
+     ( ) Linux
+     ( ) Lynx
+     ( ) NetBSD
+     ( ) Next
      ( ) OpenBSD
+     ( ) OSF
+     ( ) QNX
      ( ) Solaris
      ( ) Sun
-     ( ) Hp-UX
-     ( ) AIX
-     ( ) OSF1
-     ( ) IRIX
      ( ) Other - Which? _____________
 
-3.2) OS Version/Release:
-     _____________
+3.2) OS Version/Release: _____________
 
 =====================================================================
 4) BUG DETAILS
@@ -84,10 +99,10 @@
 
 4.7) Other comments?
 
-4.8) For advanced users: If you compiled the bot using the debugmem
-     option and it dumped a "core" file when it crashed, it would be
-     *very* useful if you could paste gdb's output during the
-     following steps:
+4.8) For advanced users: If you compiled the bot using the debug or
+     sdebug options and it dumped a 'core' file when it crashed,
+     it would be *very* useful if you could paste gdb's output during
+     the following steps:
      First call gdb
          $ gdb eggdrop -c core
      and then enter 'bt' on gdb's command line:
@@ -97,5 +112,4 @@
 
 =====================================================================
 
-End of bug report form - Thank you for helping to improve the Eggdrop
-
+End of bug report form - Thank you for helping us improve Eggdrop.


More information about the Patches mailing list