[Boost-users] Boost Log without ASIO or OpenSSL

6 views
Skip to first unread message

Macumber, Daniel via Boost-users

unread,
Mar 9, 2019, 10:52:26 PM3/9/19
to boost...@lists.boost.org, Macumber, Daniel
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...@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

Richard Hodges via Boost-users

unread,
Mar 10, 2019, 3:43:54 AM3/10/19
to Thomas Quarendon via Boost-users, Richard Hodges, Macumber, Daniel
AFAIR boost.log does not depend on boost.asio at all. 

boost.asio optionally depends on OpenSSL if you use the ssl stream or context types, and not otherwise.

R

--
Richard Hodges


james via Boost-users

unread,
Mar 10, 2019, 10:40:29 AM3/10/19
to boost...@lists.boost.org, james, Macumber, Daniel


On Sunday, March 10, 2019, Richard Hodges via Boost-users <boost...@lists.boost.org> wrote:
AFAIR boost.log does not depend on boost.asio at all. 

It appears it does: 

Richard Hodges via Boost-users

unread,
Mar 10, 2019, 3:15:17 PM3/10/19
to james, Richard Hodges, Macumber, Daniel, boost...@lists.boost.org
On Sun, 10 Mar 2019 at 15:40, james <dirty...@gmail.com> wrote:


On Sunday, March 10, 2019, Richard Hodges via Boost-users <boost...@lists.boost.org> wrote:
AFAIR boost.log does not depend on boost.asio at all. 

It appears it does: 

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
 


 


boost.asio optionally depends on OpenSSL if you use the ssl stream or context types, and not otherwise.


On Sun, 10 Mar 2019 at 04:52, Macumber, Daniel via Boost-users <boost...@lists.boost.org> 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...@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users


--
Richard Hodges




--
Richard Hodges

james via Boost-users

unread,
Mar 11, 2019, 3:51:25 AM3/11/19
to Richard Hodges, james, Macumber, Daniel, boost...@lists.boost.org


On Sunday, March 10, 2019, Richard Hodges <hodg...@gmail.com> wrote:


On Sun, 10 Mar 2019 at 15:40, james <dirty...@gmail.com> wrote:


On Sunday, March 10, 2019, Richard Hodges via Boost-users <boost...@lists.boost.org> wrote:
AFAIR boost.log does not depend on boost.asio at all. 

It appears it does: 

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



"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.

Richard Hodges via Boost-users

unread,
Mar 11, 2019, 4:38:41 AM3/11/19
to james, Richard Hodges, Macumber, Daniel, boost...@lists.boost.org
See the following complete program. No dependency on ASIO or SSL:

https://coliru.stacked-crooked.com/a/5f8e619db6afdd41

--
Richard Hodges
mobile: +376380212

james via Boost-users

unread,
Mar 11, 2019, 5:12:29 AM3/11/19
to Richard Hodges, james, Macumber, Daniel, boost...@lists.boost.org


On Monday, March 11, 2019, Richard Hodges <hodg...@gmail.com> 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.
Reply all
Reply to author
Forward
0 new messages