Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Simple patch for support of NCR MP-RAS unix

Closed / Fixed218461ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:00:44
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
welch Closed ticket [218461ffff]. [History diff]2000-10-26 08:22:17
dgp Ticket [218461ffff]: 3 changes [History diff]2001-04-05 08:22:18
Log in (anonymous is fine) to add a comment.