php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38291 Segfault at compiling PHP with SNMP
Submitted: 2006-08-02 08:26 UTC Modified: 2006-08-02 11:39 UTC
From: mail at dirkje dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.4 OS: Debian 3.1r2
Private report: No CVE-ID: None
 [2006-08-02 08:26 UTC] 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 :)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-02 08:49 UTC] mail at dirkje dot net
Found something: when compiling without --with-mysql, it works. So not a PHP malfunction!
 [2006-08-02 09:02 UTC] tony2001@php.net
I guess MySQL version is 5.0.22+, right?
 [2006-08-02 11:34 UTC] mail at dirkje dot net
That's right. I already solved the bug. I downloaded the MySQL source and compiled the libraries with my glibc installation. This works! :)
 [2006-08-02 11:39 UTC] tony2001@php.net
Ok, yet another problem caused by recent YaSSL addition to binary MySQL packages.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 16:01:32 2024 UTC