building bash on AIX 5.1

building bash on AIX 5.1

Post by efiry.. » Wed, 02 Apr 2003 05:32:05



I am trying to build GNU bash V2.05b.0(8) on AIX 5.1. The 'make' step
fails at compiling bash's error.c source with the following error:

        cc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"powerpc"'
-DCONF_OSTYPE='"aix5.1.0.0"'
-DCONF_MACHTYPE='"powerpc-ibm-aix5.1.0.0"' -DCONF_VENDOR='"ibm"'
-DSHELL  -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g -c error.c
"error.c", line 125.1: 1506-343 (S) Redeclaration of programming_error
differs from previous declaration on line 33 of "error.h".
"error.c", line 125.1: 1506-378 (I) Prototype for function
programming_error cannot contain "..." when mixed with a nonprototype
declaration.

Does anybody know how to fix that?

Thanks,
-Eugene

 
 
 

building bash on AIX 5.1

Post by efiry.. » Thu, 03 Apr 2003 03:54:07




> epc> I am trying to build GNU bash V2.05b.0(8) on AIX 5.1. The 'make' step
> epc> fails at compiling bash's error.c source with the following error:

> epc>         cc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"powerpc"'
> epc> -DCONF_OSTYPE='"aix5.1.0.0"'
> epc> -DCONF_MACHTYPE='"powerpc-ibm-aix5.1.0.0"' -DCONF_VENDOR='"ibm"'
> epc> -DSHELL  -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g -c error.c
> epc> "error.c", line 125.1: 1506-343 (S) Redeclaration of programming_error
> epc> differs from previous declaration on line 33 of "error.h".
> epc> "error.c", line 125.1: 1506-378 (I) Prototype for function
> epc> programming_error cannot contain "..." when mixed with a nonprototype
> epc> declaration.

> epc> Does anybody know how to fix that?

> Try adding -DPREFER_STDARG to LOCAL_DEFS in the Makefile.

Thanks Nicholas, it worked!

- Show quoted text -

Quote:> Regards,

> Nicholas


 
 
 

building bash on AIX 5.1

Post by R. Bernste » Thu, 03 Apr 2003 11:07:04


For another reason I was reading the AIX forum and came across this.

If you are going to compile bash 2.05b you may as well get a de*
and debugging support. See http://www.veryComputer.com/.

I've been told that the necessary changes to bash to support debugging
will be in the next release of bash, whenever that is.