Bug 74810 - net-mgmt/php4-snmp fails to build
Summary: net-mgmt/php4-snmp fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 11:00 UTC by Jiri Novak
Modified: 2004-12-08 11:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Novak 2004-12-07 11:00:42 UTC
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
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-12-07 14:40:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Jun did the snmp-update
Comment 2 Jun Kuriyama freebsd_committer freebsd_triage 2004-12-08 11:14:31 UTC
State Changed
From-To: open->closed

This should be fixed in net-snmp-5.2_1.  Please try with it. 

Thanks!