[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Bash 2.05b fails to compile on AIX 4.3.3
From: |
Mike Brown |
Subject: |
[PATCH] Bash 2.05b fails to compile on AIX 4.3.3 |
Date: |
Fri, 2 Aug 2002 14:23:19 -0400 |
User-agent: |
Mutt/1.3.25i |
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' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g
uname output: AIX api124 3 4 000039989100
Machine Type: powerpc-ibm-aix4.3.3.0
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
Bash fails to compile using the AIX native compiler. Two of the
problems are due to IBM cc not defining __STDC__ and not allowing user
defines to begin with __ .
Repeat-By:
./configure
make
Fix:
This is a quick hack that worked for me, but isnt the right fix:
--- config-bot.h.orig Thu Aug 1 16:36:57 2002
+++ config-bot.h Thu Aug 1 16:37:11 2002
@@ -74,7 +74,7 @@
# undef JOB_CONTROL
#endif
-#if defined (__STDC__) && defined (HAVE_STDARG_H)
+#if defined (HAVE_STDARG_H)
# define PREFER_STDARG
# define USE_VARARGS
#else
--- builtins/printf.def.orig Mon May 13 14:36:04 2002
+++ builtins/printf.def Thu Aug 1 16:47:17 2002
@@ -342,12 +342,14 @@
intmax_t pp;
p = pp = getintmax ();
+#if 0
if (p != pp)
{
f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
PF (f, pp);
}
else
+#endif
{
/* Optimize the common case where the integer fits
in "long". This also works around some long
@@ -369,12 +371,14 @@
uintmax_t pp;
p = pp = getuintmax ();
+#if 0
if (p != pp)
{
f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
PF (f, pp);
}
else
+#endif
{
f = mklong (start, "l", 1);
PF (f, p);
--- lib/readline/readline.h.orig Fri Aug 2 13:38:39 2002
+++ lib/readline/readline.h Fri Aug 2 13:38:59 2002
@@ -358,7 +358,7 @@
extern int rl_reset_line_state PARAMS((void));
extern int rl_crlf PARAMS((void));
-#if (defined (__STDC__) || defined (__cplusplus)) && defined (USE_VARARGS) &&
defined (PREFER_STDARG)
+#if defined (USE_VARARGS) && defined (PREFER_STDARG)
extern int rl_message (const char *, ...) __attribute__((__format__ (printf,
1, 2)));
#else
extern int rl_message ();
-Michael F. Brown, EMC Corp.
Email: mbrown@emc.com
"5 years from now everyone will be running free
GNU on their 200 MIPS, 64M SPARCstation-5." -Andrew Tanenbaum '92
(In late 1997 I installed Linux for the first time on my 200Mhz, 128M
AMD x86 clone)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Bash 2.05b fails to compile on AIX 4.3.3,
Mike Brown <=