Thanks Rainer,

So rsyslog needs 0.10? That's what I have now. Or 0.9 or.. ?

And the problem should be solved for newer gcc (which version?) or by just
adding that flag thingie. Right?

Best regards,
Radu

--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/


On Tue, Aug 26, 2014 at 6:41 PM, Rainer Gerhards <[email protected]>
wrote:

> On Tue, Aug 26, 2014 at 4:34 PM, Radu Gheorghe <[email protected]
> >
> wrote:
>
> > Hello,
> >
> > I found some thread on the mailing list that says rsyslog needs json-c
> 0.12
> > or later. Is that right? I've just upgraded my openSUSE and I have 0.10.
> > Previously I had 0.9. I can't compile json-c from the 0.12 release
> either.
> >
> > My actual problem is that I can't compile rsyslog with omelasticsearch
> > support. As I upgraded json-c the error changed. I've also installed 0.12
> > from some RPM I found for a completely different distribution. rpm was OK
> > with it, but I'm not sure which one rsyslog will try to use. Either way,
> > I'm pretty sure the problem is caused by json-c because:
> > a) errors changed as I upgraded
> > b) errors were always in functions that mentioned JSON :D
> >
> > My current error can be found here:
> > https://gist.github.com/radu-gheorghe/796f900767679aacdf57
> >
> > I also have two additional questions:
> > 1. Does anyone know how to get that recent json-c for a widely used
> distro
> > (say CentOS or Ubuntu or...). Except for the latest Fedora :D
> >
>
> 0.12 I don't think so, but 0.10 I think is now also in Ubuntu. The rest I
> think more or less is at 0.9.
>
>
> > 2. Isn't it a bug that configure didn't complain about my json-c version
> > but I get errors during make?
> >
>
> No, because rsyslog can use either version. I don't know, however, how to
> check if -std=c99 is present in cflags AND it is required by the compiler.
>
> The root problem is that json-c does a "for(int i ...)" inside a macro,
> which is what is not supported in older standards.
>
> HTH
> Rainer
>
>
> >
> > Or maybe I'm doing something else wrong?
> >
> > Thanks and best regards,
> > Radu
> > --
> > Performance Monitoring * Log Analytics * Search Analytics
> > Solr & Elasticsearch Support * http://sematext.com/
> > _______________________________________________
> > 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.
> >
> _______________________________________________
> 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.
>
_______________________________________________
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