Bug #53339 [Com]: Fails to build LDAP module when compilng with gcc 4.5 and DSO libraries

From: Date: Mon, 29 Aug 2011 08:26:20 +0000
Subject: Bug #53339 [Com]: Fails to build LDAP module when compilng with gcc 4.5 and DSO libraries
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163071@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53339&edit=1 ID: 53339 Comment by: qing0088 at hotmail dot com Reported by: clint at ubuntu dot com Summary: Fails to build LDAP module when compilng with gcc 4.5 and DSO libraries Status: Closed Type: Bug Package: Compile Failure Operating System: Ubuntu Linux (natty) PHP Version: 5.3.3 Assigned To: geissert Block user comment: N Private report: N New Comment: http://www.jetsjerseyonline.com/dbrickashaw-ferguson-jersey-c-10_33.html D'Brickashaw Ferguson Jersey http://www.jetsjerseyonline.com/dennis-byrd-jersey-c-10_22.html Dennis Byrd Throwback Jersey http://www.jetsjerseyonline.com/dustin-keller-jersey-c-10_23.html Dustin Keller Jersey Previous Comments: ------------------------------------------------------------------------ [2011-05-19 07:43:50] scottmac@php.net Automatic comment from SVN on behalf of scottmac Revision: http://svn.php.net/viewvc/?view=revision&revision=311223 Log: Revert part of the fix for #53339 On OSX we need ssl AND crypto The patch that was applied didn't even match what was in the bug ------------------------------------------------------------------------ [2011-03-18 19:47:37] geissert@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2011-03-18 19:47:11] geissert@php.net Automatic comment from SVN on behalf of geissert Revision: http://svn.php.net/viewvc/?view=revision&revision=309398 Log: Add the libraries we actually test and need for LDAP and OpenSSL, fixes bug #53339 Patch by Clint Byrum ------------------------------------------------------------------------ [2010-11-18 09:32:42] clint at ubuntu dot com This is tracked in Ubuntu under this bug report: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/676672 ------------------------------------------------------------------------ [2010-11-18 09:28:40] clint at ubuntu dot com Description: ------------ The currenty Ubuntu development release (natty) has updated the toolchain to gcc 4.5 and uses DSO libs. Because of this, there are stricter restrictions on using symbols without directly linking to the library containing them. This patch fixes these issues, and compiles correctly on natty and the current stable release (Ubuntu 10.10). Test script: --------------- ./configure --with-ldap --with-openssl Fails because sasl2 is not linked directly. If that is fixed, make Fails because libssl does not contain X509_new (libcrypto does). Expected result: ---------------- configure and build should complete Actual result: -------------- checking for sasl_version in -lldap... no configure: error: LDAP SASL check failed. Please check config.log for more information. make: *** [configure-apache2-stamp] Error 1 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ext/zip/lib/.libs/zip_dirent.o: In function `_zip_dirent_read': /home/clint/pkg/php5/bzr/build-area/php5-5.3.3/ext/zip/lib/zip_dirent.c:478: warning: memset used with constant zero length parameter; this could be due to transposed parameters /home/clint/pkg/php5/bzr/build-area/php5-5.3.3/ext/zip/lib/zip_dirent.c:478: warning: memset used with constant zero length parameter; this could be due to transposed parameters /usr/bin/ld.bfd.real: ext/openssl/.libs/openssl.o: undefined reference to symbol 'X509_free@@OPENSSL_0.9.8' /usr/bin/ld.bfd.real: note: 'X509_free@@OPENSSL_0.9.8' is defined in DSO /lib64/libcrypto.so.0.9.8 so try adding it to the linker command line /lib64/libcrypto.so.0.9.8: could not read symbols: Invalid operation collect2: ld returned 1 exit status ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53339&edit=1

« previous php.bugs (#163071) next »