<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-03-09 13:59 GMT+01:00 Tomas Heinrich <span dir="ltr"><<a href="mailto:theinric@redhat.com" target="_blank">theinric@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 03/09/15 13:19, Rainer Gerhards wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Just FYI: I have build problems on CENTOS 6. Will keep you updated.<br>
</blockquote>
<br></span>
Tried it myself on an updated el6 vm, looks like there are couple more bugs...<br>
<br>
First, for some reason (might be my vm is slightly broken), libestr.pc can't be found (might be related to this bz[0]). Defining the correct path helped:<br>
PKG_CONFIG_PATH=/lib64/<u></u>pkgconfig:/usr/lib64/pkgconfig<br></blockquote><div><br></div><div>Maybe a bug in libestr?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Then, I've noticed json_bool is not found by configure. The bug is robably (not 100% sure) that an include is missing:<br>
-AC_CHECK_TYPE(json_bool,,,)<br>
+AC_CHECK_TYPE(json_bool,,,[#<u></u>include <json.h>])<br>
<br>
Then the build still fails on type redefinition as HAVE_JSON_BOOL is not defined. This can be fixed by using a different macro:<br>
-AC_CHECK_TYPE(json_bool,,,[#<u></u>include <json.h>])<br>
+AC_CHECK_TYPES(json_bool,,,[#<u></u>include <json.h>])<br>
<br></blockquote><div><br></div><div>I came to the same conclusion :-) </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Then it finally compiles.<br></blockquote><div><br></div><div>... but I also get some unexpected warnings, for which I did not yet find a cure. It's about json_object_object_get being depricated [0].</div><div><br></div><div>This is (kind of;)) being checked for in <a href="http://configure.ac">configure.ac</a> as well. I thought the include file was missing here, too, but this definition doesn't make any difference:</div><div><br></div><div><div>AC_CHECK_FUNCS(json_object_object_get_ex,,,[#include <json.h>])</div></div><div><br></div><div>Any idea? </div><div><br></div><div>Rainer</div><div><br></div><div>[0]</div><div><div>enc_syslog.c: En la función ‘ln_fmtEventToRFC5424’:</div><div>enc_syslog.c:186: aviso: ‘json_object_object_get’ es obsoleto (declarado en /usr/include/json-c/json_object.h:271)</div><div>  CC     liblognorm_la-enc_csv.lo</div><div>enc_csv.c: En la función ‘ln_fmtEventToCSV’:</div><div>enc_csv.c:200: aviso: ‘json_object_object_get’ es obsoleto (declarado en /usr/include/json-c/json_object.h:271)</div><div>  CC     liblognorm_la-enc_xml.lo</div><div>enc_xml.c: En la función ‘ln_fmtEventToXML’:</div><div>enc_xml.c:207: aviso: ‘json_object_object_get’ es obsoleto (declarado en /usr/include/json-c/json_object.h:271)</div><div>  CC     liblognorm_la-json_compatibility.lo</div><div>  CCLD   <a href="http://liblognorm.la">liblognorm.la</a></div><div>  CC     lognormalizer-lognormalizer.o</div><div>lognormalizer.c: En la función ‘eventHasTag’:</div><div>lognormalizer.c:116: aviso: ‘json_object_object_get’ es obsoleto (declarado en /usr/include/json-c/json_object.h:271)</div><div>lognormalizer.c: En la función ‘normalize’:</div><div>lognormalizer.c:156: aviso: ‘json_object_object_get’ es obsoleto (declarado en /usr/include/json-c/json_object.h:271)</div><div>  CCLD   lognormalizer</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Tomas<br>
<br>
[0] 1158842 - json-c pkgconfig files installed in the wrong place<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1158842" target="_blank">https://bugzilla.redhat.com/<u></u>show_bug.cgi?id=1158842</a><br>
<br>
</blockquote></div><br></div></div>