bug-bash
[Top][All Lists]
Advanced

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

shell.c, line 1628: incompatible arg types


From: Timothy A. McDaniel
Subject: shell.c, line 1628: incompatible arg types
Date: Sat, 21 Jul 2001 20:09:18 -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' -DSHEL\L -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:
    xlc  -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 -c shell\.c
    "shell.c", line 1628.29: 1506-280 (E) Function argument assignment between 
types "unsigned long*" and "int*" is not allowed.

The offending line is
  rv = getpeername(fd, &sa, &l);
Character 29 is "&l", and l is an int.
    /usr/include/sys/socket.h:76:typedef __ulong32_t socklen_t;
and line 406 is apparently the applicable definition:
    int     getpeername(int, struct sockaddr *, socklen_t *);

Repeat-By:
    Install the C for AIX compiler for Visual Age C 5.0.1
    Put /usr/vac/bin in PATH
    export CC=xlc
    ./configure --without-gnu-malloc
    make



reply via email to

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