<div dir="ltr"><div>Thanks a lot, this was very useful!<br><br></div>Rainer<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 6:53 PM, Pavel Levshin <span dir="ltr"><<a href="mailto:pavel@levshin.spb.ru" target="_blank">pavel@levshin.spb.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<br>
Basically, you cannot have both versions available for compile,
because they have conflicting header files. Pkg-config is a tool
which works at compile time. It will detect just one installed
version of the library, and you will build against this version. To
have both versions available, you will need to place them at
separate "prefixes", and select them manually at build time. I don't
think it is really needed.<br>
<br>
When you have built your software against some version of the
library, this piece of software will require compatible version of
dynamic loadable library to start. Older versions of software
require liblognorm.so.0, but newer will search for liblognorm.so.1.
Therefore, you can have both versions of dynamic loadable libraries
installed at the same system.<br>
<br>
<br>
Please note that I've just found a regression in my code: it is
unable to strip quote marks from "quote-string" fields. I need to
redo this part.<br>
<br>
<br>
--<br>
Pavel Levshin<br>
<br>
<br>
<div>22.11.2013 20:18, Rainer Gerhards:<br>
</div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Oct 30, 2013 at 8:51 PM,
Pavel Levshin <span dir="ltr"><<a href="mailto:pavel@levshin.spb.ru" target="_blank">pavel@levshin.spb.ru</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
So, I have taken the opportunity and refactored
liblognorm to use json-c instead of libee. Some parts of
libee now present in liblognorm, notably field parsers
and encoders. They were rewritten to get rid of libee
data structures. In the same time, many bugs were fixed,
and many were undoubtedly produced.<br>
<br>
Current state of the library can be seen here:<br>
<br>
<a href="https://github.com/flicker581/liblognorm/tree/master-json-c" target="_blank">https://github.com/flicker581/liblognorm/tree/master-json-c</a><br>
</div>
</blockquote>
</div>
<br>
</div>
<div class="gmail_extra">I have finally merged this into my git,
but so far under the liblognorm1 branch. The idea is to have a
liblognorm0, for apps requiring that API and liblognorm1 for
those that need the new one.<br>
<br>
</div>
<div class="gmail_extra">I was not yet bold enough to merge to
master and prepare a release as I currently do not know how I
can make both available on a system AND have PKGCONFIG detect
the right version. I've never done this before and if someone
could lend me a helping hand, I'd greatly appreciate that.<br>
<br>
</div>
<div class="gmail_extra">Thanks,<br>
Rainer<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
Lognorm mailing list
<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/mailman/listinfo/lognorm</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/mailman/listinfo/lognorm</a><br>
<br></blockquote></div><br></div>