[
https://issues.apache.org/jira/browse/HADOOP-8901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481868#comment-13481868
]
Andy Isaacson commented on HADOOP-8901:
---------------------------------------
Radim,
Thanks for noting this issue! With {{find_package(ZLIB 1 REQUIRED)}} , what
path does dlopen end up using on BSD to open the libz.so? If the pathname is
{{"/usr/lib/libz.so"}} then there's a dependency on that symlink pointing to
the correct library.
I'll test your suggestion on Linux to see if it has the needed behavior -- in
order to support Linux systems without a {{"libz.so"}} symlink, we need to
ensure that dlopen gets a pathname like {{"libz.so.1"}}.
Also, just out of curiosity, what BSD are you testing this on?
> GZip and Snappy support may not work without unversioned libraries
> ------------------------------------------------------------------
>
> Key: HADOOP-8901
> URL: https://issues.apache.org/jira/browse/HADOOP-8901
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Affects Versions: 2.0.3-alpha
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Priority: Minor
> Fix For: 3.0.0, 2.0.3-alpha
>
> Attachments: HADOOP-8901.001.patch, HADOOP-8901.002.patch,
> HADOOP-8901.003.patch
>
>
> Currently, we use {{dlopen}} to open {{libz.so}} and {{libsnappy.so}}, to get
> Gzip and Snappy support, respectively.
> However, this is not correct; we should be dlopening {{libsnappy.so.1}}
> instead. The versionless form of the shared library is not commonly
> installed except by development packages. Also, we may run into subtle
> compatibility problems if a new version of libsnappy comes out.
> Thanks to Brandon Vargo for reporting this bug.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira