Bug 12671

Summary: leveldb won't detect that snappy is present (static libs only)
Product: buildroot Reporter: maksis33
Component: OtherAssignee: Thomas Petazzoni <thomas.petazzoni>
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2020.02   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description maksis33 2020-03-19 09:36:43 UTC
Fresh installation of 2020.02 with the following config:

Toolchain -> Enable C++ support -> enabled
Build options -> libraries -> static only
Target packages -> Libraries -> Database -> leveldb -> enabled

From the cmake output of leveldb:

-- Looking for snappy_compress in snappy
-- Looking for snappy_compress in snappy - not found


Snappy is being detect correctly when building with shared libraries. This issue wasn't present in buildroot 2019.02.
Comment 1 maksis33 2020-03-26 13:08:23 UTC
Applying changes from https://github.com/google/leveldb/pull/686/files seems to fix the detection (and makes the library compatible with existing compresses databases again)
Comment 2 Thomas Petazzoni 2020-05-18 05:23:30 UTC
I have submitted Buildroot patches to address this issue: https://patchwork.ozlabs.org/project/buildroot/list/?series=177533

Thanks for your bug report!
Comment 3 Peter Korsgaard 2020-06-03 14:53:04 UTC
These patches have now been merged and are part of 2020.05 and the upcoming 2020.02.3