Bug #51587 [Opn]: compile php 5.3.2 with php-fpm error

From: Date: Mon, 19 Apr 2010 09:55:21 +0000
Subject: Bug #51587 [Opn]: compile php 5.3.2 with php-fpm error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-149680@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51587&edit=1

 ID:               51587
 Updated by:       tony2001@php.net
 Reported by:      amoiz dot shine at gmail dot com
 Summary:          compile php 5.3.2 with php-fpm error
 Status:           Open
 Type:             Bug
 Package:          Compile Failure
 Operating System: CentOS 5 i686
 PHP Version:      5.3.2

 New Comment:

# gdb php-fpm
gdb> run
gdb> bt full
Paste here what you get.


Previous Comments:
------------------------------------------------------------------------
[2010-04-19 11:49:31] amoiz dot shine at gmail dot com

>>Just to make it clear: the segfault is caused by PEAR installer, which
you can >>disable using --without-pear configure option.
Add "--without-pear",Segmentation fault appears too.

my configure:
 $ ./configure --prefix=/usr/local/php --bindir=/usr/local/bin
--sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig
--enable-embed=static --enable-fpm --enable-debug --enable-safe-mode
--enable-sigchild --enable-magic-quotes --enable-fd-setsize=100
--enable-calendar --enable-dba=shared --enable-exif --enable-ftp
--enable-gd-native-ttf --enable-intl --enable-mbstring
--enable-embedded-mysqli --enable-pcntl --disable-phar --enable-shmop
--enable-soap --enable-sockets --enable-wddx --enable-zip
--enable-zend-multibyte --with-libxml-dir
--with-libevent-dir=/usr/local/libevent --with-fpm-user=php
--with-fpm-group=php --with-config-file-path=/etc
--with-exec-dir=/usr/local/bin --with-openssl --with-kerberos
--with-pcre-regex --with-zlib --with-bz2 --with-curl --with-gd
--with-mhash --with-imap --with-imap-ssl --with-ldap --with-ldap-sasl
--with-mcrypt --with-mysql=/usr/local/mysql
--with-mysql-sock=/tmp/mysql.sock
--with-mysqli=/usr/local/bin/mysql_config
--with-pdo-mysql=/usr/local/bin/mysql_config --with-xmlrpc
--without-pear

make && make install

[root@PowerPC php-5.3.2]# make install
Installing PHP SAPI module:       fpm
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing shared extensions:    
/usr/local/php/lib/php/extensions/debug-non-zts-20090626/
Installing PHP FPM binary:        /usr/local/sbin/
Installing PHP FPM config:        /etc/sysconfig/
Installing PHP FPM man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/php/lib/php/build/
Installing header files:          /usr/local/php/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PDO headers:          /usr/local/php/include/php/ext/pdo/

NOW,i am going to run php-fpm,
[root@PowerPC php-5.3.2]# php-fpm
Segmentation fault

------------------------------------------------------------------------
[2010-04-19 11:39:52] amoiz dot shine at gmail dot com

>>Yes. Run the command as root.
In fact,i am ROOT already

------------------------------------------------------------------------
[2010-04-19 11:27:01] tony2001@php.net

Just to make it clear: the segfault is caused by PEAR installer, which
you can disable using --without-pear configure option.

------------------------------------------------------------------------
[2010-04-19 11:24:12] tony2001@php.net

>please NOTE,when i checked out php-fpm from its repository,run the
command 
>"./buildconf --force" to rebuild configure,it gives some WARNING,

You can safely ignore those autoconf warnings (or use autoconf 2.13 if
you want to get rid of them).

------------------------------------------------------------------------
[2010-04-19 11:21:24] tony2001@php.net

>it returns "-bash: echo: write error: Operation not permitted"...
>any suggestion?

Yes. Run the command as root.

>Installing PEAR environment:      /usr/local/php/lib/php/
>make[1]: *** [install-pear-installer] Segmentation fault
>make: *** [install-pear] Error 2

This has nothing to do with FPM, it's not even executed when installing
PEAR.
Reclassifying..

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=51587


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


Thread (15 messages)

« previous php.bugs (#149680) next »