Bug #98102 Connector/C++ CMake header include issue
Submitted: 31 Dec 2019 14:59 Modified: 1 Jan 2020 21:09
Reporter: Paul Ohlhauser Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version:8.0.18 OS:Ubuntu (19)
Assigned to: CPU Architecture:ARM
Tags: byteorder.h, cmake, endian.h, header, include

[31 Dec 2019 14:59] Paul Ohlhauser
Description:
Building the Connector/C++ fails on Ubuntu 19, because some paths are not correct (at least when following the given instructions on a fresh system).

/usr/include/sys/endian.h should be /usr/include/aarch64-linux-gnu/bits/endian.h

/usr/include/sys/byteorder.h should be /usr/include/aarch64-linux-gnu/asm/byteorder.h

See this post: https://unix.stackexchange.com/questions/559575/ubuntu-sys-byteorder-h-sys-endian-h-missin...

How to repeat:
Build the Connector/C++ on Ubuntu 19.

cmake .
cmake --build . --target install --config Release

Following the offical instructions (https://dev.mysql.com/doc/connector-cpp/8.0/en/connector-cpp-installation-source-prerequis...).

Suggested fix:
One of the options below, probably:

Change include path.
Conditionally change include path.
Add installation of these headers in the prerequisites.
Add linking the headers in the prerequisites.
[1 Jan 2020 21:09] Paul Ohlhauser
It was a memory issue, I misinterpreted the error message.