php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sebastian dot schmidt at bb-data dot de
New email:
PHP Version: OS:

 

 [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
make

 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 libphp4.la 
Undefiniertes                   erstmals referenziert
 Symbol                             in Datei
kstat_close                         /usr/local/lib/libsnmp.so
kstat_lookup                        /usr/local/lib/libsnmp.so
kstat_read                          /usr/local/lib/libsnmp.so
kstat_open                          /usr/local/lib/libsnmp.so
kstat_data_lookup                   /usr/local/lib/libsnmp.so
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 libphp4.la -lkstat

Then I did 
make 
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





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

--Jani

 [2001-10-02 18:27 UTC] sniper@php.net
Please try latest CVS snapshot from http://snaps.php.net/
and reopen with required information if problem still exists.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Mar 25 16:01:26 2019 UTC