[MDEV-12832] Mariadb 10.1.23 doesn't compile by default on debian jessie Created: 2017-05-17 Updated: 2017-05-23 Resolved: 2017-05-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.1.23 |
| Fix Version/s: | 10.1.24 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jaime Crespo | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
This is not a Debian jessie specific problem, it fails because cmake doesn't check the lz4 version used to compile the newly introduced mariabackup. The default version available (Debian calls it 0.0~r122-2) doesn't contain the function LZ4_loadDictHC. After installing a later version manually, (0.0~r131-2 -I think is the backported version from the next Debian stable) that contains that version, the whole package compilation works successfully:
Suggested fix: either make the backup utility use the older api or just make cmake fail if the backup is enable and there isn't a function calle LZ4_loadDictHC on the lz4 library detected (or require a minimum version, but due to the strange lz4 versionsing, it may be more complex). Side note: If someone cannot upgrade for any reason, -DWITH_MARIABACKUP=0 allows compilation as previous versions did. |
| Comments |
| Comment by Vladislav Vaintroub [ 2017-05-17 ] |
|
how do you compile? Can you list your cmake options? cmakes default behavior is to compile mariabackup without libarchive support, if libarchive is not found on the machine. There is an option to force libarchive support (compile from source and link it statically), but this is not the default. |
| Comment by Jaime Crespo [ 2017-05-17 ] |
|
I would bet -DBUILD_CONFIG=mysql_release does that. |
| Comment by Vladislav Vaintroub [ 2017-05-17 ] |
|
yes, it does I'd recommend to omit -DBUILD_CONFIG=mysql_release for the builds, unless there is a strong need. Meanwhile let me check how to disable lz4 in statically compiled libarchive. |
| Comment by Jaime Crespo [ 2017-05-17 ] |
|
Let's say I have "special needs" |