php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15416 Configure fails when compiling with imap support
Submitted: 2002-02-06 20:27 UTC Modified: 2002-02-07 06:39 UTC
From: pau at eslack dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.1 OS: Linux (Slackware 8.x / current)
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: pau at eslack dot org
New email:
PHP Version: OS:

 

 [2002-02-06 20:27 UTC] pau at eslack dot org
Problem description:
====================

I'm trying to compile php-4.1.1 in a Slackware-8.x system with IMAP support. Slackware doesn't have imap libraries installed by default, and when trying to compile php using the option --with-imap, the configure script gives the error:

Cannot find rfc822.h. Please check your IMAP installation.

So I untared "pine4.44.tar.gz" from slackware-current sources which contains the file "rfc822.h" and the rest of imap libraries and used the option --with-imap=/path/to/imap/libs/ instead. Now the configure script complains with this error:

Cannot find imap library. Please check your IMAP installation.

I've STFW but I can't get php-4.1.1 to compile. Any help would be apreciated.


The configure command used:
===========================

CFLAGS=-O2 LDFLAGS=-s ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc/apache --enable-versioning --enable-track-vars --enable-ftp --with-xml=shared --with-mysql=/usr --with-pgsql=/usr --with-imap=/tmp/pine4.44/imap/src/c-client --enable-mailparse --enable-mbstring --enable-posix --enable-session --with-snmp=shared,/usr --enable-inline-optimization --enable-safe-mode --enable-bcmath --with-bz2 --enable-sockets --enable-memory-limit --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 --with-t1lib=/usr/local --with-freetype-dir=/usr/X11R6 --with-ttf=/usr/X11R6 --enable-freetype-4bit-antialias-hack --with-gd=shared,/usr --enable-gd-native-ttf --with-mhash=/usr/local --with-mcrypt --with-png-dir=/usr/lib --with-mod_charset --enable-force-cgi-redirect --enable-discard-path --enable-calendar --enable-ctype --with-gdbm --with-db2 --with-db3 --with-gmp --enable-dbase --with-zlib=/usr --with-zlib-dir=/usr/include --with-readline=/usr --with-mm=/usr --with-gettext=/usr --with-openssl=/usr --enable-trans-sid --enable-shmop --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --with-tsrm-pthreads --enable-shared --disable-debug i386-slackware-linux



Output of configure command:
============================

checking for IMAP support... yes
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... (cached) yes
configure: error: Cannot find imap library. Please check your IMAP installation.



Contents of config.log file:
============================

configure:24320: checking for IMAP support
configure:24607: checking for pam_start in -lpam
configure:24626: gcc -o conftest -O2  -DLINUX=22 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -s -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lpam  -lgmp -lgd -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -ldb -ldb2 -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 1>&5
/usr/i386-slackware-linux/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
configure: failed program was:
#line 24615 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pam_start();

int main() {
pam_start()
; return 0; }
configure:24654: checking for crypt in -lcrypt

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-07 06:39 UTC] sander@php.net
RTM: www.php.net/imap
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 17:01:29 2025 UTC