|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12282 PHP ./configure --with-snmp - Error during make
Submitted: 2001-07-20 09:30 UTC Modified: 2001-10-02 18:27 UTC
From: sebastian dot schmidt at bb-data dot de Assigned:
Status: Closed Package: SNMP related
PHP Version: 4.0.5 OS: Sun Solaris 5.7
Private report: No CVE-ID: None
 [2001-07-20 09:30 UTC] sebastian dot schmidt at bb-data dot de
I have the follow problem.
First I installed udc_snmp 4.2.1 ( I tryed also 4.1.2).

then T treyed to compile PHP4.05 ( also 4.06)

./configure --with-snmp=/usr/local

 I get follow error:
bin/sh /export/home/php-4.0.5/libtool --silent --mode=link gcc  -I. -I/export/home/php-4.0.5/ -I/export/home/php-4.0.5/main -I/export/home/php-4.0.5 -I/export/home/php-4.0.5/Zend -I/export/home/php-4.0.5/ext/mysql/libmysql -I/usr/local/include/ucd-snmp -I/export/home/php-4.0.5/ext/xml/expat/xmltok -I/export/home/php-4.0.5/ext/xml/expat/xmlparse -I/export/home/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2   -o php -export-dynamic stub.lo 
Undefiniertes                   erstmals referenziert
 Symbol                             in Datei
kstat_close                         /usr/local/lib/
kstat_lookup                        /usr/local/lib/
kstat_read                          /usr/local/lib/
kstat_open                          /usr/local/lib/
kstat_data_lookup                   /usr/local/lib/
ld: Schwerer Fehler: Symbolreferenzierungsfehler. Keine Ausgabe in php geschrieben
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `php'
Current working directory /export/home/php-4.0.5
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Anywhere I reed to use the -lkstat option, 
I tryed last command with -lkstat again

bin/sh /export/home/php-4.0.5/libtool --silent --mode=link gcc  -I. -I/export/home/php-4.0.5/   -I/export/home/php-4.0.5/main -I/export/home/php-4.0.5 -I/export/home/php-4.0.5/Zend -I/export/home/php-4.0.5/ext/mysql/libmysql -I/usr/local/include/ucd-snmp -I/export/home/php-4.0.5/ext/xml/expat/xmltok -I/export/home/php-4.0.5/ext/xml/expat/xmlparse -I/export/home/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2   -o php -export-dynamic stub.lo -lkstat

Then I did 
make install

When I start php now, I get a core dump.
I don't have this problem without the snmp module.

Best regards
S. Schmidt


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-20 10:08 UTC]
Where is libkstat in your system?


 [2001-10-02 18:27 UTC]
Please try latest CVS snapshot from
and reopen with required information if problem still exists.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 15:01:34 2024 UTC