On Tue, Aug 26, 2014 at 5:44 PM, Radu Gheorghe <[email protected]> wrote:
> Thanks Rainer, > > So rsyslog needs 0.10? That's what I have now. Or 0.9 or.. ? > 0.9+ There was an API break, but rsyslog checks for both APIs. But you need a current rsyslog for that. For the old ones, you need to check the code to see which version is requiered (I don't remember). Be warned that current really means current, anything older than 3 month or so you need to check the sources. Root problem is an API breakage in json-c, which makes 0.9 and newer versions incompatible (and, as a side-note, in a very dumb and easy to avoid way...). > > And the problem should be solved for newer gcc (which version?) don't know exact versions. On some (newer) platforms it works, on some not. I think for Ubuntu 12.04 has a too old one whereas 14.04 has a recent one. or by just > adding that flag thingie. Right? > yup. Rainer > > 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. > _______________________________________________ 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.

