On Wed, Oct 04, 2006 at 08:14:45AM +0000, Andy Fiddaman wrote:
> 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.
>
I've been using these fixes for php-5.1.6 (BTW, php-5.2.0 has fixed
utf8_mime2text calls to work for imap2006[a-c])
I'm finding another issue with compiling php using imap2006d.
(imap-2006d.DEV.SNAP-0611062033)
The final load of php emits this error:
Undefined first referenced
symbol in file
mail_expunge_full ext/imap/.libs/php_imap.o
ld: fatal: Symbol referencing errors. No output written to
sapi/cli/php
make: *** [sapi/cli/php] Error 1
I've added the function definition of mail_expunge_full()
long mail_expunge_full (MAILSTREAM *stream,char *sequence,long options)
{
/* do the driver's action */
return stream->dtb ? (*stream->dtb->expunge) (stream,sequence,options) : NIL;
}
tothe ext/imap/php_imap.c to work around this, but I'm not sure
if that is the right approach.
Pardon my post of a primarily php issue.
_Gary
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw