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

Cliff Green green at umdnj.edu
Tue May 25 17:11:05 PDT 2004


Today at 7:18pm, J. Alexander Jacocks wrote:

JAJ> I know theis is an oft-repeated question (I've read the archives!), but I'm
JAJ> having trouble getting PHP to build with IMAP support.
JAJ> 
JAJ> The following is my PHP ./configure statement:
JAJ> 
JAJ> ./configure --with-apxs=/usr/local/apache-1.3.31/bin/apxs --enable-fastcgi
JAJ> --with-zlib --with-bz2 --with-jpeg-dir=/usr/local
JAJ> --with-tiff-dir=/usr/local --with-openssl=/usr/local --enable-exif
JAJ> --enable-ftp --with-png-dir=/usr/local --with-imap
JAJ> --with-imap-ssl=/usr/local --with-java=/usr/java
JAJ> --with-mysql=/usr/local/mysql --with-ncurses --with-mm

This has worked for me (YMMV, especially since we have things in different 
locations, and perhaps different versions - make appropriate edits):

LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/lib -L/data/gcc/lib \
-R/usr/local/ssl/lib -R/usr/local/lib -R/data/gcc/lib" \
CFLAGS="-I/data/gcc/include" \
CC=gcc ./configure --enable-calendar --with-zlib-dir=/usr/local \
--enable-inline-optimization --disable-debug --with-dom=/usr/local/lib \
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql \
--with-openssl=/usr/local/ssl --with-zlib=/usr/local \
--with-imap=/usr/local/imap --with-imap-ssl=/usr/local/ssl  \
--with-gettext=/usr/local --with-db3=/usr/local/BerkeleyDB.3.3 \
--with-ldap=/usr/local --with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local --enable-gd-native-ttf \
--with-gd=/usr/local \
--with-mcrypt --with-pdflib --with-tiff-dir=/usr/local

Also UW imap, openssl, openldap, gcc, etc., etc., on SunOS 5.8 (Solaris 
8).

[munch]

JAJ> ld: warning: file /usr/local/lib/libc-client.a ignored: unable to locate
JAJ> archive
JAJ>  symbol table
JAJ> ld: warning: file
JAJ> /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../../lib
JAJ> c-client.a ignored: unable to locate archive symbol table
JAJ> ld: fatal: library -lc-client: not found

This looks kind of problematic, no?  I like to build the c-client library 
and put it in it's own location, but there's nothing sacred about that.  I 
do find it helpful to tell configure where to find it, though.  Maybe the 
-L and -R LDFLAGS would be sufficient for you, since you've got it in 
/usr/local/lib (and presumably you've put the c-client include files in 
/usr/local/include).

c
-- 
Clifford Green               Internet -  green at umdnj.edu
Academic Computing Services                    UMDNJ-IST
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc


More information about the imp mailing list