[Lognorm] json.h: No such file or directory
Champ Clark III
cclark at quadrantsec.com
Mon Jun 23 06:20:34 CEST 2014
Hello all.....
I brought this issue up some time ago and thought I would bring it up
again.
In the liblognorm.h, the json.h is hard coded as "#include <json.h>".
In some Linux distributions, the json-c headers ends up in #include
<json/json.h>.
This issue comes up when attempting to link applications with
liblognorm. For example, I have pulled and installed libestr and
liblognorm from Github a few minutes
ago. This is a brand new Ubuntu 12.04 box.
When I go to compile Sagan with liblognorm support (which is default),
I get the following error:
--<snip>--
In file included from sagan-config.c:49:0:
/usr/local/include/liblognorm.h:64:18: fatal error: json.h: No such file
or directory
compilation terminated.
make[2]: *** [sagan-config.o] Error 1
--<snip>--
In order to fix this issue, I have to manually edit the
/usr/local/include/liblognorm.h file and change:
#include <json.h>
to
# include <json/json.h>
I had a similar problem with Sagan and addressed it this way. In my
configure.ac i have the following:
--<snip>--
#if defined(HAVE_JSON_JSON_H)
# include <json/json.h>
#else
# include <json.h>
#endif
--<snip>--
Right now, when this issue comes up, I have to tell people to manually
edit the liblognorm.h file and manually change the json.h locations .
I've experienced this
problem with Ubuntu and Gentoo. The issue has been reported on Fedora
Core 19.
https://groups.google.com/forum/#!msg/sagan-users/o9vBF2CAq_g/9ZWIiejoFwcJ
Let me know your thoughts and thank you!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 601 bytes
Desc: OpenPGP digital signature
URL: <http://lists.adiscon.net/pipermail/lognorm/attachments/20140623/383cab90/attachment.pgp>
More information about the Lognorm
mailing list