On Tue, 3 Oct 2006, Mark Crispin wrote:
; On Tue, 3 Oct 2006, Alon Friedman wrote:
; > I'm experiencing problems compiling the c-client libraries with php
; > 5.1.6. I suspect the issue is with php. I'm still investigating the
; > issue.
;
; It is possible that php 5.1.6 may expect an older version of the c-client
; library. If so, you can get the previous release, imap-2004g, at
; ftp://ftp.cac.washington.edu/mail/old/imap-2004g.tar.Z
PHP uses the utf8_mime2text() function which changed in imap2006.
you can run the following in your PHP source tree:
f=ext/imap/php_imap.c
cp $f $f~
sed '
/^long utf8_mime2text(/d
/utf8_mime2text/s/dest)/dest, 0)/
' < $f~ > $f
(i.e. remove the prototype and add an extra argument of 0 to the function
call)
I also had to force compilation of PIC objects (64-bit SPARC, Solaris
10, gcc 4) to get PHP to link with the library - I build with:
make gso EXTRACFLAGS=-fPIC
In the past gcc would have linked the object anyway, it just wouldn't have
been very relocatable and you wouldn't have had much memory saving; gcc 4
and recent versions of libtool changed this behaviour and refuse to link.
Andy
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw