[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash 3.1 compile problems under AIX 4.3.3
From: |
jbuehler |
Subject: |
bash 3.1 compile problems under AIX 4.3.3 |
Date: |
Fri, 16 Dec 2005 08:13:03 -0500 |
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix4.3.3.0
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
-DCONF_OSTYPE='aix4.3.3.0' -DCONF_MACHTYPE='powerpc-ibm-aix4.3.3.0'
-DCONF_VENDOR='ibm' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -I/usr/local/include
-O -qmaxmem=16384
uname output: AIX ganymede 3 4 000043224C00
Machine Type: powerpc-ibm-aix4.3.3.0
Bash Version: 3.1
Patch Level: 0
Release Status: release
Description:
Bash 3.1 does not build out of the box under AIX 4.3.3 with the
native IBM compiler.
Repeat-By:
export CC=cc # that's the version 5.0.2.0 C compiler
export CFLAGS='-O -qmaxmem=16384'
ksh ./configure
make
Fix:
- The link fails because isnan() is not found. Adding -lm fixes this.
export LDFLAGS=-lm # before configure
- The MB_CUR_MAX define is replaced by a function call in the
system headers, so cannot be used as an array dimension.
--- subst.c.~1~ 2005-12-15 15:07:14.000000000 -0500
+++ subst.c 2005-12-16 07:19:50.000000000 -0500
@@ -1776,7 +1775,7 @@
WORD_LIST *list;
{
#if defined (HANDLE_MULTIBYTE)
- char sep[MB_CUR_MAX + 1];
+ char sep[32 + 1];
#else
char sep[2];
#endif
@@ -1817,7 +1816,7 @@
{
char *ifs, *ret;
#if defined (HANDLE_MULTIBYTE)
- char sep[MB_CUR_MAX + 1];
+ char sep[32 + 1];
#else
char sep[2];
#endif
end of message
- bash 3.1 compile problems under AIX 4.3.3,
jbuehler <=