Compiling for Solaris 2.5

James Greenhalgh james.greenhalgh at worldpay.com
Tue Oct 1 06:38:36 EDT 2002


On Tue, 01 Oct 2002 09:57:38 +0200
Francesc Guasch <frankie at etsetb.upc.es> wrote:

> gcc -c -I..   -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 \
> getaddrinfo.c
> getaddrinfo.c: In function `malloc_ai':
> getaddrinfo.c:76: sizeof applied to an incomplete type
> getaddrinfo.c:78: sizeof applied to an incomplete type
> getaddrinfo.c:81: sizeof applied to an incomplete type
> getaddrinfo.c:86: dereferencing pointer to incomplete type
> getaddrinfo.c:87: dereferencing pointer to incomplete type
> getaddrinfo.c: In function `sasl_getaddrinfo':
> getaddrinfo.c:132: storage size of `in' isn't known
> getaddrinfo.c:145: `IPPROTO_UDP' undeclared (first use in this function)
> getaddrinfo.c:145: (Each undeclared identifier is reported only once
> getaddrinfo.c:145: for each function it appears in.)
> getaddrinfo.c:148: `IPPROTO_TCP' undeclared (first use in this function)
> getaddrinfo.c:157: warning: implicit declaration of function `htons'
> getaddrinfo.c:180: warning: implicit declaration of function `htonl'
> getaddrinfo.c:188: warning: implicit declaration of function `inet_aton'
> getaddrinfo.c:202: dereferencing pointer to incomplete type
> getaddrinfo.c:132: warning: unused variable `in'
> make[1]: *** [getaddrinfo.o] Error 1
> make[1]: Leaving directory `/disc2/src/cyrus-imapd-2.1.9/lib'
> make: *** [all] Error 1

Add #include <inet/arpa.h> to the includes in getaddrinfo.c





More information about the Info-cyrus mailing list