[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AIX 4.3 - cannot execute binary file

From: gedimin
Subject: AIX 4.3 - cannot execute binary file
Date: 28 Jan 2002 09:36:52 -0000

From: address@hidden
To: address@hidden
Subject: AIX 4.3- cannot execute binary file

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix4.3.0.0
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' 
-DCONF_OSTYPE='aix4.3.0.0' -DCONF_MACHTYPE='powerpc-ibm-aix4.3.0.0' 
-DCONF_VENDOR='ibm' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I/usr/local/include -g
uname output: AIX Aistis 3 4 004218884C00
Machine Type: powerpc-ibm-aix4.3.0.0

Bash Version: 2.05
Patch Level: 0
Release Status: release

        Unable to execute any script. Get an error message 
        'Unable to execute binary file'.

        Any script without '#!' at the begining.

        Commenting out 'isspace' and 'isprint' definitions in file
        'general.c' at line #384 solves the problem.
        There are some problems with 'isprint()' in file 'general.c' in
        function 'check_binary_file'. I put a small test in function

            fprintf( "isprint=%d, isletter=%d, digit=%d, ispunct=%d\n",
                      isprint('#'), isletter('#'), digit('#'), ispunct('#'));
        Got theese results:
            isprint=0, isletter=0, digit=0, ispunct=0

        On another AIX machine bash runs without this error. There is
        slightly different aix version (AIX 3 4 002025354800). With the same
        binary file got theese results:
            isprint=1, isletter=0, digit=0, ispunct=256

        Don't know exactly, what causes theese results. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]