[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: none



Hi, Peter,

Yes, I can confirm it.  But it seems to me that gcc is right.  Look at
/usr/include/bits/errno.h, apparently it has changed since 5.2:

/* Linux has no ENOTSUP error code.  */
# define ENOTSUP EOPNOTSUPP

I solved this by simply undef'ing ENOTSUP:
tcl8.0/generic> diff -c tclPosixStr.c~ tclPosixStr.c
*** tclPosixStr.c~      Fri Oct 23 19:26:28 1998
--- tclPosixStr.c       Wed May 26 09:34:48 1999
***************
*** 16,21 ****
--- 16,22 ----
  
  #include "tclInt.h"
  #include "tclPort.h"
+ #undef ENOTSUP
  

  /*
   *----------------------------------------------------------------------

Perhaps this should be added to the ns-problems.html

 -Yuri

Peter Warren <[email protected]> writes:

> Hi, 
> 
> I'm having problems building the ns b5 all-in-one on the new Red Hat Linux
> 6.0 for Intel PC. I'm using the included install script, and have no unusual
> file system arrangements, etc. The particular problem is when it tries to
> build TCL. It dies  in file tclPosixStr.c, with the messages:
> ../../generic/tclPosixStr.c:340 In function 'Tcl_ErrnoId':
> ../../generic/tclPosixStr.c:340 duplicate case value
> ../../generic/tclPosixStr.c:328 first entry for this value
> 
> There is actually no duplication, that I can see. Line 340 sets EOPNOTSUPP,
> whereas line 328 sets ENOTSUP.
> 
> Has anyone had similar problems, or others, building on Red Hat Linux 6.0?
> Thanks.
> 
> Peter Warren
> GTE Laboratories
> [email protected]