Q32: Problems with socket.h on AIX, ...?


? Got something to say about this answer? Hit the question mark to invoke the mailer and send your comments to the HylaFAQ maintainers.

Q.
Problems with socket.h on AIX, ...?

A.
Date: Sun, 28 Jul 1996 10:05:15 -0700
From: Sam Leffler <sam@hyla.chez.sgi.com>
Subject: Re: calling last chance on bug fixes

    To:  flexfax@sgi.com
    Subject:  Re: calling last chance on bug fixes
    Date: Fri, 26 Jul 1996 18:09:47 CDT
    From:  Bob Jackiewicz 312-413-1258 

    I have the following problem when trying to compile beta018. I'm using AIX
    4.2, gcc 2.7.2, and libg++ 2.7.2. in util/InetTransport.c++, I get the
    following errors:
    
    Socket.h: In function `static int Socket::accept(int, void *, int *)':
    In file included from InetTransport.c++:41:
    Socket.h:52: passing `int *' as argument 3 of `accept(int, sockaddr *,
    long unsigned int *)'
    Socket.h: In function `static int Socket::getpeername(int, void *, int
    *)':
    Socket.h:58: passing `int *' as argument 3 of `getpeername(int, sockaddr
    *, long unsigned int *)'
    Socket.h: In function `static int Socket::getsockname(int, void *, int
    *)':
    Socket.h:60: passing `int *' as argument 3 of `getsockname(int, sockaddr
    *, long unsigned int *)'
    Socket.h: In function `static int Socket::getsockopt(int, int, int, void
    *, int *)':
    Socket.h:62: passing `int *' as argument 5 of `getsockopt(int, int, int,
    void *, long unsigned int *)'
    make[3]: *** [InetTransport.o] Error 1
    
    I also get the same (or similar) errors in hfaxd/Parser.c++.  Has anyone
    successfully compiled beta018 on AIX 4.2? Just to be sure that I got all
    of the headers fixed, I reinstalled gcc-2.7.2 and libg++-2.7.2. Thanks for
    any response!
    
This has been discussed previously on this list.  Your system include
file defines these socket calls with a different API than is expected
(I hesitate to say standard).  You must either change the include files
or alter the code in util/Socket.h.

        Sam


Note: Some of the hyperlinks (e.g. for the man pages) can only work, if the HylaFAX software and the full documentation are installed on your system.

Matthias Apitz / guru@softcon.de ; (07:34:58 AM 01/27/97)