[ 
https://issues.apache.org/jira/browse/AVRO-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16857652#comment-16857652
 ] 

Olivier Smeesters commented on AVRO-1543:
-----------------------------------------

As I was trying to integrate Avro in a cross compilation, where zlib is not 
immediately available, I'm linking against a boost build where iostreams' 
compression is disabled, so I needed the same from Avro. I patched the 
CMakeLists.txt and the DataFile code to make the codec as optional as snappy.

> libboost_zlib library is not detected but is required
> -----------------------------------------------------
>
>                 Key: AVRO-1543
>                 URL: https://issues.apache.org/jira/browse/AVRO-1543
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c++
>    Affects Versions: 1.7.6
>         Environment: Windows?
>            Reporter: Sean Middleditch
>            Assignee: Thiruvalluvan M. G.
>            Priority: Major
>             Fix For: 1.10.0
>
>
> Standard builds of Boost with the iostreams library and zlib support build 
> two separate libraries, libboost_iostreams and libboost_zlib. Avro is 
> properly setup to detect and link in the former but not the later, meaning 
> that Avro cannot be build out of the box without customizing either the Boost 
> build or Avro's CMakeLists.txt.
> Another alternative change may be to remove Avro's hard requirement on zlib 
> support in Boost's iostreams library, especially as stand-alone Boost builds 
> will not include zlib support. Avro could either require its own flag for 
> zlib support (being explicit is good, so this would be good) or detect if 
> Boost was compiled with zlib support during CMake generation time. If Avro 
> does not do either of these, it needs to be updated to link in libboost_zlib.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to