[Top][All Lists]

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

Subject: shell.c, line 1628: incompatible arg types

From: Tim McDaniel
Subject: Subject: shell.c, line 1628: incompatible arg types
Date: Sun, 22 Jul 2001 14:43:37 -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


    I blush, but I don't know whether I sent this already or not.
    (The mailer on the machine I was building on doesn't work, so I
    had to forward the bounce messages elsewhere and send from there.)
    If this is a duplicate, I apologize.

    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 it 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 *);

    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

reply via email to

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