From: nhma To: bug-bash@gnu.org Subject: make on AIX5.3, using xlc, compile failed on util.c
Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: aix5.2.0.0 Compiler: /usr/vac/bin/xlc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -DCONF_OSTYPE='aix5.2.0.0' -DCONF_MACHTYPE='powerpc-ibm-aix5.2.0.0' -DCONF_VENDOR='ibm' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' -DSHEL L -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -I./lib/intl -I/home/XXXXX/nhma/TEMP/bash-4.0/lib/intl -g uname output: AIX pbuild1 2 5 005F8DDD4C00 Machine Type: powerpc-ibm-aix5.2.0.0 Bash Version: 4.0 Patch Level: 0 Release Status: release Description: [Detailed description of the problem, suggestion, or complaint.] During make, on AIX5.2, using compiler xlc. /usr/vac/bin/xlc -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/XXXXX/nhma/TEMP/bash-4.0 -I../.. -I../../lib -g util.c "util.c", line 84.1: 1506-343 (S) Redeclaration of _rl_walphabetic differs from previous declaration on line 109 of "rlmbutil.h". "util.c", line 84.1: 1506-379 (I) Prototype for function _rl_walphabetic must contain only promoted types if prototype and nonprototype declarations are mixed. "util.c", line 84.1: 1506-380 (I) Parameter 1 has type "unsigned short" which promotes to "int". make: 1254-004 The error code from the last command is 1. Repeat-By: [Describe the sequence of events that causes the problem to occur.] make Fix: [Description of how to fix the problem. If you don't know a fix for the problem, don't include this section.] change line 109+ from int _rl_walphabetic (wc) wchar_t wc; { to int _rl_walphabetic ( wchar_t wc) { ~