ports/74810: net-mgmt/php4-snmp fails to build
Jiri Novak
bati at nostromo.cz
Tue Dec 7 11:00:46 UTC 2004
>Number: 74810
>Category: ports
>Synopsis: net-mgmt/php4-snmp fails to build
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 07 11:00:42 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Jiri Novak <bati at nostromo.cz>
>Release: FreeBSD 5.2.1-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD hedvika.hq.nostromo.cz 5.2.1-RELEASE-p11 FreeBSD 5.2.1-RELEASE-p11 #2: Thu Oct 21 09:51:43 CEST 2004 root at hedvika.hq.nostromo.cz:/usr/obj/usr/src/sys/HEDVIKA i386
>Description:
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 at 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
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list