i am trying to comile net-snmp 5.7.1 at openBSD5.1.
theerror in compile is
structure has no member named kp_proc'kp_eproc’
structure has no member named
can anyone help me about this ??
and how to do python binding at openBSD ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ok this may be a long post, as we will try to port your software on OpenBSD.
You see OpenBSD doesn’t have this eproc field on it’s k_proc struct. check the declaration:
proc@OpenBSD
grepping the problem in the latest source:
aha! so we need to take care also of these vm structs… our corrensponding decleration is : p_vmspace@OpenBSD
ok so in general changing on these .kp_eproc.e_thing to .p_thing
and .kp_eproc.e_vm.thing to .p_vmspace->thing (it’s a pointer)
should work.
The macros need some care and i think i got them right, but since i’m still compiling these
changes on a pretty slow sparc64 it’s going to take some time to get you the tested diff.
but that should be the general idea.
If your whole process works OK , you can add this patch to your ports/ tree along
with an easy to craft Makefile and have your OpenBSD package administered with pkg_* tools,but more in future edits.
cheers!
DsP
Edit: Here is a first diff that will compile , the second macro is wrong though .
please test.
of course this diff sucks like the vacuum , and i will improve it tommorow 😉