[imp] Trouble Building PHP with IMAP Support for IMP on Solaris

J. Alexander Jacocks jjacocks at mac.com
Tue May 25 16:18:16 PDT 2004


I know theis is an oft-repeated question (I've read the archives!), but 
I'm having trouble getting PHP to build with IMAP support.

The following is my PHP ./configure statement:

./configure --with-apxs=/usr/local/apache-1.3.31/bin/apxs 
--enable-fastcgi --with-zlib --with-bz2 --with-jpeg-dir=/usr/local 
--with-tiff-dir=/usr/local --with-openssl=/usr/local --enable-exif 
--enable-ftp --with-png-dir=/usr/local --with-imap 
--with-imap-ssl=/usr/local --with-java=/usr/java 
--with-mysql=/usr/local/mysql --with-ncurses --with-mm

I'm using UW IMAPd 2004, building with gcc-3.3.2, with OpenSSL 0.9.7d, 
and apache 1.3.31.  Here is the error that I get from config.log:

configure:41210: checking whether IMAP works
configure:41243: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS 
-R/usr/ucbl
ib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2 
-L/usr/loca
l/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2 -R/usr/local/lib 
-L/usr/local/lib conft
est.c -lc-client  -lssl -lcrypto  -lcrypt -lpam -lbz2 -lz -lssl -lcrypto 
-lresol
v -lm -ldl -lsocket -lnsl  -lgcc 1>&5
ld: warning: file /usr/local/lib/libc-client.a ignored: unable to locate 
archive
  symbol table
ld: warning: file 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../../lib
c-client.a ignored: unable to locate archive symbol table
ld: fatal: library -lc-client: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 41218 "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_newbody();
     int main() {
       mail_newbody();
       return 0;
     }

The static archive seems to be OK:

ajacocks at olympus[~]$ ls -l /usr/local/lib/libc-client.a
-rwxr-xr-x   1 root     other    1032224 May 25 19:15 
/usr/local/lib/libc-client.a
ajacocks at olympus[~]$ file /usr/local/lib/libc-client.a
/usr/local/lib/libc-client.a:   current ar archive, not a dynamic 
executable or shared object

However, searching for "unable to locate archive symbol table" doesn't 
seem to give me anything interesting.

Any ideas?

Thanks!


More information about the imp mailing list