Building fails under Poudriere (12.1-RELEASE-p10). The following link gives the full log:
The log ends with the following error message:
--- libhpmud_la-pml.lo ---
In file included from io/hpmud/pml.c:45:
In file included from /usr/local/include/net-snmp/net-snmp-includes.h:24:
In file included from /usr/local/include/net-snmp/definitions.h:22:
In file included from /usr/local/include/net-snmp/types.h:425:
In file included from /usr/local/include/net-snmp/library/snmp_api.h:33:
In file included from /usr/local/include/net-snmp/varbind_api.h:102:
In file included from /usr/local/include/net-snmp/library/snmp_client.h:33:
/usr/local/include/net-snmp/session_api.h:317:10: fatal error: 'net-snmp/library/snmpUDPIPv6Domain.h' file not found
1 error generated.
*** [libhpmud_la-pml.lo] Error code 1
make: stopped in /wrkdirs/usr/ports/print/hplip/work/hplip-3.20.6
OK, I found something interesting: if I turn on the option IPV6 on net-mgmt/net-snmp, the aforementioned header is not missing anymore and the port builds.
Looks like the net-snmp ipv6 headers should be installed even if the IPV6 option is off. Let's see what the net-snmp maintainer has to say.