On Aug 18, 2006, at 18:18, Mark Crispin wrote:
I've never tried to make imapd work in 64-bit mode, or for that matter build it. The problem is that imapd was written according to K&R and the principles expressed in K&R. Thus, it assumes that a 64-bit compilers would have 64-bit longs; whereas most 64-bit compilers have 32-bit ints and longs and use the new "long long" type which wasn't in K&R.

I had problems just like this a couple of years ago working on an UltraSPARC running NetBSD. Mark helped me get patches in place for me that worked, but sadly, I don't remember exactly
where they were.  Lemme see if I can locate them.

Ahh, looks like it went into os_bsi.c, so it would be NetBSD/BSDi specific. :-( Mark is generally disinterested in changes to code that has been mostly working, for understand-
able reasons.  :-)

Anyway, assuming there's an archive of this mailing list somewhere, the thread started
in September of 2004, and is Subject'ed:

  64-bit problems with c-client imap2004a

At the end of this is code that went into imap2004b, but must not apply to 64-bit builds
on Solaris.  But, this will likely direct you to the problem.

Let me know if you need a hand, and I can dig out the code and look at it again. :-)

                                     - Chris

_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to