Bug 250278 - print/hplip: Building fails unless net-mgmt/net-snmp is built with option IPV6
Summary: print/hplip: Building fails unless net-mgmt/net-snmp is built with option IPV6
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-11 21:38 UTC by Samy Mahmoudi
Modified: 2023-06-12 06:38 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (zi)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samy Mahmoudi 2020-10-11 21:38:22 UTC
Hi,

Building fails under Poudriere (12.1-RELEASE-p10). The following link gives the full log:

http://logs.imp.ovh/hplip-3.20.6.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
#include <net-snmp/library/snmpUDPIPv6Domain.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
*** [libhpmud_la-pml.lo] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/print/hplip/work/hplip-3.20.6
Comment 1 Samy Mahmoudi 2020-10-11 21:57:02 UTC
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.
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2020-10-12 15:39:11 UTC
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.