From: Steve dot Cleveland at orst dot edu Operating system: RHEL5.4 64bit PHP version: 5.2.12 PHP Bug Type: Compile Failure Bug description: File in Wrong Format errors
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 bug report at http://bugs.php.net/?id=50596&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50596&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50596&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50596&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50596&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50596&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50596&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50596&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50596&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50596&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50596&r=support Expected behavior: http://bugs.php.net/fix.php?id=50596&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50596&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50596&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50596&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50596&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50596&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50596&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50596&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50596&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50596&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50596&r=mysqlcfg