Artifacts Associated With Ticket 218461ffffffffff
Ticket change [31a7f9ef27] (rid 93469) by nobody on 2000-10-26 01:00:44:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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 - foundin initialized to: "obsolete: 8.0p2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "61. (unused)"
- title initialized to: "Simple patch for support of NCR MP-RAS unix"
- type initialized to: "Bug"
Ticket change [7d5e65d21a] (rid 97228) by welch on 2000-10-26 08:22:17:
- closedate changed to: "2000-10-26T01:22:17"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [3e7872a023] (rid 121274) by dgp on 2001-04-05 08:22:18:
- closedate changed to: "2001-04-05T01:22:18"
- closer changed to: "dgp"
- subsystem changed to: "53. Configuration and Build Tools"