php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21500 Snmp.c undeclarded vars
Submitted: 2003-01-07 16:37 UTC Modified: 2003-01-09 15:20 UTC
From: translucent at catholic dot org Assigned:
Status: Closed Package: SNMP related
PHP Version: 4.3.0 OS: linux redhat 8 --
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: translucent at catholic dot org
New email:
PHP Version: OS:

 

 [2003-01-07 16:37 UTC] translucent at catholic dot org
Well this is the output error, Shouldn't really deal with any of the options? but I will Inculde them after... 



php-4.3.0/ext/snmp/snmp.c -o ext/snmp/snmp.lo
php-4.3.0/ext/snmp/snmp.c: In function `zif_snmp_get_quick_print':
php-4.3.0/ext/snmp/snmp.c:506: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c:506: (Each undeclared identifier is reported only once
php-4.3.0/ext/snmp/snmp.c:506: for each function it appears in.)
php-4.3.0/ext/snmp/snmp.c:506: `NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c: In function `zif_snmp_set_quick_print':
php-4.3.0/ext/snmp/snmp.c:525: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c:525: `NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c: In function `zif_snmp_set_enum_print':
php-4.3.0/ext/snmp/snmp.c:544: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c:544: `NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c: In function `zif_snmp_set_oid_numeric_print':
php-4.3.0/ext/snmp/snmp.c:559: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c:560: `NETSNMP_DS_LIB_OID_OUTPUT_FORMAT' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c:561: `NETSNMP_OID_OUTPUT_NUMERIC' undeclared (first use in this function)
php-4.3.0/ext/snmp/snmp.c: In function `netsnmp_session_gen_auth_key':
php-4.3.0/ext/snmp/snmp.c:672: warning: initialization discards qualifiers from pointer target type
php-4.3.0/ext/snmp/snmp.c: In function `netsnmp_session_gen_sec_key':
php-4.3.0/ext/snmp/snmp.c:701: warning: initialization discards qualifiers from pointer target type
make: *** [ext/snmp/snmp.lo] Error 1











###########
###########
Options -- 
./configure '--with-pdflib=/usr/pdflib-4.0.3-icc-Linux/bind/c' '--with-tiff-dir=/usr/local/' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'



All I did was the configure with above options, did the make, and it gave me the error I printed above -- I checked the snmp.c, as far as i could tell they were not declared --

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-08 17:43 UTC] kalowsky@php.net
1) Your configure script has 2 SNMP entries in it
2) Do you have netsnmp installed?  This looks to be defined in the netsnmp headers, which we don't control.
 [2003-01-09 11:13 UTC] translucent at catholic dot org
you are correct, i don't really need snmp anyways... 
So i'll just take it out :-)
netsnmp is installed...
 [2003-01-09 15:20 UTC] translucent at catholic dot org
I upgraded the Snmp packages from the redhat site.. and it worked just fine with snmp -- 
if only i had updated everything to begin with...
 also used httpd-devel-2.0.40-15.i386.rpm (not on the redhat site) to cure the missing httpd file..
 and it all installed lovely...
 I love it when stuff WORKS! :-)
 [2003-01-09 15:20 UTC] translucent at catholic dot org
See comments, updates for net-snmp and http cured problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC