dejagnu-19981026

Zack Weinberg zack@rabi.columbia.edu
Sun Mar 21 07:57:00 GMT 1999


On Sun, 21 Mar 1999 13:04:15 +0000 (GMT), Alex Buell wrote:
>dejagnu-19981026 (from egcs.cygnus.com) will not compile with egcs-1.1.2. 
[...]
>./../generic/tclPosixStr.c: In function `Tcl_ErrnoId':
>./../generic/tclPosixStr.c:340: duplicate case value
>./../generic/tclPosixStr.c:328: this is the first entry for that value
>./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg':
>./../generic/tclPosixStr.c:787: duplicate case value
>./../generic/tclPosixStr.c:775: this is the first entry for that value

Patch follows.  Note this is a library issue, has nothing to do with 1.1.2.

If you already have tcl 8 and expect 5 on your system (you probably
do) then you can just make the dejagnu directory after configuring
everything.

zw

--- tcl/generic/tclPosixStr.c~	Fri May  1 14:45:09 1998
+++ tcl/generic/tclPosixStr.c	Sun Mar 21 10:54:34 1999
@@ -336,7 +336,7 @@
 #ifdef ENXIO
 	case ENXIO: return "ENXIO";
 #endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (EOPNOTSUP != ENOTSUP))
 	case EOPNOTSUPP: return "EOPNOTSUPP";
 #endif
 #ifdef EPERM
@@ -783,7 +783,7 @@
 #ifdef ENXIO
 	case ENXIO: return "no such device or address";
 #endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (EOPNOTSUP != ENOTSUP))
 	case EOPNOTSUPP: return "operation not supported on socket";
 #endif
 #ifdef EPERM


More information about the Gcc mailing list