Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 31a7f9ef27efecf13d940e6fb141be56f3c89bb5
Ticket: 218461ffffffffffffffffffffffffffffffffff
Simple patch for support of NCR MP-RAS unix
User & Date: nobody on 2000-10-26 01:00:44
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 614 Bug
    Version: 8.0p2
    SubmitDate: '1998-05-21'
    LastModified: '1999-08-12'
    Severity: SER
    Status: Released
    Submitter: hershey
    ChangedBy: hobbs
    OS: Other
    OSVersion: NCR MP-RAS unix
    Machine: NA
    FixedDate: '1999-08-12'
    FixedInVersion: 8.2
    ClosedDate: '2000-10-25'
    
    
    Below is a patch I needed to apply to configure.in to get tcl8.0 to compile
    on NCR MP-RAS version 020201 (SVR4.0 on Intel).  It turns out that
    "strncasecmp" is in -lresolv rather than any other place known to tcl, and
    I can't use the strncasecmp that comes in tcl8.0/compat because there's
    already a prototype function in netdb.h that clashes with it.
    
    I have tested that this doesn't cause any problems on sunos 4.1.2, solaris
    5.4, hp/ux 9.04, and irix 5.3.  I think it is quite safe.  Please included
    it in future releases.
    
    The diff was done after the plus patches were applied, but I assume that
    the plus patches didn't touch this part of configure.in.
    
    - Dave Dykstra
    
    
    
    *** tcl8.0/unix/configure.in.orig       Tue Apr 14 11:07:30 1998
    --- tcl8.0/unix/configure.in    Tue Apr 14 15:52:03 1998
    ***************
    *** 555,577 ****
      fi
      
      #--------------------------------------------------------------------
    - #     Check whether there is an strncasecmp function on this system.
    - #     This is a bit tricky because under SCO it's in -lsocket and
    - #     under Sequent Dynix it's in -linet.
    - #--------------------------------------------------------------------
    - 
    - AC_CHECK_FUNC(strncasecmp, tcl_ok=1, tcl_ok=0)
    - if test "$tcl_ok" = 0; then
    -     AC_CHECK_LIB(socket, strncasecmp, tcl_ok=1, tcl_ok=0)
    - fi
    - if test "$tcl_ok" = 0; then
    -     AC_CHECK_LIB(inet, strncasecmp, tcl_ok=1, tcl_ok=0)
    - fi
    - if test "$tcl_ok" = 0; then
    -     LIBOBJS="$LIBOBJS strncasecmp.o"
    - fi
    - 
    - #--------------------------------------------------------------------
      #     The code below deals with several issues related to gettimeofday:
      #     1. Some systems don't provide a gettimeofday function at all
      #        (set NO_GETTOD if this is the case).
    --- 555,560 ----
    ***************
    *** 644,649 ****
    --- 627,657 ----
          AC_CHECK_FUNC(accept, tcl_checkNsl=0, [LIBS=$tk_oldLibs])
      fi
      AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS
    -lnsl"]))
    + 
    + #--------------------------------------------------------------------
    + #     Check whether there is an strncasecmp function on this system.
    + #     This is a bit tricky because under SCO it's in -lsocket and
    + #     Sequent Dynix it's in -linet.  NCR MP-RAS is even tricker
    + #     because it is in -lresolv, but that only works with -lsocket
    + #       and -lnsl so this check has to be done after the check for them.
    + #--------------------------------------------------------------------
    + 
    + AC_CHECK_FUNC(strncasecmp, tcl_ok=1, tcl_ok=0)
    + if test "$tcl_ok" = 0; then
    +     AC_CHECK_LIB(socket, strncasecmp, tcl_ok=1, tcl_ok=0)
    + fi
    + if test "$tcl_ok" = 0; then
    +     AC_CHECK_LIB(inet, strncasecmp, tcl_ok=1, tcl_ok=0)
    + fi
    + if test "$tcl_ok" = 0; then
    +     AC_CHECK_LIB(resolv, strncasecmp, tcl_ok=1, tcl_ok=0)
    +     if test "$tcl_ok" = 1; then
    +       LIBS="-lresolv $LIBS"
    +     fi
    + fi
    + if test "$tcl_ok" = 0; then
    +     LIBOBJS="$LIBOBJS strncasecmp.o"
    
    + fi
      
      #--------------------------------------------------------------------
      #     The statements below define a collection of symbols related to
    
    --OAA21138.892590184/earth.sun.com--
    
    
    
    Added in 8.2.0 
    -- 08/12/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0p2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "61. (unused)"
  10. title changed to: "Simple patch for support of NCR MP-RAS unix"
  11. type changed to: "Bug"