php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10878 Compile problem with IMAP support
Submitted: 2001-05-15 10:14 UTC Modified: 2001-06-18 20:27 UTC
From: sean dot truman at prodigysolutions dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.5 OS: sparc-sun-solaris2.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sean dot truman at prodigysolutions dot com
New email:
PHP Version: OS:

 

 [2001-05-15 10:14 UTC] sean dot truman at prodigysolutions dot com
configure line is:
./configure --with-mysql=/usr \ 
--with-imap=y \                 
--with-apache=../apache_1.3.19 \
--enable-track-vars \           
--enable-register-globals \     
--enable-trans-sid              


make[2]: Entering directory `/usr/local/src/php-4.0.5/main'                                                                         
gcc  -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5 -I/usr/local/src/apache_1.3.19/s
rc/include -I/usr/local/src/apache_1.3.19/src/os/unix -I/usr/local/src/php-4.0.5/Zend -I/usr/include/mysql -I/usr/local/src/php-4.0.
5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c main.c && touch main.lo                                                              
gcc  -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5 -I/usr/local/src/apache_1.3.19/s
rc/include -I/usr/local/src/apache_1.3.19/src/os/unix -I/usr/local/src/php-4.0.5/Zend -I/usr/include/mysql -I/usr/local/src/php-4.0.
5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c internal_functions.c && touch internal_functions.lo                                  
In file included from internal_functions.c:32:                                                                                      
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:50: parse error before `MAILSTREAM'                                                    
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:50: warning: no semicolon at end of struct or union                                    
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:58: parse error before `}'                                                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:58: warning: data definition has no type or storage class                              
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:61: parse error before `SIZEDTEXT'                                                     
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:61: warning: no semicolon at end of struct or union                                    
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:65: parse error before `}'                                                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:65: warning: data definition has no type or storage class                              
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:68: parse error before `SIZEDTEXT'                                                     
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:68: warning: no semicolon at end of struct or union                                    
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:70: conflicting types for `next'                                                       
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:64: previous declaration of `next'                                                     
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:71: parse error before `}'                                                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:71: warning: data definition has no type or storage class                              
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:156: parse error before `STRINGLIST'                                                   
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:156: warning: no semicolon at end of struct or union                                   
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:157: warning: data definition has no type or storage class                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:158: parse error before `*'                                                            
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:158: warning: data definition has no type or storage class                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:159: parse error before `*'                                                            
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:159: warning: data definition has no type or storage class                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:161: parse error before `*'                                                            
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:161: warning: data definition has no type or storage class                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:162: parse error before `*'                                                            
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:162: warning: data definition has no type or storage class                             
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:174: parse error before `}'                                                            
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:174: warning: data definition has no type or storage class                             
make[2]: *** [internal_functions.lo] Error 1                                                                                        
make[2]: Leaving directory `/usr/local/src/php-4.0.5/main'                                                                          
make[1]: *** [all-recursive] Error 1                                                                                                
make[1]: Leaving directory `/usr/local/src/php-4.0.5/main'                                                                          
make: *** [all-recursive] Error 1                                                                                                   

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-16 00:17 UTC] sniper@php.net
Is there really a path 'y' in your system? 
What version of c-client you have?
And where is it located? and the header files?

--Jani


 [2001-05-16 09:31 UTC] sean dot truman at prodigysolutions dot com
Sorry no I have tried it with --with-imap I am running the most recent version ftp://ftp.cac.washington.edu/imap/imap.tar.Z
 [2001-05-16 10:20 UTC] sean dot truman at prodigysolutions dot com
cp c-client.a /usr/lib/libc-client.a
cp rfc822.h /usr/include
cp linkage.h /usr/include
cp mail.h /usr/include

 [2001-05-16 10:57 UTC] sean dot truman at prodigysolutions dot com
--with-imap=../imap-2001 (Same thing)
--with-imap=/usr/include (Same thing)
 [2001-05-27 15:34 UTC] sniper@php.net
Try doing this:

# mkdir /opt/imap-2001
# cd /opt/imap-2001
# ln -s /usr/local/src/imap-2001/c-client lib
# ln -s /usr/local/src/imap-2001/c-client include

And then point PHP configure to that dir:

--with-imap=/opt/imap-2001


--Jani

 [2001-06-18 20:27 UTC] sniper@php.net
No feedback, considered fixed.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 23:01:28 2025 UTC