Greetings, all;

I have a thorny problem building and installing PHP (yes, I know, but this one is on the install portion, not the configure or compile parts). I get through './configure', 'make', and 'make test' just fine, but the problem comes when I do a 'make install'. What I am getting is:


make install
Installing PHP SAPI module: apache2handler
/usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' libphp5.la /usr/lib64/httpd/modules
/usr/lib64/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib64/httpd/modules/
cp .libs/libphp5.so /usr/lib64/httpd/modules/libphp5.so
cp .libs/libphp5.lai /usr/lib64/httpd/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/www/tmp/php-5.2.6/libs'
chmod 755 /usr/lib64/httpd/modules/libphp5.so

And it sits there for a few hours (it ran overnight on Monday), and never finishes. I eventually press Ctrl-C and try to tweak the config. When it gets to the point where it hangs, I run top, and see that apxs is using 99.9% of CPU, but only 0.3% of memory, and there is hardly any I/O on the system (or, at least, the HDD light rarely lights up). Running 'strace make install' yields the expected results, up until apxs goes to hight CPU utilization, at which NOTHING gets reported any more, no other processes spawn, no function calls, no modules loading, no signals, nothing. Including no errors, so Google has not been very informative.

The server in question is running RHEL 5.1 on Intel x86_64 with a complete set of 64 bit libraries. Apxs is from Apache 2.2.3, and all of the dependent libraries are the standard OS provided ones. PHP is the only thing that we are trying to build custom. The './configure' command is:

./configure --enable-shared --with-mysql=shared --with-kerberos=/usr/kerberos \
--with-jpeg-dir --with-libdir=/usr/lib64 --with-libdir=lib64 \
--prefix=/usr/local/php-5.2.6 --with-apxs2 \
--enable-fastcgi --with-openssl --with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=shared --enable-sockets --enable-soap=shared \
--with-openssl-dir=/var/lib/ssl --with-pear=/usr/local/share/pear \
--enable-bcmath=shared --with-bz2=shared --enable-calendar=shared \
--with-curl=shared --enable-dba=shared --enable-exif=shared --enable-ftp=shared \
--with-gd=shared --with-gmp=shared --without-iconv --with-ldap=shared \
--enable-mbstring=shared --with-ncurses --enable-pcntl --with-pcre-dir \
--with-pdo_mysql=shared --with-pdo_sqlite=shared --enable-posix \
--enable-reflection --enable-session --enable-shmop --enable-simplexml \
--enable-sockets --enable-spl --enable-sysvmsg --enable-sysvsem --enable-sysvshm \
--enable-tokenizer --disable-wddx --enable-xml=shared --enable-xmlreader=shared \
--enable-xmlwriter=shared --with-xsl --enable-zip --enable-filter --enable-hash \
--enable-json --enable-dom --enable-pdo=shared --with-sqlite=shared --enable-libxml

And the last page from strace was:

stat("/home/www/tmp/php-5.2.6/ext/ncurses/ncurses_fe.c", {st_mode=S_IFREG|0644, st_size=7899, ...}) = 0
stat("ext/ncurses/ncurses_functions.lo", {st_mode=S_IFREG|0644, st_size=337, ...}) = 0
stat("/home/www/tmp/php-5.2.6/ext/ncurses/ncurses_functions.c", {st_mode=S_IFREG|0644, st_size=54862, ...}) = 0
stat("ext/pcntl/pcntl.lo", {st_mode=S_IFREG|0644, st_size=311, ...}) = 0
stat("/home/www/tmp/php-5.2.6/ext/pcntl/pcntl.c", {st_mode=S_IFREG|0755, st_size=20981, ...}) = 0
stat("/home/www/tmp/php-5.2.6/ext/pcntl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/www/tmp/php-5.2.6/ext/pcntl", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 16 entries */, 4096) = 512
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
stat("/home/www/tmp/php-5.2.6/ext/pcntl/RCS", 0x7fffd5406e50) = -1 ENOENT (No such file or directory)
stat("/home/www/tmp/php-5.2.6/ext/pcntl/SCCS", 0x7fffd5406e50) = -1 ENOENT (No such file or directory)
stat("ext/pcntl/php_signal.lo", {st_mode=S_IFREG|0644, st_size=321, ...}) = 0
stat("/home/www/tmp/php-5.2.6/ext/pcntl/php_signal.c", {st_mode=S_IFREG|0644, st_size=1822, ...}) = 0
stat("sapi/cli/php_cli.lo", {st_mode=S_IFREG|0644, st_size=314, ...}) = 0
stat("/home/www/tmp/php-5.2.6/sapi/cli/php_cli.c", {st_mode=S_IFREG|0644, st_size=38044, ...}) = 0
stat("/home/www/tmp/php-5.2.6/sapi/cli", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/www/tmp/php-5.2.6/sapi/cli", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 22 entries */, 4096) = 704
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
stat("/home/www/tmp/php-5.2.6/sapi/cli/RCS", 0x7fffd5406e50) = -1 ENOENT (No such file or directory)
stat("/home/www/tmp/php-5.2.6/sapi/cli/SCCS", 0x7fffd5406e50) = -1 ENOENT (No such file or directory)
stat("sapi/cli/php_cli_readline.lo", {st_mode=S_IFREG|0644, st_size=332, ...}) = 0
stat("/home/www/tmp/php-5.2.6/sapi/cli/php_cli_readline.c", {st_mode=S_IFREG|0644, st_size=10870, ...}) = 0
stat("sapi/cli/getopt.lo", {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
stat("/home/www/tmp/php-5.2.6/sapi/cli/getopt.c", {st_mode=S_IFREG|0644, st_size=4732, ...}) = 0
stat("main/internal_functions_cli.lo", {st_mode=S_IFREG|0644, st_size=340, ...}) = 0
stat("main/internal_functions_cli.c", {st_mode=S_IFREG|0644, st_size=3172, ...}) = 0
stat("install-sapi", 0x7fffd5406570) = -1 ENOENT (No such file or directory)
pipe([3, 4]) = 0
close(4) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork(Installing PHP SAPI module: apache2handler
) = 327
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0xffffffff) = 327
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 327
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 328
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 328
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0xffffffff) = 328
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 393
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 393
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0xffffffff) = 393
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 394
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, /usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' libphp5.la /usr/lib64/httpd/modules
/usr/lib64/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib64/httpd/modules/
cp .libs/libphp5.so /usr/lib64/httpd/modules/libphp5.so
cp .libs/libphp5.lai /usr/lib64/httpd/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/www/tmp/php-5.2.6/libs'
chmod 755 /usr/lib64/httpd/modules/libphp5.so

Any pointers will be greatly appreciated. Thanks in advance.