Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Log without ASIO or OpenSSL
From: james (dirtydroog_at_[hidden])
Date: 2019-03-11 09:12:14


On Monday, March 11, 2019, Richard Hodges <hodges.r_at_[hidden]> wrote:

> See the following complete program. No dependency on ASIO or SSL:
>
> https://coliru.stacked-crooked.com/a/5f8e619db6afdd41
>

No explicit compile-time dependencies.
Also, the crashing program was not due to using different versions of
boost. The replies to both linked questions are from the boost.log author.

>
>
> On Mon, 11 Mar 2019 at 14:51, james <dirtydroog_at_[hidden]> wrote:
>
>>
>>
>> On Sunday, March 10, 2019, Richard Hodges <hodges.r_at_[hidden]> wrote:
>>
>>>
>>>
>>> On Sun, 10 Mar 2019 at 15:40, james <dirtydroog_at_[hidden]> wrote:
>>>
>>>>
>>>>
>>>> On Sunday, March 10, 2019, Richard Hodges via Boost-users <
>>>> boost-users_at_[hidden]> wrote:
>>>>
>>>>> AFAIR boost.log does not depend on boost.asio at all.
>>>>>
>>>>
>>>> It appears it does:
>>>> https://stackoverflow.com/questions/39948997/use-of-
>>>> boost-log-and-boost-asio-causes-a-crash
>>>>
>>>
>>> With respect, the linked question seems to be about a crash when
>>> combining boost.log and boost.asio with each from different versions of
>>> boost . This is unsurprising since both libraries will depend on boost.core.
>>>
>>> I am very sure that boost.log has no direct dependency on boost.asio. I
>>> use these libraries a lot.
>>>
>>> R
>>>
>>
>> If you followed the links to https://stackoverflow.com/
>> questions/35225234/linking-libboost-log-so-makes-
>> boostasioio-servicerun-exit-immediately/35241050#35241050, there is
>>
>>
>> "Boost.Log does indeed use Boost.ASIO to implement some of its features
>> (network-based syslog sink, in particular). Boost.ASIO marks its symbols as
>> externally visible, so they are exported from Boost.Log shared object."
>>
>> Note that the crashing code does not use network based syslog. Boost.log
>> may not intend to always have a dependency on boost.asio, but it appears it
>> does.
>>
>>
>>>
>>>
>>>
>>>>
>>>>
>>>>>
>>>>>
>>>>> boost.asio optionally depends on OpenSSL if you use the ssl stream or
>>>>> context types, and not otherwise.
>>>>>
>>>>> R
>>>>>
>>>>
>>>>> On Sun, 10 Mar 2019 at 04:52, Macumber, Daniel via Boost-users <
>>>>> boost-users_at_[hidden]> wrote:
>>>>>
>>>>>> Hello, I am using Boost Log but not using any of the ASIO related
>>>>>> functionality (that I know of). It seems that Boost ASIO depends on
>>>>>> OpenSSL which is giving me some problems. Is there any way to either:
>>>>>>
>>>>>> * use Boost Log without ASIO
>>>>>> * use Boost ASIO without OpenSSL
>>>>>>
>>>>>> Thanks a lot,
>>>>>> Dan
>>>>>> _______________________________________________
>>>>>> Boost-users mailing list
>>>>>> Boost-users_at_[hidden]
>>>>>> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Richard Hodges
>>>>> hodges.r_at_[hidden]
>>>>>
>>>>>
>>>>>
>>>
>>> --
>>> Richard Hodges
>>> hodges.r_at_[hidden]
>>>
>>>
>
> --
> Richard Hodges
> hodges.r_at_[hidden]
> office: +442032898513
> home: +376841522
> mobile: +376380212
>
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net