From:             [EMAIL PROTECTED]
Operating system: linux redhat 8 -- 
PHP version:      4.3.0
PHP Bug Type:     Compile Failure
Bug description:  Snmp.c  undeclarded vars

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 bug report at http://bugs.php.net/?id=21500&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21500&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21500&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21500&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21500&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21500&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21500&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21500&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21500&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21500&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21500&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21500&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21500&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21500&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21500&r=gnused

Reply via email to