Could anyone share commands and gcc environment for building MySQL shell?
Posted by:
Victor wen
Date: December 31, 2019 06:59PM
Hi All,
Does anyone know what commands and GCC environment were used for building the official mysqlsh binary file and the RPM?
I was trying to build MySQL shell with the source code.
My final target is to build an RPM which could run on my hosts without upgrade libstdc++ of version libstdc++.so.6.0.0.19. - Just as what the official RPM did.
For the first step I tried to build it with "cmake" and "make mysqlsh", following the INSTALL document. However, the GCC version on my compiling machine is 7.2, the mysqlsh I built has dependencies on libstdc++.so.6.0.0.24 which corresponding lib for GCC 7.2.
I also tried GCC 5.3 and 4.8, but some errors occurred during compiling.
I hope to find a way to build a similar binary file like the official one. Does anyone have some suggestions? Thank you in advance!
Here are some differences of dynamic library references between official binary file and mine:
Official binary file mysqlsh:
Dynamic Section:
NEEDED libstdc++.so.6
...
Version References:
required from libstdc++.so.6:
0x0297f860 0x00 25 GLIBCXX_3.4.10
0x0bafd172 0x00 19 CXXABI_1.3.2
0x02297f89 0x00 14 GLIBCXX_3.4.9
0x0bafd173 0x00 12 CXXABI_1.3.3
0x0297f861 0x00 10 GLIBCXX_3.4.11
0x056bafd3 0x00 09 CXXABI_1.3
0x08922974 0x00 07 GLIBCXX_3.4
...
mysqlsh binary file I built with GCC 7.2.
Dynamic Section:
NEEDED libstdc++.so.6
...
Version References:
required from libstdc++.so.6:
0x0bafd178 0x00 29 CXXABI_1.3.8
0x02297f85 0x00 28 GLIBCXX_3.4.5
0x0297f869 0x00 27 GLIBCXX_3.4.19
0x0297f867 0x00 25 GLIBCXX_3.4.17
0x02297f89 0x00 23 GLIBCXX_3.4.9
0x0bafd175 0x00 20 CXXABI_1.3.5
0x0297f863 0x00 19 GLIBCXX_3.4.13
0x0afd17f1 0x00 18 CXXABI_1.3.11
0x0297f864 0x00 17 GLIBCXX_3.4.14
0x0bafd173 0x00 16 CXXABI_1.3.3
0x0297f872 0x00 15 GLIBCXX_3.4.22
0x0297f865 0x00 14 GLIBCXX_3.4.15
0x0297f871 0x00 13 GLIBCXX_3.4.21
0x0297f868 0x00 12 GLIBCXX_3.4.18
0x0bafd179 0x00 11 CXXABI_1.3.9
0x0297f861 0x00 09 GLIBCXX_3.4.11
0x056bafd3 0x00 07 CXXABI_1.3
0x0297f870 0x00 06 GLIBCXX_3.4.20
0x0bafd172 0x00 05 CXXABI_1.3.2
0x08922974 0x00 02 GLIBCXX_3.4
...
Happy new year!
Subject
Views
Written By
Posted
Could anyone share commands and gcc environment for building MySQL shell?
994
December 31, 2019 06:59PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.