#21500 [Fbk->Opn]: Snmp.c undeclarded vars
| From: | translucent at catholic dot org | Date: | Thu, 09 Jan 2003 17:13:41 +0000 |
| Subject: | #21500 [Fbk->Opn]: Snmp.c undeclarded vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29596@lists.php.net to get a copy of this message | ||
ID: 21500
User updated by: translucent@catholic.org
Reported By: translucent@catholic.org
-Status: Feedback
+Status: Open
Bug Type: SNMP related
Operating System: linux redhat 8 --
PHP Version: 4.3.0
New Comment:
you are correct, i don't really need snmp anyways...
So i'll just take it out :-)
netsnmp is installed...
Previous Comments:
------------------------------------------------------------------------
[2003-01-08 17:43:34] 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-07 16:37:38] translucent@catholic.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 --
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21500&edit=1