You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pulled LibreSSL 3.9.2 for use in Win32-OpenSSH. When I try to compile Win32-OpenSSH with LibreSSL dynamically linked, there are unresolved external symbols for arc4random, arc4random_buf, arc4random_uniform, explicit_bzero, gettimeofday, and timegm.
I think this is related to stop exporting compat functions - 8489508
Any guidance on if this change is indeed related, and if there's any suggestions for how resolve would be appreciated!
If we continue compiling LibreSSL as-is, without the functions exported, then I imagine we'll need to define them in Win32-OpenSSH instead, but wanted to ask for input before going down this route. Apologies if this is not the right forum to ask about this.
The text was updated successfully, but these errors were encountered:
We had various complaints over the years because of collisions with symbols that don't really belong to libcrypto, both in static and dynamic contexts.
While we need most of the functions you list internally -- the dependency on timegm was eliminated and the compat code removed in f9874d4 -- they don't really belong to libcrypto proper and we do not consider them to be part of our API. Contrary to what some other projects with shared ancestry seem to believe, it is not libcrypto's job to figure as an ersatz libc.
Therefore we removed these dynamic exports and started prefixing our compat symbols with libressl_ to avoid conflicts in static links, see #928.
I think the clean solution is for Win32-OpenSSH to maintain its own compat symbols, which you can readily pick from ours (be aware that our gettimeofday currently has a year 2038 bug - see #1078). I do not think we really want to provide an option to export (some of) our compat symbols.
I pulled LibreSSL 3.9.2 for use in Win32-OpenSSH. When I try to compile Win32-OpenSSH with LibreSSL dynamically linked, there are unresolved external symbols for
arc4random
,arc4random_buf
,arc4random_uniform
,explicit_bzero
,gettimeofday
, andtimegm
.I think this is related to stop exporting compat functions - 8489508
Any guidance on if this change is indeed related, and if there's any suggestions for how resolve would be appreciated!
If we continue compiling LibreSSL as-is, without the functions exported, then I imagine we'll need to define them in Win32-OpenSSH instead, but wanted to ask for input before going down this route. Apologies if this is not the right forum to ask about this.
The text was updated successfully, but these errors were encountered: