Here's the solution to the problem I posted yesterday:
 
What I was missing is the "pam-devel-0.75-19.i386.rpm" package, which I now
downloaded from the RedHat Network. After installation the IMAP check passes
fine.
 
And on we go...
 
Take care,
 
Joerg.
 
-----Original Message-----
From: Joerg Aldinger [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 02, 2003 2:57 PM
To: '[EMAIL PROTECTED]'
Subject: Problem configuring PHP 4.3.0 with IMAP on RH 7.2


When trying to configure PHP 4.3.0 on RedHat 7.2 with the following command:
 
./configure --no-create --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share
--sysconfdir=/etc --sharedstatedir=/usr/com --localstatedir=/var
--libdir=/usr/lib --includedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --with-apxs=/usr/sbin/apxs
--enable-force-cgi-redirect --enable-discard-path --with-layout=GNU
--with-config-file-path=/etc --enable-safe-mode --with-exec-dir=/usr/bin
--enable-magic-quotes --disable-rpath --with-openssl --with-zlib
--enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-dbx
--enable-dio --enable-exif --enable-ftp=shared --with-gd
--with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf --with-freetype-dir=/usr
--enable-gd-native-ttf --with-gettext=shared --with-iconv --with-imap=shared
--with-kerberos --with-imap-ssl --with-ldap=shared --enable-mbstring
--with-mcal --with-mysql=shared,/usr --with-unixODBC=shared --with-pfpro
--with-pgsql=shared --with-pspell --enable-shmop --with-snmp=shared,/usr
--enable-ucd-snmp-hack --enable-sockets --with-regex=system --enable-sysvsem
--enable-sysvshm --enable-wddx --with-expat-dir=/usr --enable-yp --with-zip
--enable-versioning --with-pic --enable-memory-limit
 
I get the following error:
 
...
checking for IMAP support... yes, shared
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.
 
In config.log, here's what it says at the end:
 
configure:34453: checking for IMAP support
configure:34811: checking for pam_start in -lpam
configure:34830: gcc -o conftest -g -O2  -DLINUX=22 -DMOD_SSL=208105 -DEAPI
-DEAPI_MM -DFD_SETSIZE=4096  conftest.c -lpam  -lfreety$
/usr/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
configure: failed program was:
#line 34819 "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:34858: checking for crypt in -lcrypt
configure:35252: checking whether SSL libraries are needed for c-client
configure:35413: checking whether IMAP works
configure:35446: gcc -o conftest -g -O2  -DLINUX=22 -DMOD_SSL=208105 -DEAPI
-DEAPI_MM -DFD_SETSIZE=4096  conftest.c  -lcrypto -lssl$
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In
function `ssl_onceonlyinit':
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:286: the use of
`tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In
function `checkpw':
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined
reference to `pam_start'
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined
reference to `pam_authenticate'
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined
reference to `pam_acct_mgmt'
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:124: undefined
reference to `pam_setcred'
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:130: undefined
reference to `pam_setcred'
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:131: undefined
reference to `pam_end'
/usr/src/build/91052-i386/BUILD/imap-2001a/c-client/osdep.c:156: undefined
reference to `pam_end'
collect2: ld returned 1 exit status
configure: failed program was:
#line 35421 "configure"
#include "confdefs.h"
 
    void mm_log(void){}
    void mm_dlog(void){}
    void mm_flags(void){}
    void mm_fatal(void){}
    void mm_critical(void){}
    void mm_nocritical(void){}
    void mm_notify(void){}
    void mm_login(void){}
    void mm_diskerror(void){}
    void mm_status(void){}
    void mm_lsub(void){}
    void mm_list(void){}
    void mm_exists(void){}
    void mm_searched(void){}
    void mm_expunged(void){}
    char mail_open();
    int main() {
      mail_open(0,"",0);
      return 0;
    }
 
Any clues on what is causing this error? How can I resolve it? Any comments
are appreciated...!
 
Thanks in advance and Happy New Year to all of you,
 
Joerg Aldinger

Reply via email to