<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div>Hey all,</div><div><br></div><div>I've been banging my head against this for a day or two now, I'm trying to compile openscap but it's dying when trying to compile the python wrapper. I'm trying to compile openscap-0.8.4 with swig-2.0.8.</div><div><br></div><div>Make output:</div><div><br></div><div><snip></div><div>openscap_py_wrap.c:43390: error: expected expression before '%' token</div><div>openscap_py_wrap.c:43390: error: too few arguments to function 'SWIG_Python_ConvertPtr'</div><div>openscap_py_wrap.c:43392: error: expected expression before '%' token</div><div>openscap_py_wrap.c: In function '_wrap_oval_probe_session_getmodel':</div><div>openscap_py_wrap.c:43413: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_oval_agent_eval_rule':</div><div>openscap_py_wrap.c:43443: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c:43454: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c:43456: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c:43459: error: expected expression before '%' token</div><div>openscap_py_wrap.c:43459: error: too few arguments to function 'SWIG_Python_ConvertPtr'</div><div>openscap_py_wrap.c:43461: error: expected expression before '%' token</div><div>openscap_py_wrap.c: In function '_wrap_oval_agent_resolve_variables':</div><div>openscap_py_wrap.c:43482: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c:43484: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_xccdf_policy_model_register_engine_oval':</div><div>openscap_py_wrap.c:43506: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c:43508: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_oval_agent_export_sysinfo_to_xccdf_result':</div><div>openscap_py_wrap.c:43529: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c:43531: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_xccdf_policy_model_register_engine_callback_py':</div><div>openscap_py_wrap.c:43555: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_xccdf_policy_model_register_output_callback_py':</div><div>openscap_py_wrap.c:43584: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_xccdf_policy_model_register_start_callback_py':</div><div>openscap_py_wrap.c:43610: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>openscap_py_wrap.c: In function '_wrap_oval_agent_eval_system_py':</div><div>openscap_py_wrap.c:43636: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>make[2]: *** [openscap_py_wrap.lo] Error 1</div><div>make[2]: Leaving directory `/home/sverasch/workspace/sverasch-openscap/openscap-0.8.4/swig'</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/sverasch/workspace/sverasch-openscap/openscap-0.8.4'</div><div>make: *** [all] Error 2</div></div><div></snip></div><div><br></div><div>openscap_py<i>_</i>wrap.c:</div><div><snip></div><div><div>43457 if (SWIG_arg_fail(6)) SWIG_fail;</div><div>43458 {</div><div>43459 resultobj = SWIG_ConvertPtr(obj6,%as_voidptrptr(&arg7), 0, 0);</div><div>43460 if (!SWIG_IsOK(resultobj)) {</div><div>43461 %argument_fail(resultobj, "void *", oval_agent_eval_rule, 7);</div><div>43462 }</div><div>43463 }</div></div><div></snip></div><div><br></div><div>I guess there's two questions here, is there any way I can fix this? I know nothing about swig and how these bindings are generated. Also, is there a way to compile opens cap without bindings?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Simon</div></body></html>