[MDEV-10292] Tokudb compile failure on gcc-6.1/5.4.0 Created: 2016-06-27 Updated: 2016-10-26 Resolved: 2016-10-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling, Storage Engine - TokuDB |
| Affects Version/s: | 10.0.25 |
| Fix Version/s: | 10.0.28 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | compile, contribution, foundation, gcc, patch | ||
| Environment: |
x86_64, Ubuntu-16.04, gcc-6.1.1 |
||
| Attachments: |
|
| Description |
|
Attached is the build log: Two errors:
|
| Comments |
| Comment by Daniel Black [ 2016-06-28 ] | |||||||||||||||||||
|
I tried applying the patch and got "my_global.h: No such file or directory" errors so I've got something else wrong. Ran out of time today. Will look later. | |||||||||||||||||||
| Comment by Daniel Black [ 2016-08-01 ] | |||||||||||||||||||
|
Despite the storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake set_cflags_if_supported test for these two options, these options will fail if the output is a shared library (but will work when compiling .c to .o). | |||||||||||||||||||
| Comment by Daniel Black [ 2016-08-01 ] | |||||||||||||||||||
|
the config.h compile error is just no zlib-dev package installed and the zlib config.h gets redirected by the include path. | |||||||||||||||||||
| Comment by Daniel Black [ 2016-09-01 ] | |||||||||||||||||||
|
This fixes the gcc errors. The config.h included from bundled zlib rather than the mariadb config.h is still a (more minor) problem. |