Bon ben je bataille depuis 2 jours pour compiler un Apache + PHP + UCD-SNMP + GD + etc...
Tout est OK, sauf au moment de la compilation de l'extention SNMP dans PHP :
Making all in snmp
make[2]: Entering directory `/home/fdupont/php-4.2.3/ext/snmp'
make[3]: Entering directory `/home/fdupont/php-4.2.3/ext/snmp'
gcc -I. -I/home/fdupont/php-4.2.3/ext/snmp -I/home/fdupont/php-4.2.3/main -I/home/fdupont/php-4.2.3 -I/home/fdupont/php-4.2.3/Zend -I/usr/local/include/freetype2/freetype -I/usr/local/include -I/home/fdupont/php-4.2.3/ext/mysql/libmysql -I/usr/local/include/ucd-snmp -I/home/fdupont/php-4.2.3/ext/xml/expat -I/home/fdupont/php-4.2.3/TSRM -g -O2 -c snmp.c && touch snmp.lo
snmp.c: In function `zm_info_snmp':
snmp.c:133: `VersionInfo' undeclared (first use in this function)
snmp.c:133: (Each undeclared identifier is reported only once
snmp.c:133: for each function it appears in.)
snmp.c: In function `php_snmp':
snmp.c:318: warning: passing arg 1 of `sprint_value' from incompatible pointer type
snmp.c:328: warning: passing arg 1 of `sprint_objid' from incompatible pointer type
snmp.c:347: warning: passing arg 1 of `sprint_objid' from incompatible pointer type
make[3]: *** [snmp.lo] Error 1
make[3]: Leaving directory `/home/fdupont/php-4.2.3/ext/snmp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fdupont/php-4.2.3/ext/snmp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fdupont/php-4.2.3/ext'
make: *** [all-recursive] Error 1 |
J'ai configuré mon PHP comme çà :
./configure --with-zlib --with-gd--with-xpm-dir=/usr/local/lib/ --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-freetype-dir=/usr/local/lib/ --with-snmp=/usr/local --with-openssl |
Et l'install de UCD-SNMP c'est passé sans encombres et il fonctionne
C'est pas que c'est important, mais bon...pour un polleur SNMP, il vaudrait mieux qu'il y ait cette extention
Pleaaaase heeeelp
---------------
Nicolede @ Illidan (drood spé aspirine)