ID: 32483 Comment by: steve at jeamland dot org Reported By: pieter dot donche at ua dot ac dot be Status: No Feedback Bug Type: Compile Failure Operating System: solaris 2.9 PHP Version: 5CVS-2005-03-30 New Comment:
I'm seeing this on Solaris 9 with PHP 4.3.11, here are some more details and stacktrace: The crash only occurs if the crypt (-lcrypt) library is included in the library list.. I don't believe this is needed if openssl is included as it provides this function as a macro. Using the compilation parameters from config.log but without the crypt library it works fine: % gcc -o test -g -O2 -D_POSIX_PTHREAD_SEMANTICS -L/opt/newdb/lib -R/usr/ucblib -L/usr/ucblib -R/opt/GNUgcc/lib/gcc/sparcv9-sun-solaris2.9/3.4.3 -L/opt/GNUgcc/lib/gcc/sparcv9-sun-solaris2.9/3.4.3 -R/opt/openssl/lib -L/opt/openssl/lib -R/opt/GNUgdbm/lib -L/opt/GNUgdbm/lib -R/opt/newdb/lib -L/opt/newdb/lib -R/opt/libxml2/lib -L/opt/libxml2/lib -R/opt/libjpg/lib -L/opt/libjpg/lib -R/opt/libpng/lib -L/opt/libpng/lib -R/opt/freetype/lib -L/opt/freetype/lib -R/opt/GNUmp/lib -L/opt/GNUmp/lib -R/opt/c-client/lib -L/opt/c-client/lib -R/opt/libmcrypt/lib -L/opt/libmcrypt/lib -R/opt/mysql/lib/mysql -L/opt/mysql/lib/mysql test.c -lmysqlclient -lmcrypt -lltdl -lssl -lcrypto -lpam -lgmp -lintl -lfreetype -lpng -lz -ljpeg -lz -ldb-4.1 -ldb-4.1 -lgdbm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl % ./test % echo $? 0 and with the crypt library: % gcc -o test -g -O2 -D_POSIX_PTHREAD_SEMANTICS -L/opt/newdb/lib -R/usr/ucblib -L/usr/ucblib -R/opt/GNUgcc/lib/gcc/sparcv9-sun-solaris2.9/3.4.3 -L/opt/GNUgcc/lib/gcc/sparcv9-sun-solaris2.9/3.4.3 -R/opt/openssl/lib -L/opt/openssl/lib -R/opt/GNUgdbm/lib -L/opt/GNUgdbm/lib -R/opt/newdb/lib -L/opt/newdb/lib -R/opt/libxml2/lib -L/opt/libxml2/lib -R/opt/libjpg/lib -L/opt/libjpg/lib -R/opt/libpng/lib -L/opt/libpng/lib -R/opt/freetype/lib -L/opt/freetype/lib -R/opt/GNUmp/lib -L/opt/GNUmp/lib -R/opt/c-client/lib -L/opt/c-client/lib -R/opt/libmcrypt/lib -L/opt/libmcrypt/lib -R/opt/mysql/lib/mysql -L/opt/mysql/lib/mysql test.c -lmysqlclient -lmcrypt -lltdl -lssl -lcrypto -lpam -lgmp -lintl -lfreetype -lpng -lz -ljpeg -lz -ldb-4.1 -ldb-4.1 -lgdbm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl -lcrypt % ./test zsh: segmentation fault (core dumped) ./test #0 0xffffffff7e8754e4 in DES_set_key_unchecked () from /opt/openssl/lib/libcrypto.so.0.9.7 #1 0xffffffff7e87e554 in _des_crypt () from /opt/openssl/lib/libcrypto.so.0.9.7 #2 0x0000000100000ae4 in main () at test.c:15 Previous Comments: ------------------------------------------------------------------------ [2005-04-08 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-03-31 21:52:03] [EMAIL PROTECTED] Try to compile what you have in config.log, there should be the source file (you can remove the #include "confdefs.h" line from it) using the compile line above the failed test. And try get a GDB backtrace of the crash. ------------------------------------------------------------------------ [2005-03-31 16:45:04] pieter dot donche at ua dot ac dot be I have installed OpenSSL for the first time on Jan 28, 2004 (version 0.0.6l), and then on May 25, 2004 the version 0.9.7d both with --openssldir=/usr/local Yesterday(see above) I reinstalled 0.9.7d with no options in its .configure, so that it installs in its default place /usr/local/ssl. The problems exist already much longer than yesterday.. I also see I have a /usr/local/md5 directory, which was in 2002, installed to check fingerprints of Solaris binaries because we had had an intrusion. The tool was supplied by SUN. ------------------------------------------------------------------------ [2005-03-31 00:05:16] [EMAIL PROTECTED] Do you have many OpenSSL versions installed? Make sure you have exactly ONE version only. And that the libraries/headers match each other. ------------------------------------------------------------------------ [2005-03-30 17:40:14] pieter dot donche at ua dot ac dot be checking for standard DES.. yes ... no **ATTENTION** message make starts and completes without crashing BTW In previous case where the standard DES was not found, it still always was possible to do a make of php that did complete without crasjing, but when doing a make install it always crashed at Installing PEAR environment. I had the same problem with apache-1.3 and php-4.3.10 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32483 -- Edit this bug report at http://bugs.php.net/?id=32483&edit=1