Jump to content

Recommended Posts

I'm trying to modify my PHP build on my Linux server to add mime magic.

 

"configure" appears to run correctly

./configure --prefix=/usr --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --enable-sigchild --with-zlib --with-pdo-oci --without-pdo-sqlite --with-freetype-dir=/usr/local/lib --with-ttf=/usr/local/lib --enable-mbstring --enable-ftp --with-openssl --with-gd --with-curl=/usr/local/lib/curl-7.16.0 --enable-zip --enable-pcntl --enable-sockets --with-PEAR=/usr/local/lib/php --with-jpeg-dir=/root/jpeg-6b --with-mime-magic

as does "make", with no obvious warnings or errors

 

But "make test" completely freezes. I left it overnight before eventually aborting:

[root@carina php-5.2.5]# make test

Build complete.
Don't forget to run 'make test'.

make: *** [test] Interrupt

 

If I then do a "make install" (or even if I skip "make test" and do "make install" immediately after "make"),

it freezes again:

[root@carina php-5.2.5]# make install
Installing PHP SAPI module:       apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.so /usr/local/apache/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /root/php-5.2.5/libs'
chmod 755 /usr/local/apache/modules/libphp5.so
[activating module `php5' in /usr/local/apache/conf/httpd.conf]
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/man/man1/
Installing build environment:     /usr/lib/php/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/lib/php/

The "make install" also hangs at this point, forcing me to abort again. This leaves me with a corrupted libphp5.so, and Apache won't start up correctly, with only a single process running.

[root@carina bin]# ./apachectl start
[root@carina bin]# ps -ef | grep http
root     28409     1 93 09:43 ?        00:00:05 /usr/local/apache/bin/httpd -k start
root     28411  3693  0 09:44 pts/1    00:00:00 grep http

and trying to stop it gives an error:

[root@carina bin]# ./apachectl stop
httpd (no pid file) not running

The apache error log shows:

[Thu Jan 08 09:43:57 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]

 

 

I've built php successfully many times before, and never encountered this.

 

It's the same with PHP 5.2.6, and also when trying the build on a second server.

I now get the same result if I try to remove the --with-mime-magic from the configuration line to revert back to the configuration for my previous build, even after a "make clean", or blasting the directory that I'm using to do the build and re-extracting the source from the original tar.gz file.

 

I've googled the problem, but can only find a couple of similar situations, and none of the suggestions or fixes that I've found there have worked... e.g. checking that gcc is version 3 or above, and adding "ipnodes:    files dns" to /etc/nsswitch.conf

 

Server #1

OS is Red Hat Enterprise Linux ES release 3 (Taroon Update 8) 32-bit

gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-56)

 

Server #2

OS is Red Hat Enterprise Linux ES release 4 (Nahant Update 4) 32-bit

gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)

 

Any suggestions?

 

For the sake of anybody else having the same problem, adding "ipnodes: files dns" to /etc/nsswitch.conf does seem to work.... I'd simply forgottent to reboot to let Redhat pick up the change.

 

"make test" is now running successfully. I'll know for certain that it's all fixed once I get to do a "make install"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.