#38291 [Opn->Fbk]: Segfault at compiling PHP with SNMP
| From: | tony2001@php.net | Date: | Wed, 02 Aug 2006 09:02:29 +0000 |
| Subject: | #38291 [Opn->Fbk]: Segfault at compiling PHP with SNMP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100215@lists.php.net to get a copy of this message | ||
ID: 38291
Updated by: tony2001@php.net
Reported By: mail at dirkje dot net
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Debian 3.1r2
PHP Version: 5.1.4
New Comment:
I guess MySQL version is 5.0.22+, right?
Previous Comments:
------------------------------------------------------------------------
[2006-08-02 08:49:38] mail at dirkje dot net
Found something: when compiling without --with-mysql, it works. So not
a PHP malfunction!
------------------------------------------------------------------------
[2006-08-02 08:26:15] mail at dirkje dot net
Description:
------------
When I compile PHP-5.1.4 --with-snmp, I get a segfault at make install.
I also tried to install PHP-4.4.2 but it doesn't work either. I also
tried both PHP versions on a Slackware system but that distro gave me
the same segfault.
If I configure the PHP distro without PEAR, the make install works, but
PHP will give me a segfault. Tried both Apache 1.3.34 and Apache 2.2.3.
The SNMP packages I use:
ucd-snmp-4.2.6
net-snmp-5.3.1
My configuration line:
./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql --with-zlib --with-jpeg-dir=/usr/lib
--with-gd --with-png-dir=/usr/lib --with-snmp=/usr/local
Also tried:
./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql --with-zlib --with-jpeg-dir=/usr/lib
--with-gd --with-png-dir=/usr/lib --with-snmp
Reproduce code:
---------------
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.1.4/libs'
chmod 755 /usr/local/apache/modules/libphp5.so
[activating module `php5' in /usr/local/apache/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2
Expected result:
----------------
No segfault :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38291&edit=1