[MDEV-28116] Undefined symbol "_SSL_get1_peer_certificate" while building 10.2 and 10.3 on macOS Created: 2022-03-18 Updated: 2022-04-09 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Compiling, SSL |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | macos | ||
| Environment: |
macOS 10.13.6 |
||
| Description |
|
I get the following linking error while building 10.3 from GitHub on macOS 10.13.6 High Sierra:
|
| Comments |
| Comment by Valerii Kravchuk [ 2022-03-18 ] | |||||||||||||||||||||||||||||||||||
|
Same with 10.2:
| |||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2022-04-09 ] | |||||||||||||||||||||||||||||||||||
|
Didn't manage to reproduce the issue. It's mentioned in description of the bug report that the linkage error happens Searching of the function SSL_get1_peer_certificate over every file in the source code repository didn't find any file that contains the symbol SSL_get1_peer_certificate, even as a part of comments. Attempt to build MariaDB server with the option -DWITH_SSL=/usr/local/opt/openssl on my workstation with macos 12.0.1 (Monterey) has been completed with success. So, either extra details should be provided to help me reproduce the linking issue in my environment, or close the task. | |||||||||||||||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2022-04-09 ] | |||||||||||||||||||||||||||||||||||
|
All I can say is that I still can reproduce in that same environment with current 10.3 from HitHub when this cmake command line is used:
Indeed, there is no reference to this symbol in the source:
So, probably it is from some library linked when building static libsql.a. Maybe opessl3 is linked somehow, as I have both. | |||||||||||||||||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2022-04-09 ] | |||||||||||||||||||||||||||||||||||
|
There is no problem like this when building with the following cmake command line:
|