[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP4 compilation problem



On Tue, Aug 28, 2001 at 06:52:52PM +0200, Francois Thomas wrote:
> 
> 
> > -----Message d'origine-----
> > De : Russell Speed [mailto:rspeed@home-eh.com]
> > Envoyé : mardi 28 août 2001 17:47
> > À : Francois Thomas
> > Cc : 'debian-user@lists.debian.org'
> > Objet : Re: PHP4 compilation problem
> > 
> > 
> > You need to install the imap support library package.
> 
> I already have installed the libc-client4.7 libraries.. Is there something
> else that I have missed ?

I think you also need the package libc-client4.7-dev, which contains the
header files (*.h) and the static library (.a).

This package installs the header files into:   /usr/include/c-client/
and the library into:                          /usr/lib/

(just in case you need to specify that information for the PHP
./configure step)

Once you have it installed, reconfigure/rebuild PHP. Preferably do a

  make distclean

before you rerun configure (occasionally I've seen configure getting
confused by its own config.cache, which will also be removed in the
above step).  Then try again what you had probably done before:

  ./configure --with-imap  [other options...]

It *should* complain in case it doesn't find the imap stuff... ;)

What's a bit strange is the presence of the '-limap' in the linking
step (as shown in your log below). That instructs the compiler to look
for a library file named libimap.a, which is definitely not provided by
the above (UW-)imap package. It's called c-client.a and libc-client.a
(the latter is a symlink) instead.
I guess that must be the result of an error during the configure step...

Cheers,
Erdmut


> > > make[1]: Entre dans le répertoire `/usr/local/src/php-4.0.6'
> > > /bin/sh /usr/local/src/php-4.0.6/libtool --silent 
> > --mode=link gcc  -I.
> > > -I/usr/local/src/php-4.0.6/ -I/usr/local/src/php-4.0.6/main
> > > -I/usr/local/src/php-4.0.6 -I/usr/local/apache/include
> > > -I/usr/local/src/php-4.0.6/Zend -I/usr/include/c-client 
> > > -I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok
> > > -I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse
> > > -I/usr/local/src/php-4.0.6/TSRM  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT
> > > -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath
> > > /usr/local/src/php-4.0.6/libs -avoid-version 
> > -L/usr/local/pgsql/lib  -R
> > > /usr/local/pgsql/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la
> > > main/libmain.la regex/libregex.la ext/calendar/libcalendar.la
> > > ext/imap/libimap.la ext/pcre/libpcre.la ext/pgsql/libpgsql.la
> > > ext/posix/libposix.la ext/session/libsession.la 
> > ext/standard/libstandard.la
> > > ext/xml/libxml.la TSRM/libtsrm.la -limap -ldl -lpq -lcrypt 
> > -lresolv -lm -ldl
> > > -lnsl -lresolv 
> > > /usr/bin/ld: cannot find -limap 


-- 
Erdmut Pfeifer
science+computing ag

-- Bugs come in through open windows. Keep Windows shut! --



Reply to: