[Home]

Summary:ASTERISK-08762: configure --with-imap fails on FC6/CentOS4/RHEL4
Reporter:puzzled (puzzled)Labels:
Date Opened:2007-02-09 10:32:00.000-0600Date Closed:2007-02-09 10:46:03.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:With the proper c-client files installed, configure --with-imap fails on FC6, CentOS4 and RHEL4. Error message:

checking for UW IMAP Toolkit c-client library... no
configure: ***
configure: *** The UW IMAP Toolkit installation on this system appears to be broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-imap.


****** ADDITIONAL INFORMATION ******

Both libc-client-devel and libc-client are installed (the 2004g version) and put the files in the following locations:

$ rpm -ql libc-client-devel
/usr/include/imap
/usr/include/imap/c-client.h
/usr/include/imap/dummy.h
/usr/include/imap/env.h
/usr/include/imap/env_unix.h
/usr/include/imap/fdstring.h
/usr/include/imap/flockcyg.h
/usr/include/imap/flocksim.h
/usr/include/imap/flstring.h
/usr/include/imap/fs.h
/usr/include/imap/ftl.h
/usr/include/imap/imap4r1.h
/usr/include/imap/linkage.c
/usr/include/imap/linkage.h
/usr/include/imap/mail.h
/usr/include/imap/mbx.h
/usr/include/imap/mh.h
/usr/include/imap/misc.h
/usr/include/imap/mx.h
/usr/include/imap/netmsg.h
/usr/include/imap/newsrc.h
/usr/include/imap/nl.h
/usr/include/imap/nntp.h
/usr/include/imap/os_a32.h
/usr/include/imap/os_a41.h
/usr/include/imap/os_aix.h
/usr/include/imap/os_aos.h
/usr/include/imap/os_art.h
/usr/include/imap/os_asv.h
/usr/include/imap/os_aux.h
/usr/include/imap/os_bsd.h
/usr/include/imap/os_bsf.h
/usr/include/imap/os_bsi.h
/usr/include/imap/os_cvx.h
/usr/include/imap/os_cyg.h
/usr/include/imap/os_d-g.h
/usr/include/imap/os_do4.h
/usr/include/imap/os_drs.h
/usr/include/imap/os_dyn.h
/usr/include/imap/os_hpp.h
/usr/include/imap/os_isc.h
/usr/include/imap/os_lnx.h
/usr/include/imap/os_lyn.h
/usr/include/imap/os_mct.h
/usr/include/imap/os_mnt.h
/usr/include/imap/os_nto.h
/usr/include/imap/os_nxt.h
/usr/include/imap/os_os4.h
/usr/include/imap/os_osf.h
/usr/include/imap/os_osx.h
/usr/include/imap/os_ptx.h
/usr/include/imap/os_pyr.h
/usr/include/imap/os_qnx.h
/usr/include/imap/os_s40.h
/usr/include/imap/os_sc5.h
/usr/include/imap/os_sco.h
/usr/include/imap/os_sgi.h
/usr/include/imap/os_shp.h
/usr/include/imap/os_slx.h
/usr/include/imap/os_soln.h
/usr/include/imap/os_solo.h
/usr/include/imap/os_sos.h
/usr/include/imap/os_sun.h
/usr/include/imap/os_sv2.h
/usr/include/imap/os_sv4.h
/usr/include/imap/os_ult.h
/usr/include/imap/os_vu2.h
/usr/include/imap/osdep.h
/usr/include/imap/pseudo.h
/usr/include/imap/rfc822.h
/usr/include/imap/shortsym.h
/usr/include/imap/smtp.h
/usr/include/imap/sslio.h
/usr/include/imap/tcp.h
/usr/include/imap/tcp_unix.h
/usr/include/imap/unix.h
/usr/include/imap/utf8.h
/usr/lib/c-client.a
/usr/lib/libc-client.a
/usr/lib/libc-client.so
[snip the doc files]

$ rpm -ql libc-client
/usr/lib/libc-client.so.1
[snip the doc files]

Looking at configure it seems to look in a c-client dir which is wrong for FC6, CentOS4 & RHEL4. Unfortunately my knowledge of auto* stuff is non-existent so I am unable to provide a fix.
Comments:By: Russell Bryant (russell) 2007-02-09 10:46:02.000-0600

To quote Kevin Fleming on the asterisk-dev mailing list:


The --with-imap option, unlike all the other configure script options,
will _NOT_ search your system for the IMAP toolkit libraries. If you
don't specify a path where they can be found it assumes that you have
unpacked and built the c-client sources at a directory parallel to the
asterisk-1.4 directory.

Generally speaking, because the c-client library is a static library (we
don't use the shared library version), it's better to just unpack the
sources and do the simple build and then let Asterisk link against it.
I'll update the configure script help text to hopefully make this clearer.