If anyone can help out with this I would be
very grateful!

Here's my problem. I'm trying to compile PHP
for use with IMP 3.0 (and other projects) on a RedHat box (i686, rh7.1) and am trying to use the following configure line:

./configure
--with-apxs=/services/www/server/bin/apxs
--with-zlib --with-mm --with-ldap
--with-gettext --enable-ftp
--with-db3=/usr/local/BerkeleyDB.3.1
--enable-sockets
--prefix=/services/www/server/php
--with-openssl=/usr/local/ssl
--with-imap-ssl=/usr/local/ssl
--with-imap=/usr/local/src/imap-2001a
--with-mcrypt

and it compiles and installs fine. Buuuut, when I try to start apache, I get:

Cannot load /services/www/server/libexec/libphp4.so into server: /services/www/server/libexec/libphp4.so: undefined symbol: krb5_defkeyname

If I don't include mcrypt, everything is fine. So, mcrypt somehow needs kerberos stuff on RedHat 7.1 (??). But I need mcrypt, so if I prepend either

export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam";

or append

--with-kerberos=/usr/kerberos

to the configure statement above, it compiles, installs and apache starts ok, but imap-ssl won't connect. It just hangs. Withouth mcrypt (and the kerberos associated stuff) imap-ssl works fine.

Is anyone out there using imap-ssl and mycrypt in PHP on a RedHat 7.1 box? I'm fairly certain my box is up to date with all the RedHat rpms and I'm 99% all the paths and ld_so.conf are correct.

Any clues?

thanks,
adam arrowood
adam@ NO_SP4M oit.gatech.edu
http://bastille.ns.gatech.edu/info.html

    Now, while I don't have the answer to your problem, I wouldn't mind knowing how you managed to get PHP to actually accept the imap-ssl command in the 1st place!

    I've got imap-2001a compiled with ssl support and actually setup with both imap/ssl and apop servers but adding the --with-imap-ssl=<various/lib/points> causes the config to exit with:

    "This c-client library does not support ssl"

    --with-imap compiles fine but I really need the ssl functionality.

      You have to compile your c-client with ssl support. I downloaded the uwash imap src, and did a "make SSLTYPE=unix" to compile it. It assumes you've installed openssl in /usr/local/ssl.

      Once you compile it, you can use the mtest binary that it produces to test the c-client library's ssl connectivity.

      When I make the connection (to a Cyrus imap server), I have to do:

      imap_open({servername:993/imap/ssl}INBOX, $user, $passwd);

      you may have to leave off INBOX and/or append "/novalidate-cert" to "/imap/ssl", depending on your imap server and how you've set up openssl, respectively.

      -adam arrowood
      a@damMOVEATSIGNHEREoit.gatech.edu
      http://bastille.ns.gatech.edu/info.html

        I am using wuIMAP-2001 which seems to be incompatable with PHP4.0.6 but it did compile with PHP 4.1.0, but I couldn't get it to actually open an SSL or TLS stream until I saw your idea of appending the /novalidate-cert.

        This finally made it work, even though I do have a valid certificate (not self signed either and even OE6 accepts it) - but hey, i'm not complaining 🙂

        Thanks Adam!

          Write a Reply...