Problem when compiling PHP

Scolpy

Verified User
Joined
Feb 25, 2009
Messages
142
Hello!

I'm trying to compile PHP 5.2.14 via CustomBuild on CentOS 5.5 64bit, but I got this error from some reason:
ext/imap/.libs/php_imap.o: In function `zm_startup_imap':
/usr/local/directadmin/custombuild/php-5.2.14/ext/imap/php_imap.c:487: undefined reference to `ssl_onceonlyinit' collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
I also tried this solution:
http://www.directadmin.com/forum/showpost.php?p=99453&postcount=1
(because it's worked last time I tried)

But it's doesn't work for me.

this is my configure.php5 file;
PHP:
#!/bin/sh
./configure \
    --with-apxs2 \
    --with-curl=/usr/local/lib \
    --with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
    --with-gettext \
    --with-jpeg-dir=/usr/local/lib \
    --with-freetype-dir=/usr/local/lib \
    --with-openssl \
    --with-mcrypt \
    --with-mhash \
    --with-mysql=/usr \
    --with-mysqli=/usr/bin/mysql_config \
    --with-pcre-regex=/usr/local \
    --with-pdo-mysql=/usr \
    --with-pear \
    --with-png-dir=/usr/local/lib \
    --with-zlib \
    --with-zlib-dir=/usr/local/lib \
    --enable-zip \
    --with-iconv=/usr/local \
    --enable-bcmath \
    --enable-calendar \
    --enable-ftp \
    --enable-magic-quotes \
    --enable-sockets \
    --enable-mbstring \
    --enable-exif \
    --enable-pic \
    --with-imap=/usr/local/imap-2004g \
    --with-imap-ssl \
    --with-mime-magic
How can I resolve that issue?

Thanks!

Yonatan :)
 
Hello,

You'd likely either have to recompile your imap libraries.. or use this guide:
http://www.directadmin.com/imap.txt (top part)

Note that the install of the 3rd party imap module into php is beyond our techincal support, but the above guide (provided to us by a client) reportedly works ok.

John
 
Back
Top