Hi,

On 22/09/14 07:22, grantksupport at operamail.com wrote:
>       symbol lookup error: /usr/sbin/rsyslogd: undefined symbol: 
> json_tokener_errors
>       >> FYI: json-c has broken it's API in recent versions. rsyslog does a
>       >> configure check and uses the proper API, e.g. here:
>       >> 
>       >> https://github.com/rsyslog/rsyslog/blob/master/runtime/msg.c#L4077
>       >>
>       >> So this sounds to me like the version of json-c used for compilation 
> does
>       >> not match the version that's present on the system.
[...]
> Coincidentally, the current pkg build @
> 
>       
> https://build.opensuse.org/package/live_build_log/security:logging:elma/rsyslog/openSUSE_13.1/x86_64
> 
> is failing @ json-related errors
> 
> Not sure exactly where the problem lies -- in packaging, or upstream sources.

openSUSE package maintainer here. Joerg was, shall we say, quite eager
for a fix. Besides patching in the obvious fix from git
6b47dd542d07ed557f02af9970d1004eb262e1c1 the issue is that configure
assumes if pkg-config for json is found, json-c and new API is not
available. The openSUSE json-c package ships a json.pc for compatibility.
I suggest the following improvement which should be applicable
generally, and looks slightly more elegant:
Check for availability of the json_tokener_error_desc function using
AC_CHECK_FUNCS instead to define the corresponding
HAVE_JSON_TOKENER_ERROR_DESC macro. See
https://github.com/rsyslog/rsyslog/pull/125

For the two users of this package in the openSUSE build service... check
your branches.

With kind regards,
Andreas Stieger
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to