<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 6:20 AM, Champ Clark III <span dir="ltr"><<a href="mailto:cclark@quadrantsec.com" target="_blank">cclark@quadrantsec.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all.....<br>
<br>
I brought this issue up some time ago and thought I would bring it up<br>
again.<br>
<br>
In the liblognorm.h, the json.h is hard coded as "#include <json.h>".<br>
In some Linux distributions, the json-c headers ends up in #include<br>
<json/json.h>.<br>
<br>
This issue comes up when attempting to link applications with<br>
liblognorm. For example, I have pulled and installed libestr and<br>
liblognorm from Github a few minutes<br>
ago. This is a brand new Ubuntu 12.04 box.<br>
<br>
When I go to compile Sagan with liblognorm support (which is default),<br>
I get the following error:<br>
<br>
--<snip>--<br>
<br>
In file included from sagan-config.c:49:0:<br>
/usr/local/include/liblognorm.h:64:18: fatal error: json.h: No such file<br>
or directory<br>
compilation terminated.<br>
make[2]: *** [sagan-config.o] Error 1<br>
<br>
--<snip>--<br>
<br>
In order to fix this issue, I have to manually edit the<br>
/usr/local/include/liblognorm.h file and change:<br>
<br>
#include <json.h><br>
<br>
to<br>
<br>
# include <json/json.h><br>
<br>
I had a similar problem with Sagan and addressed it this way. In my<br>
<a href="http://configure.ac" target="_blank">configure.ac</a> i have the following:<br>
<br>
--<snip>--<br>
<br>
#if defined(HAVE_JSON_JSON_H)<br>
# include <json/json.h><br>
#else<br>
# include <json.h><br>
#endif<br>
<br>
--<snip>--<br>
<br></blockquote><div><br></div><div>This looks to me like it is from the header file, not <a href="http://configure.ac">configure.ac</a>. Is it? In essence, I think we would need to *build* the header file according to the installed version. I think when this came up, someone (Pavel?) said that this error just comes up when the json-c search pathes are not correctly set up ... or so...<br>
<br>In any case, I think opening a github tracker would probably be best, as volume on the lognorm list is unfortunately rather limited.<br><br>Rainer<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Right now, when this issue comes up, I have to tell people to manually<br>
edit the liblognorm.h file and manually change the json.h locations .<br>
I've experienced this<br>
problem with Ubuntu and Gentoo. The issue has been reported on Fedora<br>
Core 19.<br>
<br>
<br>
<a href="https://groups.google.com/forum/#!msg/sagan-users/o9vBF2CAq_g/9ZWIiejoFwcJ" target="_blank">https://groups.google.com/forum/#!msg/sagan-users/o9vBF2CAq_g/9ZWIiejoFwcJ</a><br>
<br>
Let me know your thoughts and thank you!<br>
<br>
<br>
<br>_______________________________________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/mailman/listinfo/lognorm</a><br>
<br></blockquote></div><br></div></div>