Edit report at http://bugs.php.net/bug.php?id=54736&edit=1
ID: 54736
Comment by: bobvin at pillars dot 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:
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
Previous Comments:
------------------------------------------------------------------------
[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] [email protected]
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
------------------------------------------------------------------------
[2011-05-15 14:26:52] [email protected]
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2011-05-15 14:21:00] bobvin at pillars dot net
Sorry; I must have cut-and-pasted the tinyurl link incorrectly.
The patch can be downloaded from http://tinyurl.com/5w3mnsl
which forwards to http://git.debian.org/?p=pkg-
php/php.git;a=blob_plain;f=debian/patches/disable_SSLv2_for_openssl_1_0_0.patch;h
b=HEAD
------------------------------------------------------------------------
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