<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    -----BEGIN PGP SIGNED MESSAGE-----<br>
    Hash: SHA1<br>
    <br>
    I understand.   I was just tested building liblognorm on Ubuntu
    12.04.   I have the stock package from Ubuntu for json-c.<br>
    <br>
    The error is:<br>
    <br>
    gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT sagan-config.o -MD -MP
    -MF .deps/sagan-config.Tpo -c -o sagan-config.o sagan-config.c<br>
    In file included from sagan-config.c:49:0:<br>
    /usr/include/liblognorm.h:64:18: fatal error: json.h: No such file
    or directory<br>
    <br>
    In the /usr/include/liblognorm.h,  the location for json.h is
    hardcoded to:<br>
    <br>
    #include <json.h><br>
    <br>
    The easy fix is to manually change this to:<br>
    <br>
    #include <json/json.h><br>
    <br>
    I'm assuming that different distro's put the json.h in /usr/include
    or /usr/include/json.   To get around this in Sagan,  I did this:<br>
    <br>
    #if defined(HAVE_JSON_JSON_H)<br>
    #  include <json/json.h><br>
    #else<br>
    #  include <json.h><br>
    #endif<br>
    <br>
    I've seen this minor build issue on Gentoo, Fedora and Ubuntu.<br>
    <br>
    <br>
    <br>
    <br>
    On 12/07/2013 04:51 AM, Pavel Levshin wrote:<br>
    <span style="white-space: pre;">> Hello,<br>
      ><br>
      > Could you please explain, why pkg_config does not work well
      in your case? It should set correct -I option and find the header
      automagically. Unless json.pc (pkg_config description file) is
      incorrect on distribution you are using.<br>
      ><br>
      > Anyway, your solution will probably break with next release
      of json-c:<br>
      ><br>
      > 0.11<br>
      >   * IMPORTANT: the name of the library has changed to
      libjson-c.so and<br>
      >      the header files are now in include/json-c.<br>
      >      The pkgconfig name has also changed from json to json-c.<br>
      >      You should change your build to use appropriate -I and
      -l options.<br>
      >      A compatibility shim is in place so builds using the old
      name will<br>
      >      continue to work, but that will be removed in the next
      release.<br>
      ></span><br>
    <br>
    <br>
    - -- <br>
    - - Quadrant Information Security<br>
      Champ Clark III<br>
      o: 800.538.9357 x 101<br>
      c: 850.443.2440<br>
    -----BEGIN PGP SIGNATURE-----<br>
    Version: GnuPG v1.4.11 (GNU/Linux)<br>
    Comment: Using GnuPG with Thunderbird - <a class="moz-txt-link-freetext" href="http://www.enigmail.net/">http://www.enigmail.net/</a><br>
    <br>
    iQEcBAEBAgAGBQJSpgJ9AAoJENnmXt7Lmc3KHb4H/2jZHIDmqfo3X7Q5xxxAhjZS<br>
    IK+wlmzCBR2dnq09HXckwSXzK5vNOvf+Zl46096VG8Vivbw+KslTzYyiiF9ytZpR<br>
    O8+8jxWmweLO5oMMpexhw63zJeApqPikgDg22jCJqtqFrMd3JlUQK2a3r7g9a0tb<br>
    p9u0ca+sm7+LWdo+anpQ9WbgLceugrDLqIShldCxQDvYtTmJ7QnyOAQEwXJWAGAm<br>
    VYOffwJ+Jmq/cyealeRlx8QkER2hl8sSEKij7j8jHvzHI5ff4wudiIDFL8wd1JNU<br>
    wJR6mTGt5VORu++4toXHYwWuATnGQWi7Fo3kvcVXgm+5YcqU2QTK2BrjJFJHm+g=<br>
    =imOc<br>
    -----END PGP SIGNATURE-----<br>
    <br>
  </body>
</html>