php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46839 cant compile 5.2.8 with imap c-client compiled manually
Submitted: 2008-12-12 00:38 UTC Modified: 2008-12-19 01:36 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: naox at o2 dot pl Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.2.8 OS: linux centos 5
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: naox at o2 dot pl
New email:
PHP Version: OS:

 

 [2008-12-12 00:38 UTC] naox at o2 dot pl
Description:
------------
I use manualy compiled imap-2007d. I do this because there is a 
problem - c-client has small number FD_SETSIZE. If your apache 
httpd.conf opens a lot of log files than c-client crashes apache 
child if called from PHP. So I cant use standard c-client suplied 
with linux.

Now when I try to compile PHP 5.2.8 with manualy complied c-client

/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zm_startup_imap':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: 'auth_gss' 
undeclared (first use in this function)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: (Each 
undeclared identifier is reported only once
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: for each 
function it appears in.)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zif_imap_rfc822_parse_adrlist':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:2175: warning: passing 
argument 3 of 'rfc822_parse_adrlist' from incompatible pointer type
make: *** [ext/imap/php_imap.lo] Error 1


Problem only occurs in PHP 5.2.8. In PHP 5.2.6 everything works fine. 
Also problem does not appear if I compile PHP 5.2.8 with standard c-
client suplied with linux.

If I copy ext/imap/php_imap.c from 5.2.6 into 5.2.8 I can compile php 
without problems

There are some old bug reports about this problem resolved years ago 
with "fixed in cvs". So I suspect you reverted your php_imap.c in 
5.2.8 to state where it was not fixec.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-16 18:31 UTC] jani@php.net
Are you sure you don't have linkage.h file from some other build than that you compiled yourself? And did you use --with-kerberos in your php configure line?
 [2008-12-16 19:01 UTC] naox at o2 dot pl
Yes, I use '--with-kerberos' on my configure. And also
'--with-imap=/root/c-client-my'

That has files from compiled imap-2007d - files are placed as 
instructed at
http://pl.php.net/manual/en/imap.setup.php
all of these files comes from imap-2007d...
 [2008-12-17 02:47 UTC] jani@php.net
So does that linkage.h contain auth_gss ?
 [2008-12-18 01:58 UTC] naox at o2 dot pl
linkage.h in c-client does not contain auth_gss. Also compiling 
wihtout '--with-kerberos' makes no diffrence
 [2008-12-19 01:36 UTC] jani@php.net
So obviously you have now messed up your system somehow. Please 
cleanup all (and I mean ALL) headers and libraries from your system, 
recompile and reconfigure PHP and it will work.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC