Bug #109420 Building mySQL client fails to find header
Submitted: 18 Dec 2022 18:02 Modified: 24 Sep 2023 11:48
Reporter: Igor Korot Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S1 (Critical)
Version: OS:MacOS
Assigned to: MySQL Verification Team CPU Architecture:Any

[18 Dec 2022 18:02] Igor Korot
Description:
This bug comes from the one here: https://bugs.mysql.com/bug.php?id=108119.

Following the instruction given by Georgi Kodinov, I was able to build the library itself using latest CMake in my Apple laptop running OSX 10.13.6 High Sierra.

I then successfully added 2 include directories mentioned by him when he tried to build the test program inside my Xcode project.

Unfortunately, this is not enough.

An Xcode build failed with the error:

"binary_log_types.h: file not found"

Looking at the error, I see that the file is included unconditionally without any "#" statements and doing search I see following:

[code]
Igors-MacBook-Air:mysql-server igorkorot$ find . -name binary_log_types.h
./libbinlogevents/export/binary_log_types.h
Igors-MacBook-Air:mysql-server igorkorot$ 
[/code]

I don't know how he managed to build the program and later on executed it, but that's what is happening here.

I followed his post exactly and failed.

Should that place "libbinlogevents/export" also be added to the include folders when I build my code?

I added mysql-server as a git submodule and I am looking at the revision:

[code]
Igors-MacBook-Air:mysql-server igorkorot$ git status
HEAD detached at 78338faa2a0
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   CMakeLists.txt

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	buildOSX/

no changes added to commit (use "git add" and/or "git commit -a")
[/code]

In the meantime I will try to add this path to my include Xcode instructions and hope that it will build successfully.

I also remember that there was a script that identified where the mysql headers and libraries where installed/located. I hope its still available.

How to repeat:
Clone mysql-server
Build client library
Try to build application inside the Xcode
You will get a compiler error.
[24 Aug 2023 11:48] MySQL Verification Team
Hello Igor Korot,

Thank you for the bug report.

Please re-read the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php

Could you please answer below questions?

1. what is it exactly that you're doing (steps to reproduce)?
2. what are you expecting to achieve?
3. what are you achieving?
4. what do you think the issue is?

If you can provide more information, feel free to add it to this bug.

Regards,
Ashwini Patil
[25 Sep 2023 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".