bug-bash
[Top][All Lists]
Advanced

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

bash 2.05 lib/readline/rldefs.h line 76 missing closing ')' character


From: Libove, Jay
Subject: bash 2.05 lib/readline/rldefs.h line 76 missing closing ')' character
Date: Tue, 22 Apr 2003 14:06:35 -0400

The following comments relate to BASH source code v2.05 on the NCR MP-RAS SysV r4 derivative. Once modified as noted below, ./support/config.guess reports i586-ncr-sysv4.3.03 on this machine.

 

The file lib/readline/rldefs.h on line 76 is missing a closing parenthesis, and on line 77 the declaration of strnicmp is missing the third parameter (int).

 

In addition, though I couldn't figure out the right way to set up the configure scripts to determine this automatically, this platform has gethostname() but it is in –lnsl. I manually hacked config.h after running the configure script to change "#undef HAVE_GETHOSTNAME" to "#define HAVE_GETHOSTNAME" to make it compile.

 

-Jay Libove, CISSP

 

 

*** rldefs.h.OLD        Tue Apr 22 13:27:16 2003

--- rldefs.h    Tue Apr 22 13:24:51 2003

***************

*** 73,79 ****

  #define _rl_stricmp strcasecmp

  #define _rl_strnicmp strncasecmp

  #else

! extern int _rl_stricmp __P((char *, char *);

! extern int _rl_strnicmp __P((char *, char *));

  #endif

 

--- 73,79 ----

  #define _rl_stricmp strcasecmp

  #define _rl_strnicmp strncasecmp

  #else

! extern int _rl_stricmp __P((char *, char *));

! extern int _rl_strnicmp __P((char *, char *, int));

  #endif

 

 

Also, to make the support/config.guess script able to identify the oddball NCR machine on which I noticed the above problem:

 

*** support/config.guess.orig   Tue Apr 22 13:42:43 2003

--- support/config.guess        Tue Apr 22 13:42:03 2003

***************

*** 975,981 ****

        exit 0 ;;

      M68*:*:R3V[567]*:*)

        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;

!     3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)

        OS_REL=''

        test -r /etc/.relid \

        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`

--- 975,981 ----

        exit 0 ;;

      M68*:*:R3V[567]*:*)

        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;

!     [34][34]??:*:4.0:3.0 | [34][34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)

        OS_REL=''

        test -r /etc/.relid \

        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]