From:             
Operating system: Ubuntu Linux (natty)
PHP version:      5.3.3
Package:          Compile Failure
Bug Type:         Bug
Bug description:Fails to build LDAP module when compilng with gcc 4.5 and DSO 
libraries

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 bug report at http://bugs.php.net/bug.php?id=53339&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53339&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53339&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53339&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53339&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53339&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53339&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53339&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53339&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53339&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53339&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53339&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53339&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53339&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53339&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53339&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53339&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53339&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53339&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53339&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53339&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53339&r=mysqlcfg

Reply via email to