Bug #51587 [Opn]: compile php 5.3.2 with php-fpm error
[email protected] ("amoiz dot shine at gmail dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at http://bugs.php.net/bug.php?id=51587&edit=1
ID: 51587
User updated by: amoiz dot shine at gmail dot com
Reported by: amoiz dot shine at gmail dot com
Summary: compile php 5.3.2 with php-fpm error
Status: Open
Type: Bug
Package: FPM related
Operating System: CentOS 5 i686
PHP Version: 5.3.2
New Comment:
download the lastest snapshot tarball named "php5.3-201004190230".
follow the same steps,ERROR again
see here:
[root@PowerPC php5.3-201004190230]# 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 PEAR environment: /usr/local/php/lib/php/
--2010-04-19 06:57:50-- http://pear.php.net/install-pear-nozlib.phar
Resolving pear.php.net... 78.129.214.25
Connecting to pear.php.net|78.129.214.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3670286 (3.5M) [text/plain]
Saving to: `pear/install-pear-nozlib.phar'
100%[======================================>] 3,670,286 1.84M/s in
1.9s
2010-04-19 06:57:53 (1.84 MB/s) - `pear/install-pear-nozlib.phar' saved
[3670286/3670286]
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2
please NOTE,when i checked out php-fpm from its repository,run the
command "./buildconf --force" to rebuild configure,it gives some
WARNING,
they are:
[root@PowerPC php5.3-201004190230]# ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running vcsclean for you.
To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.
rebuilding configure
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h',
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template
without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced,
see the
autoheader: WARNING: documentation.
maybe helpful to you.
Many Thanks
Sharl
Previous Comments:
------------------------------------------------------------------------
[2010-04-19 03:57:55] amoiz dot shine at gmail dot com
i am sorry.
when i run this command below:
echo "/tmp/core/core-%e.%p" > /proc/sys/kernel/core_pattern
to Set up the core pattern.
it returns "-bash: echo: write error: Operation not permitted"...
any suggestion?
------------------------------------------------------------------------
[2010-04-18 15:24:48] [email protected]
please provide more informations.
See http://bugs.php.net/how-to-report.php and especially
http://bugs.php.net/bugs-
generating-backtrace.php
++ Jerome
------------------------------------------------------------------------
[2010-04-18 10:47:29] amoiz dot shine at gmail dot com
Description:
------------
i download the php source tarball from php.net.
and check out lastest version of php-fpm from SVN.
then,i run the
./configure --prefix=/usr/local/php --bindir=/usr/local/bin
--sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig
--enable-embed=shared --enable-fpm --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 --with-pear
it seems to be ok,and run make command.it looks like NO error
appears,too
but when i run the make install,it gives some information below:
[root@PowerPC php-5.3.2]# make install
/bin/sh /root/php-5.3.2/libtool --silent --preserve-dup-deps
--mode=install cp ext/dba/dba.la /root/php-5.3.2/modules
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/no-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 PEAR environment: /usr/local/php/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2
I Do Not know what caused it..
and i run the php-fpm ,it returns "Segmentation fault"
Test script:
---------------
See my configure string
Expected result:
----------------
Install Success and php-fpm works OK.
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51587&edit=1