note 73364 added to ref.imap
| From: | eeescalona at yahoo dot com | Date: | Tue, 20 Feb 2007 08:49:53 +0000 |
| Subject: | note 73364 added to ref.imap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123591@lists.php.net to get a copy of this message | ||
fyi.
I had an error during this process
*downloaded from ftp.cac.washington.edu imap-2006e.tar.gz
*untarred it as /usr/local/src/imap-2006e.
*made lrh (make lrh)
*copied /usr...imap-2006e/c-client/c-client.a into ..../client/libc-client.a
*cd /usr/local/src/php-4.2.1/
*configured php using ... --with-imap=/usr/local/src/imap-2006e --with-ssl
*and during make the following error occurred.
php_imap.c:71: error: conflicting types for 'utf8_mime2text'
/usr/local/src/imap-2006e//c-client/utf8aux.h:37: error: previous declaration of
'utf8_mime2text' was here
php_imap.c:71: error: conflicting types for 'utf8_mime2text'
/usr/local/src/imap-2006e//c-client/utf8aux.h:37: error: previous declaration of
'utf8_mime2text' was here
make[3]: *** [php_imap.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.1/ext/imap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.1/ext/imap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.1/ext'
make: *** [all-recursive] Error 1
apparently, apache 4.2.1 and imap-2006e has the same declared function which creates a duplication
problem. the utf8_mime2text function is both found on files:
php-4.2.1/imap/php_imap.c (2 occurences)
imap-2006e/c-client/utf8aux.h (1 occurences)
imap-2006e/c-client/utf8aux.c (1 occurrences)
imap-2006e/c-client/mail.c (5 occrences)
bug fixers says i have to upgrade my php, but I cant afford to change versions since i run some home
grown developed php software which doesnt work on higher versions.
So I did this.
I replaced all utf8_mime2text texts with utf8_mime2text2 for the imap sources.
since my server is both web and mysql, i used a built in mysql command called 'replace'
$>replace utf8_mime2text utf8_mime2text2 -- /..../c-client/utf8aux.h
$>replace utf8_mime2text utf8_mime2text2 -- /..../c-client/utf8aux.c
$>replace utf8_mime2text utf8_mime2text2 -- /..../c-client/mail.c
then i continued make and make install, without the reported error.
caveats...i just did this to try it. i dunno if it will work later...
----
Server IP: 69.147.83.197
Probable Submitter: 202.73.176.121 (proxied: 192.168.0.4)
----
Manual Page -- http://www.php.net/manual/en/ref.imap.php
Edit -- https://master.php.net/note/edit/73364
Del: integrated -- https://master.php.net/note/delete/73364/integrated
Del: useless -- https://master.php.net/note/delete/73364/useless
Del: bad code -- https://master.php.net/note/delete/73364/bad+code
Del: spam -- https://master.php.net/note/delete/73364/spam
Del: non-english -- https://master.php.net/note/delete/73364/non-english
Del: in docs -- https://master.php.net/note/delete/73364/in+docs
Del: other reasons-- https://master.php.net/note/delete/73364
Reject -- https://master.php.net/note/reject/73364
Search -- https://master.php.net/manage/user-notes.php