php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40120 PHP not compiling on AMD 64
Submitted: 2007-01-13 14:41 UTC Modified: 2007-01-15 09:36 UTC
From: jzozaya at yahoo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.0 OS: RH ES 4 on AMD 64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jzozaya at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-01-13 14:41 UTC] jzozaya at yahoo dot com
Description:
------------
Trying to compile php v5.2 on a Red Hat ES 4 with dual amd 64, apache went ok and works, but php failed to create the libphp5.so library.

I also try the latest 5.2 version (200701122130) and the same error.

I've found others with the same issue, but their solutions do no apply or work for me. (example editing the ./libtool and adding /usr/lib64)



Reproduce code:
---------------
/configure --with-config-file-path=/etc --with-apxs2=/usr/local/apache2/bin/apxs ?with-libdir=/usr/lib64 --enable-soap --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --enable-ftp --enable-mbstring

Actual result:
--------------
[root@www1 php5.2-200701122130]# make install
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a
ranlib /usr/local/apache2/modules/libphp5.a
chmod 644 /usr/local/apache2/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /usr/src/php5.2-200701122130/libs'
Warning!  dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-13 18:59 UTC] judas dot iscariote at gmail dot com
I compile PHP on 64 bit systems daily, and no, it does work, but your configure line is NOT correct.

?with-libdir= does NOT atke an absolute path but the replacement for "lib" in your system that is usually, lib64

so, if you use ?with-libdir=lib64 it should work.
 [2007-01-14 13:53 UTC] jzozaya at yahoo dot com
Thanks for the reply, however it did not work.

Altough I'm thinking if this is the same case for compiling apache ? in the apache ./configure options I'm using

./configure --sysconfdir=/etc/httpd/conf --enable-rewrite --libdir=/usr/lib64 --enable-so

Should I use 

./configure --sysconfdir=/etc/httpd/conf --enable-rewrite --libdir=lib64 --enable-so
 [2007-01-15 09:36 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 01:00:03 2025 UTC