Re[2]: building on AIX



On Sat, 23 Oct 2004 20:51:05 +0200 Roland Illig <roland illig gmx de> wrote:

> > ftpfs.c: In function `ftpfs_initconn':
> > ftpfs.c:889: warning: passing arg 3 of `ngetsockname' from incompatible pointer type
> > ftpfs.c:912: warning: passing arg 3 of `ngetsockname' from incompatible pointer type
> > ftpfs.c: In function `ftpfs_open_data_connection':
> > ftpfs.c:957: warning: passing arg 3 of `naccept' from incompatible pointer type
> 
> Thanks for reporting these.
> 
> The patch is to add an AC_CHECK_TYPE(socklen_t, int) to configure.ac 
> and then replace the types in all the wrong declarations with socklen_t.

OK, now these warnings are gone, but there's a new one:
In file included from ftpfs.c:60:
/usr/include/sys/socket.h:80: warning: empty declaration

/usr/include/sys/socket.h:80 is:
typedef __ulong32_t socklen_t;

While running configure I saw:
checking for socklen_t... no

And config.h after running configure has:
/* Define to `int' if <sys/types.h> does not define. */
#define socklen_t int

If I comment it out then there are no warnings.

Regards,
Nerijus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]