As it is, given the installed layouts of the current net-snmp and ucd-snmp packages, hpoj cannot link w/ snmp and therefore the support for jetdirect cards is broken. hpoj's configure only looks for snmp.h and only attempts to link with -lsnmp. Neither exist. It should depend on net-snmp, look for <net-snmp/library/snmp.h> (or for <library/snmp.h> iff -L/usr/include/net-snmp. It should link w/ -lnetsnmp -lnetsnmpagent -lnetsnmphelpers and -lnetsnmpmib as required. The current bit in the ebuild: use snmp \ && myconf="${myconf} --with-snmp=/usr" \ || myconf="${myconf} --without-snmp" is ok, but a patch to the hpoj src will be necessary to make it do anything useful. (As for ucd-snmp, the current ebuild does not install anything that hpoj needs/looks for. Neither includes nor libs.) For a strictly usb setup, it may be OK. I only have an ethernet setup (and only need hpoj for scanning). -JimC
i can't really understand your problem, hpoj depends on ucd-snmp and seems to work fine with it. net-snmp is currently not supported by hpoj.
Given: :; egrep lib /var/db/pkg/net-analyzer/ucd-snmp-4.2.6-r1/CONTENTS dir /usr/lib dir /var/lib dir /var/lib/ucd-snmp and: :; fgrep -c snmp.h /var/db/pkg/net-analyzer/ucd-snmp-4.2.6-r1/CONTENTS 0 and that hpoj's configure looks for snmp.h and for snmp_open in -lsnmp I do not see how ucd-snmp provides anything hpoj needs/looks for. hpoj's ebuild tells configure to look for /usr/include/snmp.h, but ucd-snmp puts everthing in /usr/include/ucs-snmp. Of course, changing the ebuild will not help since ucd-snmp does not install a snmp.h file even in /usr/include/ucd-snmp. The lack of a library (.a or .so) doesn't help either. So perhaps this should also be a ucd-snmp bug rather than just a hpoj bug? All that said, David replied to my post on the hpoj list with the comment that net-snmp support will be added to a future version of hpoj.
hehe strange: heino@heino heino $ egrep lib /var/db/pkg/net-analyzer/ucd-snmp-4.2.6-r1/CONTENTS dir /usr/lib obj /usr/lib/libsnmp-0.4.2.6.so 70a4ea082b09f3562c79bc864154007e 1054341514 sym /usr/lib/libsnmp.so -> libsnmp-0.4.2.6.so (41471, 64225L, 773L, 1, 0, 0, 18L, 1054341515, 1054341515, 1054341515) obj /usr/lib/libsnmp.la 90ba6f892216259a8c5a4f682d1fcadc 1054341514 obj /usr/lib/libsnmp.a 8892ca76a96ab29098ba69ff3cba5a6e 1054341514 obj /usr/lib/libucdagent-0.4.2.6.so cab54b924ab76253348805492b3fd94f 1054341514 sym /usr/lib/libucdagent.so -> libucdagent-0.4.2.6.so (41471, 64233L, 773L, 1, 0, 0, 22L, 1054341515, 1054341515, 1054341515) obj /usr/lib/libucdagent.la 8305a0f1e4ab6b2d46df3cb89641214c 1054341514 obj /usr/lib/libucdagent.a bcf40ccd462f9a6bbd51d4af6c7b2f0c 1054341514 obj /usr/lib/libucdmibs-0.4.2.6.so cab8f04cb691aef87abe52004d229663 1054341514 sym /usr/lib/libucdmibs.so -> libucdmibs-0.4.2.6.so (41471, 64365L, 773L, 1, 0, 0, 21L, 1054341515, 1054341515, 1054341515) obj /usr/lib/libucdmibs.la 9ea7f82374137747648a8c4a9407c90b 1054341514 obj /usr/lib/libucdmibs.a 26dcd6cb547bc98c1634a59a507f7cfe 1054341514 dir /var/lib dir /var/lib/ucd-snmp heino@heino heino $ fgrep -c snmp.h /var/db/pkg/net-analyzer/ucd-snmp-4.2.6-r1/CONTENTS 1 and hpoj is working for me, maybe you have to remerge ucd-snmp?
I just tried re-merging ucd-snmp. This is now the second ebuild I've found where emake||die does not die when the compile fails. (fltk 1.1 is the other.) I'm going to open a new bug to report the snmp compile failure.... Bugzilla is not giving me an option to move this one from NEW...
ucd-snmp bug -> invalid