[imp] php imap problem

Chris Crowley ccrowley@tulane.edu
Thu, 2 Nov 2000 17:02:05 -0600


----- Original Message -----
From: "Brent J. Nordquist" <bjn@horde.org>
>
> Second, the way I do UW-IMAP with Solaris is to compile it, and then I do
> what amounts to an IMAP c-client install, as follows:
>

An additional note: I had problems compiling c-client, too. I got this info
from Mark Crispin:

----- Original Message -----
From: "Mark Crispin"
To:"Chris Crowley"
>> When I attempt the compile, I run into this:
>>
>> gcc -g -O2    -c mbx.c -o mbx.o
>> mbx.c: In function `mbx_hdrpos':
>> mbx.c:1371: internal error--unrecognizable insn:
>> (insn 78 76 80 (set (reg:SI 129)
>>         (minus:SI (const_int 4 [0x4])
>>             (const_int -4096 [0xfffff000]))) -1 (nil)
>>     (expr_list:REG_EQUAL (const_int 4100 [0x1004])
>>         (nil)))
>> make[3]: *** [mbx.o] Error 1

> This is a known problem with GCC 2.95 on Solaris.  It's a compiler bug.
> The problem does not happen with earlier versions of GCC (e.g. 2.8 or
> 2.7).

> I just received an email claiming that a successful workaround is to
> change line 1336 of mbx.c from
>    LOCAL->buf = (char *) fs_get ((LOCAL->buflen = HDRBUFLEN) + SLOP);
> to
>    LOCAL->buflen = HDRBUFLEN;
 >   LOCAL->buf = (char *) fs_get (LOCAL->buflen + SLOP);

The fix works.
--Chris