php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26248 Can't compile PHP (both 4 and 5) with IMAP
Submitted: 2003-11-14 04:52 UTC Modified: 2003-11-28 23:07 UTC
From: lists at nutshell dot nu Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.0b2 (beta2) OS: Linux (Mandrake 9.2)
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: lists at nutshell dot nu
New email:
PHP Version: OS:

 

 [2003-11-14 04:52 UTC] lists at nutshell dot nu
Description:
------------
Please note that Mandrake 9.2 comes with a mod-imap for php4, but I wanted to compile it to suite my needs.

I have tryed compiling php5 (b2 and later snapshots, as well as latest official php4) with imap. I have tried with Mandrake 9.2's own imap-2002d, recompiling it with "rpm -bb --target i686", as well as downgrading to imap-2001a.

I have tried to configure with:
--with-imap=shared
--with-imap-ssl
or
--with-imap=shared
--without-imap-ssl
or
--with-imap=shared

Plus also adding "/usr" as dir and without shared.

Note that if I try to configure "--without-kerberos" the configure stops at imap.

I have all normal and devel packages installed for imap, openssl and keberos, as well as any util packages for them.

./configure works just fine, but when I run make I get errors.

I get the following error:
/usr/local/src/php5-200311122030/ext/imap/php_imap.c: In function `zm_startup_imap':
/usr/local/src/php5-200311122030/ext/imap/php_imap.c:445: error: `auth_gss' undeclared (first use in this function)
/usr/local/src/php5-200311122030/ext/imap/php_imap.c:445: error: (Each undeclared identifier is reported only once
/usr/local/src/php5-200311122030/ext/imap/php_imap.c:445: error: for each function it appears in.)
make: *** [ext/imap/php_imap.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-16 13:16 UTC] iliaa@php.net
Does it fail if you do not compile imap as a shared extension?
 [2003-11-16 14:25 UTC] lists at nutshell dot nu
Yes, as stated in my original post it fails both with and without shared. I have tried every possible combination I can think of.

It compiles just fine without imap, but I need imap.

Can also add that Mandrake 9.2 comes with a php imap rpm and the only things I compile from tar-balls are apache and php4/5.
 [2003-11-17 20:33 UTC] lists at nutshell dot nu
I think I have found the problem.

Mandrake builds three c-clients.

libc-client.a
libc-client-PHP4.a
libc-client-nossl.a

Note than the -PHP4 is built without kerberos support.

I renamed libc-client.a to libc-client-org.a and libc-client-PHP4.a to libc-client.a.

Then PHP5 compiles just fine with a shared imap.

Is there any way of building without having to rename the libs?
 [2003-11-18 08:14 UTC] lists at nutshell dot nu
A few notes to my last comment.

To be able to compile php (4/5) you either have to compile imap from a tar ball or change the imap.spec so it compiles the libc-client-PHP4.a with kerberos (it only compiles with ssl default).

My experience here is that it is impossible to compile imap support for php unless you have kerberos. In my original post I show that I tried with both --without-kerberos and --without-imap-ssl, but the compilation failed due to that libc-client had no kerberos support.
 [2003-11-28 20:29 UTC] sniper@php.net
Yes, you need to have libc-client.a. There is no bug here.

 [2003-11-28 23:07 UTC] lists at nutshell dot nu
In my view there is a bug since compilation fails due to this even when I configure the php imap not to support kerberos and ssl.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 16:01:28 2024 UTC