Bug #54736 [Fbk]: ext/openssl/xp_ssl.c:333: undefined reference to `SSLv2_client_method'
| From: | rasmus@php.net | Date: | Sun, 15 May 2011 18:52:30 +0000 |
| Subject: | Bug #54736 [Fbk]: ext/openssl/xp_ssl.c:333: undefined reference to `SSLv2_client_method' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160740@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54736&edit=1
ID: 54736
Updated by: rasmus@php.net
Reported by: bobvin at pillars dot net
Summary: ext/openssl/xp_ssl.c:333: undefined reference to
`SSLv2_client_method'
Status: Feedback
Type: Bug
Package: OpenSSL related
Operating System: Linux
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
I ran your configure script. The only difference is that it looks like
you have
hardwired some pecl extensions into your build tree. These flags were
ignored in
my build:
--enable-apc
--enable-apc-pthreadmutex
--enable-apc-sem
--disable-apc-mmap
--with-libevent-dir=/usr
--enable-igbinary
--enable-memcached
--enable-memcached-igbinary
and I was able to reproduce it. Note that with my configure options it
works
fine:
CFLAGS="-Os -march=native -mtune=native -fno-strict-aliasing
-fno-stack-
protector -U_FORTIFY_SOURCE -Wno-inline" \
CXXFLAGS="-Os -march=native -mtune=native -fno-strict-aliasing
-fno-stack-
protector -U_FORTIFY_SOURCE -Wno-inline" \
LDFLAGS="-s" \
PROG_SENDMAIL="/usr/sbin/sendmail" \
../configure \
--prefix=/usr \
--enable-fd-setsize=1024 \
--with-config-file-path=/etc/php5/cgi --with-config-file-scan-
dir=/etc/php5/cgi/conf.d \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--disable-debug \
--disable-intl \
--disable-ipv6 \
--disable-magic-quotes \
--disable-rpath \
--disable-safe-mode \
--disable-shmop \
--disable-short-tags \
--disable-wddx \
--enable-apc --enable-apc-pthreadmutex --enable-apc-sem
--disable-apc-mmap \
--enable-bcmath \
--enable-calendar \
--enable-cgi \
--enable-ctype \
--enable-exif \
--enable-fpm --with-libevent-dir=/usr --with-fpm-user=www-data
--with-fpm-
group=www-data \
--enable-ftp \
--enable-gd-native-ttf --with-gd=/usr \
--enable-igbinary \
--enable-libxml --with-libxml-dir=/usr \
--enable-mbstring \
--enable-memcached --enable-memcached-igbinary \
--enable-pdo \
--enable-phar \
--enable-posix \
--enable-shmop \
--enable-simplexml \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-xmlreader \
--enable-xmlwriter \
--enable-zend-multibyte \
--enable-zip --with-zlib=/usr --with-zlib-dir=/usr \
--with-curl=/usr \
--with-freetype-dir=/usr \
--with-gettext=/usr \
--with-iconv \
--with-imap=/usr --with-imap-ssl \
--with-jpeg-dir=/usr \
--with-layout=GNU \
--with-mcrypt=/usr \
--with-mhash=/usr \
--with-mm=/usr \
--with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd
--with-
mysql-sock=/var/run/mysqld/mysqld.sock \
--with-openssl=/usr --with-kerberos=/usr \
--with-pcre-dir=/usr --with-pcre-regex=/usr \
--with-pear=/usr/share/php \
--with-pic \
--with-png-dir=/usr \
--with-pspell=/usr \
--with-readline=/usr \
--with-regex=php \
--with-sqlite3 --with-pdo-sqlite \
--with-t1lib=/usr \
--with-xpm-dir=/usr/X11R6 \
--with-xsl=/usr \
--without-bz2 \
--without-db4 --without-pdo-dblib \
--without-enchant \
--without-gdbm \
--without-gmp \
--without-ldap --without-ldap-sasl \
--without-mssql \
--without-onig \
--without-pgsql --without-pdo-pgsql \
--without-qdbm \
--without-recode \
--without-snmp \
--without-sqlite \
--without-sybase-ct \
--without-tidy \
--without-unixODBC --without-pdo-odbc \
--without-xmlrpc \
So, to save me some time, could you first verify that it builds fine on
your box
with my configure options, and second, could you go through the
differences and
figure out which one is causing this? I have already eliminated the pecl
ones I
listed initially since it still happens without those.
Previous Comments:
------------------------------------------------------------------------
[2011-05-15 20:33:31] pajoye@php.net
Which linux distribution and which version of it do you use? Debian for
what I can
see, but which version?
------------------------------------------------------------------------
[2011-05-15 20:28:22] bobvin at pillars dot net
Here's the config script I'm using:
#!/bin/sh
rm -rf cgi-build generated_lists autom4te.cache
touch *.in
./buildconf --force
mkdir cgi-build
cd cgi-build
CFLAGS="-Os -march=native -mtune=native -fno-strict-aliasing
-fno-stack-
protector -U_FORTIFY_SOURCE -Wno-inline" \
CXXFLAGS="-Os -march=native -mtune=native -fno-strict-aliasing
-fno-stack-
protector -U_FORTIFY_SOURCE -Wno-inline" \
LDFLAGS="-s" \
PROG_SENDMAIL="/usr/sbin/sendmail" \
../configure \
--prefix=/usr \
--enable-fd-setsize=1024 \
--with-config-file-path=/etc/php5/cgi --with-config-file-scan-
dir=/etc/php5/cgi/conf.d \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--disable-debug \
--disable-intl \
--disable-ipv6 \
--disable-magic-quotes \
--disable-rpath \
--disable-safe-mode \
--disable-shmop \
--disable-short-tags \
--disable-wddx \
--enable-apc --enable-apc-pthreadmutex --enable-apc-sem
--disable-apc-mmap \
--enable-bcmath \
--enable-calendar \
--enable-cgi \
--enable-ctype \
--enable-exif \
--enable-fpm --with-libevent-dir=/usr --with-fpm-user=www-data
--with-fpm-
group=www-data \
--enable-ftp \
--enable-gd-native-ttf --with-gd=/usr \
--enable-igbinary \
--enable-libxml --with-libxml-dir=/usr \
--enable-mbstring \
--enable-memcached --enable-memcached-igbinary \
--enable-pdo \
--enable-phar \
--enable-posix \
--enable-shmop \
--enable-simplexml \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-xmlreader \
--enable-xmlwriter \
--enable-zend-multibyte \
--enable-zip --with-zlib=/usr --with-zlib-dir=/usr \
--with-curl=/usr \
--with-freetype-dir=/usr \
--with-gettext=/usr \
--with-iconv \
--with-imap=/usr --with-imap-ssl \
--with-jpeg-dir=/usr \
--with-layout=GNU \
--with-mcrypt=/usr \
--with-mhash=/usr \
--with-mm=/usr \
--with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd
--with-
mysql-sock=/var/run/mysqld/mysqld.sock \
--with-openssl=/usr --with-kerberos=/usr \
--with-pcre-dir=/usr --with-pcre-regex=/usr \
--with-pear=/usr/share/php \
--with-pic \
--with-png-dir=/usr \
--with-pspell=/usr \
--with-readline=/usr \
--with-regex=php \
--with-sqlite3 --with-pdo-sqlite \
--with-t1lib=/usr \
--with-xpm-dir=/usr/X11R6 \
--with-xsl=/usr \
--without-bz2 \
--without-db4 --without-pdo-dblib \
--without-enchant \
--without-gdbm \
--without-gmp \
--without-ldap --without-ldap-sasl \
--without-mssql \
--without-onig \
--without-pgsql --without-pdo-pgsql \
--without-qdbm \
--without-recode \
--without-snmp \
--without-sqlite \
--without-sybase-ct \
--without-tidy \
--without-unixODBC --without-pdo-odbc \
--without-xmlrpc \
make && sv stop php-fpm && make install
sv start php-fpm
------------------------------------------------------------------------
[2011-05-15 20:25:16] bobvin at pillars dot net
root@www:~# dpkg -l | grep libssl
ii libssl-dev 1.0.0d-2
SSL development libraries, header files and documentation
ii libssl-doc 1.0.0d-2
SSL development documentation documentation
ii libssl0.9.8 0.9.8o-7
SSL shared libraries
ii libssl1.0.0 1.0.0d-2
SSL shared libraries
------------------------------------------------------------------------
[2011-05-15 17:10:44] rasmus@php.net
I found and fixed this problem a couple of weeks ago with a patch very
similar
to the one you linked to. It builds fine on my Debian dev box which has
the new
libssl without SSLv2.
Do this for me:
8:09am new:~> dpkg -l | grep libssl
ii libssl-dev 1.0.0d-2 SSL
development libraries, header files and documentation
ii libssl-doc 1.0.0d-2 SSL
development documentation documentation
ii libssl0.9.8 0.9.8o-7 SSL
shared
libraries
ii libssl1.0.0 1.0.0d-2 SSL
shared
libraries
Let's see your installed ssl versions.
------------------------------------------------------------------------
[2011-05-15 16:24:59] bobvin at pillars dot net
Got the following error when compiling the snapshot:
/usr/bin/ld.bfd.real: ext/openssl/openssl.o: undefined reference to
symbol
'SSL_free@@OPENSSL_1.0.0'
/usr/bin/ld.bfd.real: note: 'SSL_free@@OPENSSL_1.0.0' is defined in DSO
/usr/lib/libssl.so.1.0.0 so try adding it to the linker command line
/usr/lib/libssl.so.1.0.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
------------------------------------------------------------------------
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/bug.php?id=54736
--
Edit this bug report at http://bugs.php.net/bug.php?id=54736&edit=1