php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3668 Undeclared identifiers with SNMP
Submitted: 2000-02-29 14:23 UTC Modified: 2000-03-29 23:48 UTC
From: pavalos at theshell dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.15 OS: BSD/OS 4.0.1 i386
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pavalos at theshell dot com
New email:
PHP Version: OS:

 

 [2000-02-29 14:23 UTC] pavalos at theshell dot com
When compiling php-3.0.15 with the --with-snmp option, there's a compile error:

gcc -g -O2 -O2   -I. -I.   -I../apache_1.3.12/src/include -I../apache_1.3.12/src/os/unix                  -I/usr/local/include/mysql -I/usr/local/include/ucd-snmp    -c functions/snmp.c -o functions/snmp.o
functions/snmp.c: In function `_php3_snmp':
functions/snmp.c:163: `DS_LIBRARY_ID' undeclared (first use this function)
functions/snmp.c:163: (Each undeclared identifier is reported only once
functions/snmp.c:163: for each function it appears in.)
functions/snmp.c:163: `DS_LIB_QUICK_PRINT' undeclared (first use this function)
*** Error code 1

Stop.

I was able to fix this by adding:
#include <default_store.h>
in functions/snmp.c.

I would think this is actually a bug in the ucd-snmp package, because they should include this file themselves, but I thought the PHP project should know about this.

Oh, it's ucd-snmp-4.1.1.

Please feel free to contact me for more info, but I think this one is pretty cut and dry.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-03 14:30 UTC] sas at cvs dot php dot net
Thanks for your report. We know about this issue and are working on resolving it (read: it's on the TODO). In the mean time, downgrading to ucd-snmp 4.0.x is the only solution.
 [2000-03-29 23:48 UTC] sas at cvs dot php dot net
Fixed in CVS. Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 11:00:01 2026 UTC