ID:               50596
 Comment by:       Steve dot Cleveland at orst dot edu
 Reported By:      Steve dot Cleveland at orst dot edu
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: RHEL5.4 64bit
 PHP Version:      5.2.12
 New Comment:

Sorry, forgot to mention that the compile works fine on 5.2.11 and
previous.


Previous Comments:
------------------------------------------------------------------------

[2009-12-28 20:26:40] Steve dot Cleveland at orst dot edu

Description:
------------
Starting with PHP 5.2.12, the final part of the 'make' process fails. 
It appears if a system has both 32bit and 64bit libraries, building the
apache1 module tries to link to the 32bit library and fails with "File
in wrong format".

The issue doesn't happen with the CGI/CLI versions.

The apache version is 1.3.41

Reproduce code:
---------------
# locate libdb-4.3.so
/lib/libdb-4.3.so
/lib64/libdb-4.3.so
/usr/lib/libdb-4.3.so
/usr/lib64/libdb-4.3.so

# rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" db4
db4-4.3.29-10.el5.x86_64
db4-4.3.29-10.el5.i386

./configure --enable-dba --with-db4
--with-apxs=/private/httpd/bin/apxs
make

Expected result:
----------------
successful build

Actual result:
--------------
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching
for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.a when searching
for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching
for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.a when searching
for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for
-lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for
-lrt
/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50596&edit=1

Reply via email to