php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17458 Can't compile with IMAP support
Submitted: 2002-05-27 13:22 UTC Modified: 2003-01-20 15:44 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mgamble at eol dot ca Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.1 OS: BSDi 4.2/4.3
Private report: No CVE-ID: None
 [2002-05-27 13:22 UTC] mgamble at eol dot ca
Can't compile PHP 4.2.1 (or 4.2.0) with IMAP support on BSDi 4.2 or 4.3

uage_parser.c || echo './'`zend_language_parser.c
In file included from zend.h:55,
                 from zend_compile.h:24,
                 from zend_language_parser.c:147:
/usr/include/unix.h:182: syntax error before `MAILSTREAM'
/usr/include/unix.h:193: syntax error before `*'
/usr/include/unix.h:193: warning: data definition has no type or storage class
/usr/include/unix.h:196: syntax error before `*'
/usr/include/unix.h:197: syntax error before `*'
/usr/include/unix.h:198: syntax error before `*'
/usr/include/unix.h:199: syntax error before `*'
/usr/include/unix.h:200: syntax error before `*'
/usr/include/unix.h:201: syntax error before `*'
/usr/include/unix.h:202: syntax error before `*'
/usr/include/unix.h:202: syntax error before `*'
/usr/include/unix.h:202: warning: data definition has no type or storage class
/usr/include/unix.h:203: syntax error before `*'
/usr/include/unix.h:204: syntax error before `*'
/usr/include/unix.h:206: syntax error before `*'
/usr/include/unix.h:207: syntax error before `*'
/usr/include/unix.h:209: syntax error before `*'
/usr/include/unix.h:210: syntax error before `*'
/usr/include/unix.h:211: syntax error before `*'
/usr/include/unix.h:212: syntax error before `*'
/usr/include/unix.h:213: syntax error before `*'
/usr/include/unix.h:214: syntax error before `*'
/usr/include/unix.h:215: syntax error before `*'
/usr/include/unix.h:216: syntax error before `*'
/usr/include/unix.h:219: syntax error before `*'
/usr/include/unix.h:221: syntax error before `DOTLOCK'
/usr/include/unix.h:222: syntax error before `MAILSTREAM'
/usr/include/unix.h:223: syntax error before `*'
/usr/include/unix.h:224: syntax error before `*'
/usr/include/unix.h:225: syntax error before `*'
/usr/include/unix.h:226: syntax error before `*'
/usr/include/unix.h:228: syntax error before `*'
/usr/include/unix.h:229: syntax error before `*'

And I can't use gmake because I get:

Makefile:34: *** missing separator.  Stop.

PHP Configure line:

./configure --with-mysql --with-gettext --with-xml --with-ftp --with-apxs --with-gd=/usr/local --with-imap=/usr


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-30 08:11 UTC] sniper@php.net
If you have compiled c-client library yourself, point the 
PHP configure to that source directory.

e.g. --with-imap=/usr/src/imap-2001a/

c-client has some header files which are named same as some
unix header files are (unix.h for example). So documentation should be fixed. (ie. you should always use the source path and not install the library/header files anywhere)

--Jani

 [2002-05-30 08:14 UTC] sniper@php.net
Minor correction: The documentation is okay as long as you
DO NOT copy the header files in /usr/include. So I guess a note about that would be enough.

--Jani

 [2003-01-20 15:44 UTC] philip@php.net
This problem has been addressed, the documentation has been updated so this conflict won't show up.  See:

http://cvs.php.net/cvs.php/phpdoc/en/reference/imap/reference.xml
http://cvs.php.net/cvs.php/phpdoc/en/reference/imap/configure.xml

Thanks for the report, and thanks to Ilia for describing how to solve it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 10 23:00:03 2025 UTC