Bug #54736 [Fbk->Opn]: ext/openssl/xp_ssl.c:333: undefined reference to `SSLv2_client_method'

From: Date: Tue, 17 May 2011 10:58:52 +0000
Subject: Bug #54736 [Fbk->Opn]: 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-160782@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 User updated 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 +Status: Open Type: Bug Package: OpenSSL related Operating System: Linux PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: To answer your question, I'm running Debian (squeeze/sid) with a few packages custom-compiled: runit nginx php memcached mariadb Confirmed that your configuration compiles successfully on my server. I'm trying to produce the smallest possible config script that reproduces the error on my server, but it will take some time, as each compile takes 20-30 min. to either succeed or fail. Previous Comments: ------------------------------------------------------------------------ [2011-05-15 20:56:20] rasmus@php.net Damn, cut-and-paste casualty there. I pasted your options back in. Here are the working configure options that I use on my Debian box: './configure' \ '--with-apxs2=/usr/bin/apxs2' \ '--with-gd' \ '--enable-calendar' \ '--with-jpeg-dir=/usr' \ '--with-freetype-dir=/usr' \ '--enable-gd-native-ttf' \ '--with-freetype-dir=/usr' \ '--with-jpeg-dir=/usr' \ '--with-png-dir=/usr' \ '--enable-exif' \ '--with-config-file-path=/etc' \ '--with-mysql=/usr' \ '--with-zlib' \ '--with-zlib-dir=/usr' \ '--with-gettext' \ '--with-kerberos' \ '--with-mcrypt=/usr/local' \ '--with-ldap' \ '--with-iconv' \ '--enable-sockets' \ '--with-openssl' \ '--with-imap' \ '--with-imap-ssl' \ '--with-pspell' \ '--with-pdo-mysql=/usr' \ '--with-pdo-sqlite' \ '--enable-soap' \ '--enable-xmlreader' \ '--with-xsl' \ '--enable-ftp' \ '--enable-cgi' \ '--with-curl=/usr' \ '--with-tidy' \ '--with-xmlrpc' \ '--enable-mbstring' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-shmop' \ '--with-readline' \ '--with-mysqli=/usr/bin/mysql_config' \ '--prefix=/usr/local' \ '--enable-zip' \ ------------------------------------------------------------------------ [2011-05-15 20:52:29] rasmus@php.net 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. ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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

« previous php.bugs (#160782) next »