ID: 22616 User updated by: druid at mail dot cz Reported By: druid at mail dot cz -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Linux 2.4.20 PHP Version: 4.3.1 New Comment:
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-zlib --enable-bcmath --with-bz2=shared --enable-calendar --enable-exif --enable-ftp --with-ttf --with-gettext=shared --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mysql=shared --with-mysql-sock=shared --with-recode=shared --with-imap --with-imap-ssl=/usr/local/ssl OpenSSL 0.9.7a First I got problem with checking whether IMAP is working (I compiled imap-2002b in /usr/src/imap-2002b and copied c-client.a to /usr/lib (symlinked to libc-client.a of course) and copied mail.h rfc822.h linkage.h to /usr/include). Btw., I don't know why is that, that the ./configure didn't resolve the correct path to OpenSSL in --with-imap-ssl I had to put --with-imap-ssl=/usr/local/ssl to ./configure. There were unresolved symbols in config.log caused by wrong order of -lssl -lcrypto at the beginning of gcc command. So I put "-lssl -lcrypto" at line 35415: LIBS="$TST_LIBS $LIBS -lssl -lcrypto" The ./configure passed just fine. Then there was problem at the end of compilation process with linking sapi/cli/php. The same wrong order. I had to copy the whole command to clipboard and run it manually with "-lssl -lcrypt" at the end of the line. I've tried this once before but it generated sapi/cli/php which caused segmentation fault when executed. (Error occured in "make install": something like [install-pear-installer]: segmentation fault) Previous Comments: ------------------------------------------------------------------------ [2003-03-09 17:53:02] [EMAIL PROTECTED] And what error did you get if you didn't change the order? What version of openssl? What was the full configure line you used for PHP? ------------------------------------------------------------------------ [2003-03-09 14:27:48] druid at mail dot cz ./configure and Makefile sets a wrong order of loading -lssl and -lcrypto when --with-imap and --with-imap-ssl. I used imap-2002b. I had to change the order twice. First at ./configure and second at Makefile when linking sapi/cli/php. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22616&edit=1