bug-bash
[Top][All Lists]
Advanced

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

evalstring, line 337: function arg mismatch


From: Timothy A. McDaniel
Subject: evalstring, line 337: function arg mismatch
Date: Sat, 21 Jul 2001 20:04:59 -0500 (CDT)

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix4.3.3.0
Compiler: xlc
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 
-I/usr/local/include -g
uname output: AIX bdstbt14 3 4 00012A5F4C00
Machine Type: powerpc-ibm-aix4.3.3.0

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

Description:

    It looks like the AIX xlc compiler is picky about type
    mismatches.  It may be pickier than the ANSI C standard.  Frex, I
    recall that function pointers of all types are effectively
    required to have the same size and layout.

    However, I thought I'd report them in the hopes that maybe it
    would be possible to do an easy tweak and make it a clean build.

    xlc -c  -DHAVE_CONFIG_H -DSHELL   -I. -I..  -I.. -I../include -I../lib -I.  
-g evalstring.c
    "evalstring.c", line 337.22: 1506-280 (E) Function argument assignment 
between types "unsigned char*" and "char*" is not allowed.

The line is
          if (zwrite (1, lbuf, nr) < 0)
and char 22 is the start of "lbuf".

Repeat-By:
Compile.



reply via email to

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