FAQ
From: pau@eslack.org
Operating system: Linux (Slackware 8.x / current)
PHP version: 4.1.1
PHP Bug Type: Compile Failure
Bug description: Configure fails when compiling with imap support

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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupphp-dev @
categoriesphp
postedFeb 7, '02 at 1:27a
activeFeb 7, '02 at 11:39a
posts2
users2
websitephp.net

2 users in discussion

Pau: 1 post Sander: 1 post

People

Translate

site design / logo © 2019 Grokbase