Hi. I'm having some problems getting imap2004a working on a NetBSD Sparc64 host. There are quite a few:

env_unix.c:1633: warning: cast to pointer from integer of different size
env_unix.c:1636: warning: cast from pointer to integer of different size

..type of warnings. The ones listed there I doubt are terribly important,
but some of them may very well indicate problems.


Particularly, tho, I've found a problem that doesn't produce an error.
In tcp_unix.c, getsockname() is called, and the third argument given
to is is a size_t*. However, on NetBSD, it calls for a socklen_t*, which
is a pointer to a 32-bit value, and size_t is a long, and therefore 64 bits.


Changing this to a socklen_t (in a few places in tcp_unix.c and ip4_unix.c)
fixes the problem, and causes the returned struct to actually contain
values, as getsockbyname() won't now understand it's third arg to be
a zero...


  Is there any other work done on making this safe for a 64-bit machine?

                              - Chris

--
------------------------------------------------------------------
For information about this mailing list, and its archives, see: http://www.washington.edu/imap/c-client-list.html
------------------------------------------------------------------

Reply via email to