Hi,

Trying to add a bit of functionality to the imap code, mainly an
imap_set_quota function for PHP to call.

This functionality is already in existence in the c-client library under
the imap4rc1.{c|h} file (function is imap_setquota).  My understanding
though, is to  include the c-client.h file (on FreeBSD in
/usr/local/include/c-client) which in turn includes the mail.h and the
imap4r1.h files.  

So, I changed the php_imap.h file to show: 
From:
#include "mail.h"
#include "rfc822.h"
#include "modules.h"
To:
#include "c-client.h"
#include "rfc822.h"
#include "modules.h"


Altered the ext/imap/config.m4 to select the proper location first with
the following change:

From:
   if test "$PHP_IMAP" != "no"; then  
    for i in /usr/local /usr $PHP_IMAP; do
      IMAP_INC_CHK()
      el[]IMAP_INC_CHK(/include)
      el[]IMAP_INC_CHK(/include/imap)
      el[]IMAP_INC_CHK(/include/c-client)
      el[]IMAP_INC_CHK(/imap)
      el[]IMAP_INC_CHK(/c-client)
      fi
    done

To:
   if test "$PHP_IMAP" != "no"; then  
    for i in /usr/local /usr $PHP_IMAP; do
      IMAP_INC_CHK()
      el[]IMAP_INC_CHK(/include/c-client)
      el[]IMAP_INC_CHK(/include)
      el[]IMAP_INC_CHK(/include/imap)
      el[]IMAP_INC_CHK(/imap)
      el[]IMAP_INC_CHK(/c-client)
      fi
    done

rebuilt my configure script, and went to recompile.  Ran into this
error..

gcc -I. -I/home/kalowsky/php/php4/main -I/home/kalowsky/php/php4/main
-I/home/kalowsky/php/php4 -I/usr/local/include/apache
-I/home/kalowsky/php/php4/Zend -I/usr/local/include
-I/usr/local/include/c-client
-I/home/kalowsky/php/php4/ext/xml/expat/xmltok
-I/home/kalowsky/php/php4/ext/xml/expat/xmlparse
-I/home/kalowsky/php/php4/TSRM -DHARD_SERVER_LIMIT=512
-DDOCUMENT_LOCATION=/usr/local/www/data/
-DDEFAULT_PATH=/bin:/usr/bin:/usr/local/bin -DUSE_EXPAT
-DXML_BYTE_ORDER=12 -g -Wall -c internal_functions.c  -fPIC -DPIC -o
internal_functions.lo
In file included from /home/kalowsky/php/php4/ext/imap/php_imap.h:10,
                 from internal_functions.c:33:
/usr/local/include/rfc822.h:87: redefinition of `soutr_t'
/usr/local/include/c-client/rfc822.h:72: `soutr_t' previously declared
here
/usr/local/include/rfc822.h:89: redefinition of `rfc822out_t'
/usr/local/include/c-client/rfc822.h:74: `rfc822out_t' previously
declared here
*** Error code 1

Stop in /home/kalowsky/php/php4/main.
*** Error code 1

Stop in /home/kalowsky/php/php4/main.
*** Error code 1


Any suggestions to correct this?  Or a better way to handle this?  

--
Dan Kalowsky                  "Tonight I think I'll walk alone, 
Worldgate Communications       I'll find my soul as I go home."
Software Engineer - TICS Group          - Temptation

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to