[MDEV-11753] Link failure on missing -L${LIBLZ4_LIBRARY_DIR} Created: 2017-01-10 Updated: 2017-02-28 Resolved: 2017-02-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling, Storage Engine - Mroonga |
| Affects Version/s: | 10.0.28 |
| Fix Version/s: | 10.0.30 |
| Type: | Bug | Priority: | Major |
| Reporter: | Bernard Spil | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
FreeBSD build.brnrd.eu 11.0-RELEASE-p3 FreeBSD 11.0-RELEASE-p3 #0 r308890: Sun Nov 20 20:27:48 CET 2016 bernard@meterkast.brnrd.eu:/usr/obj/usr/src/sys/BEASTIE110 amd64 |
||
| Description |
|
CMake fails to add the library path for lz4 to the linker script. This causes an issue during linking where -llz4 fails. Adding the path to `liblz4.so` to link.txt fixes the issue for me.
`LOCALBASE` in FreeBSD is set to /usr/local and liblz4 is installed there.
Detection of lz4 is apparently OK otherwise the code in CMakeLists would return an error. |
| Comments |
| Comment by Vladislav Vaintroub [ 2017-01-11 ] |
|
Additionally, I noticed there is -lz somewhere in TokuDB without checking whether libz is actually installed |
| Comment by Vladislav Vaintroub [ 2017-02-23 ] |
|
Looks good to me |
| Comment by Sergei Golubchik [ 2017-02-24 ] |
|
Kentoku, it's a bug in Mroonga. Please see the commit linked to this issue. You might want to apply something like that to your main mroonga repository. |