[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with int_rl_strnicmp define in lib/readline/rldefs.h
From: |
Mark Waite |
Subject: |
Problem with int_rl_strnicmp define in lib/readline/rldefs.h |
Date: |
Wed, 12 Dec 2001 14:20:40 +0100 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: sysv4.2uw2.1
Compiler: gcc
Compilation
CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='sys\
v4.2uw2.1' -DCONF_MACHTYPE='i386-pc-sysv4.2uw2.1' -DCONF_VENDOR='pc' -DSHELL
-\
DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2
uname output: UNIX_SV OGYRSM1 4.2MP 2.1 i386 x86at
Machine Type: i386-pc-sysv4.2uw2.1
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
Running make on UnixWare 2.1.x system:
lib/readline did not compile:
gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I/usr/marktools/usr/waitem/bash-2.05a -I
..
/.. -I../../lib -g -O2 complete.c
complete.c: In function `rl_filename_completion_function':
complete.c:1632: too many arguments to function `_rl_strnicmp'
make: *** [complete.o] Error 1
Repeat-By:
Running make on UnixWare 2.1.x system
Fix:
Patch lib/readline/rldefs.h as follows:
*** rldefs.h~ Mi Dez 12 13:20:18 2001
--- rldefs.h Mi Dez 12 13:20:57 2001
***************
*** 74,80 ****
#define _rl_strnicmp strncasecmp
#else
extern int _rl_stricmp PARAMS((char *, char *));
! extern int _rl_strnicmp PARAMS((char *, char *));
#endif
#if defined (HAVE_STRPBRK)
--- 74,80 ----
#define _rl_strnicmp strncasecmp
#else
extern int _rl_stricmp PARAMS((char *, char *));
! extern int _rl_strnicmp PARAMS((char *, char *, int));
#endif
#if defined (HAVE_STRPBRK)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problem with int_rl_strnicmp define in lib/readline/rldefs.h,
Mark Waite <=