[Lognorm] Minor issue with liblognorm 1.0.0 release.
Pavel Levshin
pavel at levshin.spb.ru
Sat Dec 7 10:51:23 CET 2013
Hello,
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.
Anyway, your solution will probably break with next release of json-c:
0.11
* IMPORTANT: the name of the library has changed to libjson-c.so and
the header files are now in include/json-c.
The pkgconfig name has also changed from json to json-c.
You should change your build to use appropriate -I and -l options.
A compatibility shim is in place so builds using the old name will
continue to work, but that will be removed in the next release.
--
Pavel Levshin
06.12.2013 23:56, Champ Clark III:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> A Sagan user brought this up on the sagan-users mailing list as well.
> Here's how I resolved it in Sagan:
>
> In my configure.ac
>
> - --<snip>--
>
> # Check multiple locations for json-c headers
>
> AC_CHECK_HEADERS([json/json.h json.h], [break], [AC_MSG_ERROR([json-c
> headers not found or not usable])])
>
> # Check multple names of json-c libraries.
>
> AC_CHECK_LIB(json, main,, [ AC_CHECK_LIB(json-c,
> main,,AC_MSG_ERROR(The json library cannot be found. This library is
> important for the correlation aspects of Sagan! Please see
> https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this
> feature use the --disable lognorm flag.)) ],)
>
> - --<snip>--
>
> In my source (sagan-liblognorm.c), I added:
>
> - --<snip>--
>
> #if defined(HAVE_JSON_JSON_H)
> # include <json/json.h>
> #else
> # include <json.h>
> #endif
>
> - --<snip>--
>
> It should resolve the issue building on Gentoo, Fedora 19, etc).
>
> Hope this helps.
>
>
>
> On 12/2/13, 2:52 PM, Champ Clark III wrote:
>> Just started working with Sagan and liblognorm 1.0.0. I've cleaned
>> my dev box off all old versions of libee, libestr and liblognorm.
>> Then rebuilt from git using my normal process.
>>
>> It appears that liblognorm.h is trying to call:
>>
>> #include <json.h>
>>
>> My json-c is located in the /usr/include/json/json.h
>>
>> Easy fix manually, but just thought you might want to know.
>>
>>
>>
>>
> - --
> - - Champ Clark III (cclark at quadrantsec.com)
> Quadrant Information Security (http://quadrantsec.com)
> Key Fingerprint: 2E56 C2EB 1B25 C517 D5BA 2DCF 5E70 B2F8 0381 878A
> GPG Key ID: 0381878A
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJSoivVAAoJENnmXt7Lmc3KheYH/RcoSbFfQIfuIXvzebLOVe9T
> Py6SgnP2HUVFBGhzBjg3eH9cV0YRlObzZSggJ9KLl/D+sydXcmTIWaJDGOFGZfwH
> UP3yytujn18pMzCMEP1YvA+793gG/wTKcIotWM2lXTuF7/AMkdvVLjAHqj1jYjYT
> MTohhXDelGxJv8kmOUof9Ik1X6oIePvAq2R0HMwRdbU/4PQbscN6lWucFg1mcNgb
> Ad77vcmVfZerQlzbEkw4xilIDnCmealoFZONzWvT5OEn+BY+qwAvivAdlmSYQdj8
> YKHVUNkL8w74kvAve6ayb4P2c2Tya95a5iisMEkFxCb7gLVz3di2uVfC/jaUE7A=
> =To8v
> -----END PGP SIGNATURE-----
> _______________________________________________
> Lognorm mailing list
> Lognorm at lists.adiscon.com
> http://lists.adiscon.net/mailman/listinfo/lognorm
More information about the Lognorm
mailing list