Skip to content
Tcl Source Code View Ticket
Login

View Ticket

ENOTSUP == EOPNOTSUPP compile failure

Closed / Duplicate217803ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:43:55
OriginalBugID: 1136 Bug
Version: 8.0.4
SubmitDate: '1999-02-02'
LastModified: '1999-03-02'
Severity: MED
Status: Closed
Submitter: welch
ChangedBy: pat
OS: Linux
OSVersion: Linux-2.2.0, glibc, on Intel
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-03-02'


Name:
John Ellson

ObservedBehavior:
/usr/include/bits/errno.h from egcs-2.91.60.1 from RedHat's rawhide
glibc-devel-2.0.110-0.990121.rpm  defines the same value for
ENOTSUP and EOPNOTSUPP which causes generic/tclPosixStr.c to fail to compile.

This may be an egcs problem, but the attached patch fixes it either way.



Patch:
*** tclPosixStr.c.orig  Thu Jan 28 14:59:41 1999
--- tclPosixStr.c       Thu Jan 28 15:01:56 1999
***************
*** 336,342 ****
  #ifdef ENXIO
        case ENXIO: return "ENXIO";
  #endif
! #ifdef EOPNOTSUPP
        case EOPNOTSUPP: return "EOPNOTSUPP";
  #endif
  #ifdef EPERM
--- 336,342 ----
  #ifdef ENXIO
        case ENXIO: return "ENXIO";
  #endif
! #if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
        case EOPNOTSUPP: return "EOPNOTSUPP";
  #endif
  #ifdef EPERM
***************
*** 783,789 ****
  #ifdef ENXIO
        case ENXIO: return "no such device or address";
  #endif
! #ifdef EOPNOTSUPP
        case EOPNOTSUPP: return "operation not supported on socket";
  #endif
  #ifdef EPERM
--- 783,789 ----
  #ifdef ENXIO
        case ENXIO: return "no such device or address";
  #endif
! #if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
        case EOPNOTSUPP: return "operation not supported on socket";
  #endif
  #ifdef EPERM





03/02/1999 17:08 - pat - duplicate of bug 1137
welch Closed ticket [217803ffff]. [History diff]2000-10-26 07:49:19
dgp Ticket [217803ffff]: 3 changes [History diff]2001-04-13 23:04:51
Log in (anonymous is fine) to add a comment.