net-mgmt/php4-snmp fails to build with following error messages: ===> Building for php4-snmp-4.3.9_1 /bin/sh /usr/local/bin/libtool13 --mode=compile cc -I. -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp -DPHP_ATOM_INC -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/include -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/main -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -march=pentiumpro -prefer-pic -c /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c -o snmp.lo mkdir .libs cc -I. -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp -DPHP_ATOM_INC -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/include -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/main -I/usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -march=pentiumpro -prefer-pic -c /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c -fPIC -DPIC -o .libs/snmp.lo cc: unrecognized option `-prefer-pic' In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:79: /usr/local/include/net-snmp/net-snmp-config.h:928:1: warning: "PACKAGE_BUGREPORT" redefined In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:26: /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/config.h:50:1: warning: this is the location of the previous definition In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:79: /usr/local/include/net-snmp/net-snmp-config.h:931:1: warning: "PACKAGE_NAME" redefined In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:26: /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/config.h:53:1: warning: this is the location of the previous definition In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:79: /usr/local/include/net-snmp/net-snmp-config.h:934:1: warning: "PACKAGE_STRING" redefined In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:26: /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/config.h:56:1: warning: this is the location of the previous definition In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:79: /usr/local/include/net-snmp/net-snmp-config.h:937:1: warning: "PACKAGE_TARNAME" redefined In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:26: /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/config.h:59:1: warning: this is the location of the previous definition In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:79: /usr/local/include/net-snmp/net-snmp-config.h:940:1: warning: "PACKAGE_VERSION" redefined In file included from /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:26: /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/config.h:62:1: warning: this is the location of the previous definition /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c: In function `netsnmp_session_set_sec_protocol': /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:777: error: `usmAES192PrivProtocol' undeclared (first use in this function) /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:777: error: (Each undeclared identifier is reported only once /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:777: error: for each function it appears in.) /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:781: error: `usmAES256PrivProtocol' undeclared (first use in this function) /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c: In function `netsnmp_session_gen_auth_key': /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:804: warning: initialization discards qualifiers from pointer target type /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c: In function `netsnmp_session_gen_sec_key': /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp/snmp.c:833: warning: initialization discards qualifiers from pointer target type *** Error code 1 Stop in /usr/ports/net-mgmt/php4-snmp/work/php-4.3.9/ext/snmp. *** Error code 1 Stop in /usr/ports/net-mgmt/php4-snmp. root@hedvika:/usr/ports/net-mgmt/php4-snmp# ==== I have net-snmp-5.2 installed. I did even try it with ucd-snmp port, with no luck - it gives similiar build error. How-To-Repeat: cd /usr/ports/net-mgmt/php4-snmp && make install clean
Responsible Changed From-To: freebsd-ports-bugs->kuriyama Jun did the snmp-update
State Changed From-To: open->closed This should be fixed in net-snmp-5.2_1. Please try with it. Thanks!