php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32483 ./configure check crashes
Submitted: 2005-03-29 14:32 UTC Modified: 2005-04-08 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: pieter dot donche at ua dot ac dot be Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5CVS-2005-03-30 OS: solaris 2.9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pieter dot donche at ua dot ac dot be
New email:
PHP Version: OS:

 

 [2005-03-29 14:32 UTC] pieter dot donche at ua dot ac dot be
Description:
------------
I have SUN/Solarsi 2.9, want to install PHP-5.0.3 for use
in apache-httpd-2.0.35
Downloaded latest version of PHP, unpacked
# ..../php-5.0.3
#  ./configure --with-apache2=/home/wins/builds/src/other/httpd-2.0.53 \
              --with-gd \
              --with-jpeg-dir=/usr/local \
              --with-png-dir=/usr/local \
              --with-zlib-dir=/usr/local \
              --with-informix=/home/informix2000 \
              --with-ldap=/usr/local \
              --enable-yp
...
checking for standard DES crypt... no
checking for extended DES crypt... no
checking for MD5 crypt... no
Segmentation Fault              <<<---------------
checking for Blowfish crypt... no
...
| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.                         |

There seems to be a problem with the checking for MD5 crypt... 

I downloaded the latest source of md5 from sunsolve, compiled it and installed the binary in /usr/local/bin/md5 (which is in my PATH), but this does not help.

Please help,

Pieter



Reproduce code:
---------------
debug.log
CONFIGURE:   './configure' '--with-apache2=/home/wins/builds/src/other/httpd-2.0
.53' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--wit
h-zlib-dir=/usr/local' '--with-informix=/home/informix2000' '--with-ldap=/usr/lo
cal' '--enable-yp'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS
CXX:        c++
CXXFLAGS:
INCLUDES:    -I$(top_builddir)/Zend -I/usr/local/include/libxml2 -I/usr/local/in
clude
LDFLAGS:    -L/usr/local/lib -R/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/hom
e/local/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.3 -L/home/local/bin/../lib/gcc/s
parc-sun-solaris2.9/3.4.3 -R/usr/local/lib -L/usr/local/lib -R/home/informix2000
/lib -L/home/informix2000/lib -R/home/informix2000/lib/esql -L/home/informix2000
/lib/esql -R/home/wins/builds/src/other/php-5.0.3/ext/informix -L/home/wins/buil
ds/src/other/php-5.0.3/ext/informix
LIBS:       -lldap -llber -lpng -lz -ljpeg -lz -lresolv -lm -lsocket  -lgcc -lxm
l2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket
-lnsl
DLIBS:       -lifsql -lifasf -lifgen -lifos -lifgls -lnsl -lsocket -laio -ldl -l
elf -lphpifx -lifglx
SAPI:       cgi
PHP_RPATHS:  /usr/ucblib /home/local/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.3 /
usr/local/lib /home/informix2000/lib /home/informix2000/lib/esql /home/wins/buil
ds/src/other/php-5.0.3/ext/informix
uname -a:   SunOS hswis 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-250

CONFIGURE:   './configure' '--with-apache2=/home/wins/builds/src/other/httpd-2.0
.53' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--wit
h-zlib-dir=/usr/local' '--with-informix=/home/informix2000' '--with-ldap=/usr/lo
cal' '--enable-yp'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS
CXX:        c++
CXXFLAGS:
INCLUDES:    -I$(top_builddir)/Zend -I/usr/local/include/libxml2 -I/usr/local/in
clude
LDFLAGS:    -L/usr/local/lib -R/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/hom
e/local/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.3 -L/home/local/bin/../lib/gcc/s
parc-sun-solaris2.9/3.4.3 -R/usr/local/lib -L/usr/local/lib -R/home/informix2000
/lib -L/home/informix2000/lib -R/home/informix2000/lib/esql -L/home/informix2000
/lib/esql -R/home/wins/builds/src/other/php-5.0.3/ext/informix -L/home/wins/buil
ds/src/other/php-5.0.3/ext/informix
LIBS:       -lldap -llber -lpng -lz -ljpeg -lz -lresolv -lm -lsocket  -lgcc -lxm
l2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket
-lnsl
DLIBS:       -lifsql -lifasf -lifgen -lifos -lifgls -lnsl -lsocket -laio -ldl -l
elf -lphpifx -lifglx
SAPI:       cgi
PHP_RPATHS:  /usr/ucblib /home/local/bin/../lib/gcc/sparc-sun-solaris2.9/3.4.3 /
usr/local/lib /home/informix2000/lib /home/informix2000/lib/esql /home/wins/buil
ds/src/other/php-5.0.3/ext/informix
uname -a:   SunOS hswis 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-250

gcc -o conftest -g -O2 -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -L/usr/lo
cal/lib -R/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/home/local/bin/../lib/gc
c/sparc-sun-solaris2.9/3.4.3 -L/home/local/bin/../lib/gcc/sparc-sun-solaris2.9/3
.4.3 -R/usr/local/lib -L/usr/local/lib -R/home/informix2000/lib -L/home/informix
2000/lib -R/home/informix2000/lib/esql -L/home/informix2000/lib/esql -R/home/win
s/builds/src/other/php-5.0.3/ext/informix -L/home/wins/builds/src/other/php-5.0.
3/ext/informix conftest.c -lldap -llber -lpng -lz -ljpeg -lz -lresolv -lm -lsock
et  -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz
 -lm -lsocket -lnsl 1>&5



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-30 08:58 UTC] pieter dot donche at ua dot ac dot be
dowloaded php5-latest.tar.gz ( php5-200503300630 )
exactly the same results.

Pieter
 [2005-03-30 17:16 UTC] pieter dot donche at ua dot ac dot be
The problem describes below seems to occur when using the --with-ldap=/usr/local option.
During the ./configure I see
...
checking for standard DES crypt... no
checking for extended DES crypt... no
chekcing for MD5 crypt... no
Segmentation fault - core dumped
...
And an **ATTENTION** message at the end, stating thet "Something is likely to be mesed up gere, ..."

When leaving out --with-ldap
The line about standard DES is yes:
  checking for standard DES... yes

I had openSSL installed in /usr/local, which is different
from the default /usr/local/ssl. I tried with adding
--with-openssl=/usr/local --> SAME PROBLEM

Then installed openSSL again, now using the default
install /usr/local/ssl, did PHP configure again
without a --with-openssl line --> SAME PROBLEM
with a --with-openssl=/usr/local/ssl --> SAME PROBLEM

Waht is going on ? 
Why does PHP configure nog succeed in finding standard DES
?
 [2005-03-30 17:20 UTC] sniper@php.net
Try this:

# rm -f config.cache
# ./configure --disable-all --disable-cgi && make

 [2005-03-30 17:40 UTC] 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
 [2005-03-31 00:05 UTC] sniper@php.net
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-31 16:45 UTC] 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 21:52 UTC] sniper@php.net
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-04-08 01:00 UTC] 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-04-27 22:14 UTC] steve at jeamland dot org
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC