Hi,

I took me a long time to compile PHP with IMAP Support, but solve this, so here
is a solution:

If you have a Cobalt with latest Patches, then you have an StackGuard version of
IMAP wich won't compile with the default gcc

first you need:

  RaQ4-All-Security-2.0.1-13323.pkg using wget from ftp.cobalt.sun.com
  (which includes the gcc for the cobalt)

  gcc-2.7.2.3-11SG.i386.rpm from
  http://www.cse.ogi.edu/DISC/projects/immunix/StackGuard/

now get rid of the new gcc without StackGuard

rpm -e gcc-c++-2.95.3-1c1r4 \
gcc-chill-2.95.3-1c1r4 \
gcc-g77-2.95.3-1c1r4 \
gcc-java-2.95.3-1c1r4 \
gcc-objc-2.95.3-1c1r4 \
gcc-2.95.3-1c1r4

and install that from StackGuard

rpm -Uvh gcc-2.7.2.3-11SG.i386.rpm

now go and do a

./configure --prefix=/usr \
 --enable-magic-quotes \
 --enable-mbstr-enc-trans \
 --enable-mbstring \
 --enable-mm=shared \
 --enable-calendar \
 --enable-dba \
 --enable-dbase \
 --enable-dbx \
 --enable-ftp \
 --enable-gd-native-ttf \
 --enable-inline-optimization \
 --enable-safe-mode \
 --enable-track-vars \
 --enable-trans-sid \
 --enable-wddx=shared \
 --enable-xml \
 --disable-debug \
 --with-apxs=/usr/sbin/apxs \
 --with-config-file-path=/etc/httpd \
 --with-curl=shared \
 --with-dba \
 --with-db3=/usr/include/ \
 --with-exec-dir=/usr/bin \
 --with-flatfile \
 --with-gd \
 --with-gettext=/usr \
 --with-gdbm \
 --with-imap=shared,/usr/lib \
 --with-imap-ssl \
 --with-interbase=shared \
 --with-jpeg-dir=/usr/lib \
 --with-kerberos \
 --with-ldap=shared \
 --with-libdir=/usr/lib \
 --with-mbstr-enc-trans \
 --with-mbstring \
 --with-ming \
 --with-mysql \
 --with-pdflib=shared \
 --with-png-dir=/usr/lib \
 --with-pgsql=shared \
 --with-regex=system \
 --with-ttf=/usr/include/freetype \
 --with-tiff-dir=/usr/lib \
 --with-zlib \
 --with-xpm-dir=/usr/lib

or whatever you need ... and finish this with

make

you got it ... now same way backwards remove the gcc from Stackguard with
rpm -e gcc-2.7.2.3-11SG

to get the rpms out of the cobalt pkg just rename it to *.tar.gz and open it
with the mc (MidnightCommander) and copy all the gcc files to /tmp ...
install them ...

ready to go ;-)

PS: All this info is without warranty !!! Don't wheep if you crash your Cobalt
... if you have questions ask me personaly to prevent OT in this list



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to