[MDEV-9322] Fatal build error: json.cpp: assigning to 'PSZ' (aka 'char *') from incompatible type 'const char *' Created: 2015-12-24 Updated: 2016-01-22 Resolved: 2015-12-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.1.10 |
| Fix Version/s: | 10.0.24, 10.1.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Dan | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
OS X 10.11, Xcode 7.2, Homebrew |
||
| Description |
|
Hello, compilation fails with clang:
The relevant error message is:
thanks and merry christmas |
| Comments |
| Comment by Bernard Spil [ 2015-12-28 ] | ||
|
This applies to 10.0 and 10.1 on FreeBSD as well with clang 3.4.1 | ||
| Comment by Jan Steinman [ 2016-01-21 ] | ||
|
10.1.11 doesn't seem to be available yet. Can the problem file (storage/connect/json.cpp) be patched or replaced? Sorry, I don't know much about git, which I assume would let me download the fixed file... feel free to "RTFM" me – with a URL to the proper reference... | ||
| Comment by Sergei Golubchik [ 2016-01-21 ] | ||
|
This is the file: https://raw.githubusercontent.com/Buggynours/MariaDB/10.1/storage/connect/json.cpp | ||
| Comment by Olivier Bertrand [ 2016-01-22 ] | ||
|
In this file I changed line 597 from:
to:
However, I couldn't be sure this fix is Ok because using a different compiler. | ||
| Comment by Dan [ 2016-01-22 ] | ||
|
Thank you, I can confirm, that this change fixed the reported MariaDB compilation error. |