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
Thank you ! I added a couple more of includes in getaddrinfo.c and
now it compiles.
I'm afraid it now stops in getnameinfo.c. I have been trying
hard to look for the right file to include
getnameinfo.c: In function `sasl_getnameinfo':
getnameinfo.c:92: type of formal parameter 1 is incomplete
getnameinfo.c:95: type of formal parameter 1 is incomplete
if (strlen(
inet_ntoa(
sin->sin_addr
92: )) >= hostlen)
return EAI_MEMORY;
else {
95: strcpy(host, inet_ntoa(sin->sin_addr));
It looks like inet_ntoa doesn't like the return of sin->sin_addr
so I tried to cast it to (const struct in_addr). But I must be
wrong because it didn't work.
anything else I could try ?
--
frankie