Compiling for Solaris 2.5 ( SunOs 5.5 )

Francesc Guasch frankie at etsetb.upc.es
Wed Sep 25 10:06:43 EDT 2002


Hi.
I have an old Solaris 2.5 box and I need to install cyrus-imap
here. I upgraded to the latest gcc-3.2 and I successfully installed
cyrus-sasl-2.1.7.

I'm trying to compile cyrus-imapd-2.1.9, but I can't
fix this :

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

Any hints ?

-- 
frankie





More information about the Info-cyrus mailing list