Jason Costomiris on Thu, 1 Jun 2000 08:56:55 -0400 (EDT) |
For those of you out there who use the modssl howto, located at: http://www.jasons.org/modssl.php and want to use PHP 4.0.0 instead of PHP 3.x, there's a patch that you'll need, but only if you're running RedHat 6.2. It stems from the way that the imap and imap-devel packages place files in the filesystem, as well as the fact that RH 6.2 includes kerberos5 support, so it too must be linked into PHP as well. The default configure script that ships with PHP 4.0.0 does NOT account for this. I created this patch, and while it works for me, I can't guarantee it will work for you. Again, this patch *ONLY* applies to RH 6.2. It will most likely break builds on other system types. I sent my patch to the PHP guys, so they can see what needs to happen for a build that includes IMAP support on RH 6.2. Here's the patch (you may have to correct some linefeeds due to mail munging). cd into php-4.0.0, then 'patch -p1 < /path/to/patchfile' -----------------------------cut here------------------------------ diff -urN php-4.0.0.orig/configure php-4.0.0/configure --- php-4.0.0.orig/configure Mon May 22 14:03:35 2000 +++ php-4.0.0/configure Wed May 31 20:55:58 2000 @@ -14954,8 +14954,8 @@ { echo "configure: error: Cannot find rfc822.h. Please check your IMAP installation" 1>&2; exit 1; } fi - if test -r "$IMAP_DIR/c-client/c-client.a"; then - ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1 + if test -r "$IMAP_DIR/lib/c-client.a"; then + ln -s "$IMAP_DIR/lib/c-client.a" "$IMAP_DIR/lib/libc-client.a" >/dev/null 2>&1 fi for lib in imap c-client4 c-client; do @@ -15043,7 +15043,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBRARY$unique=set" - DLIBS="-l$IMAP_LIB $DLIBS" + DLIBS="-l$IMAP_LIB -L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 $DLIBS" fi -----------------------------cut here------------------------------ Here's the configure line I used: CFLAGS=-O2 ./configure --disable-debug --with-config-file-path=/etc/httpd \ --enable-track-vars --enable-trans-sid \ --with-apxs=/usr/sbin/apxs --with-xml --with-ftp \ --with-gd --with-ttf \ --enable-freetype-4bit-antialias-hack \ --with-ldap=/usr --with-mysql=/usr --with-mm=/usr \ --enable-wddx --enable-xml --with-zlib=/usr \ --enable-sysvsem --enable-sysvshm \ --with-imap=/usr -- Jason Costomiris <>< | Technologist, geek, human. jcostom {at} jasons {dot} org | http://www.jasons.org/ ______________________________________________________________________ Philadelphia Linux Users Group - http://plug.nothinbut.net Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|