Buildworld errors out on libbsnmp

From: Dimitry Andric <dimitry_at_andric.com>
Date: Mon, 10 Nov 2003 14:57:43 +0100
Hi,

I was just building world after your recent commits of the libbsnmp
stuff. This results in the following errors:

---------------------------------------------------------------------
===> lib/libbsnmp/modules/snmp_mibII
rm -f .depend
mkdep -f .depend -a    -I/usr/include/bsnmp -I/usr/src/lib/libbsnmp/modules/snmp_mibII  /usr/src/lib/libbsnmp/modules/snmp_mibII/mibII_tree.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_ifmib.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_ip.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_interfaces.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_ipaddr.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_ifstack.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_rcvaddr.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_nettomedia.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_tcp.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_udp.c /usr/src/lib/libbsnmp/modules/snmp_mibII/../../../../contrib/bsnmp/snmp_mibII/mibII_route.c
/usr/src/lib/libbsnmp/modules/snmp_mibII/mibII_tree.c:5:18: asn1.h: No such file or directory
/usr/src/lib/libbsnmp/modules/snmp_mibII/mibII_tree.c:6:18: snmp.h: No such file or directory
/usr/src/lib/libbsnmp/modules/snmp_mibII/mibII_tree.c:7:23: snmpagent.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_ifmib.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_ip.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_interfaces.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_ipaddr.c:40:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_ifstack.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_rcvaddr.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_nettomedia.c:42:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_tcp.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_udp.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
In file included from /usr/src/contrib/bsnmp/snmp_mibII/mibII_route.c:37:
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:57:18: asn1.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:58:18: snmp.h: No such file or directory
/usr/src/contrib/bsnmp/snmp_mibII/mibII.h:59:21: snmpmod.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/lib/libbsnmp/modules/snmp_mibII.
*** Error code 1

Stop in /usr/src/lib/libbsnmp/modules.
*** Error code 1

Stop in /usr/src/lib/libbsnmp.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
---------------------------------------------------------------------

It seems that the depend stage assumes that the bsnmp include files
are already in /usr/include, but since I don't have these yet, it
fails. Of course I could first make install them, but I hope that the
attached patch is a better fix: it uses include paths directly in
the src/contrib/bsnmp tree. This should also prevent usage of outdated
headers when building.

If you have any questions about how I got the above errors, please let
me know. You might be able to reproduce them by simply removing your
/usr/include/bsnmp dir before building world.

Received on Mon Nov 10 2003 - 04:58:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:28 UTC