Compiling cyrus-imapd for Solaris 2.5 ( Respost )
Hajimu UMEMOTO
ume at mahoroba.org
Wed Oct 23 08:50:35 EDT 2002
Hi,
>>>>> On Wed, 23 Oct 2002 10:13:18 +0200
>>>>> Francesc Guasch <frankie at etsetb.upc.es> said:
frankie> Carson Gaspar wrote:
> --On Monday, October 21, 2002 10:43 AM +0200 Francesc Guasch
>
>> In file included from getaddrinfo.c:71:
>> /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/3.2/include/rpc/clnt.h:110:
>> field `RE_why' has incomplete type
> defined in /usr/include/rpc/auth.h
>
frankie> Thank you ! I added a couple more of includes in getaddrinfo.c and
frankie> now it compiles.
frankie> I'm afraid it now stops in getnameinfo.c. I have been trying
frankie> hard to look for the right file to include
frankie> getnameinfo.c: In function `sasl_getnameinfo':
frankie> getnameinfo.c:92: type of formal parameter 1 is incomplete
frankie> getnameinfo.c:95: type of formal parameter 1 is incomplete
frankie> if (strlen(
frankie> inet_ntoa(
sin->sin_addr
frankie> 92: )) >= hostlen)
frankie> return EAI_MEMORY;
frankie> else {
frankie> 95: strcpy(host, inet_ntoa(sin->sin_addr));
frankie> It looks like inet_ntoa doesn't like the return of sin->sin_addr
frankie> so I tried to cast it to (const struct in_addr). But I must be
frankie> wrong because it didn't work.
I cannot believe that that code couldn't be compiled.
frankie> anything else I could try ?
The friend of mine tried to build under SunOS 5.5.1 with Sun C
compiler and gcc:
SunOS xxxxx.xxx.xx.xx 5.5.1 Generic_103640-33 sun4u sparc SUNW,Ultra-2
gcc: egcs-2.91.66
cc: SC4.0 18 Oct 1995 C 4.0
I heared the result that it was compiled fine with ether gcc or cc. I
suspect that there is something wrong in your installation of gcc-3.2.
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org ume at bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the Info-cyrus
mailing list