Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary packages not compatible with Ubuntu 22.04: OpenSSL 3 transition #892

Open
AsgerHB opened this issue Apr 25, 2022 · 12 comments
Open

Comments

@AsgerHB
Copy link

AsgerHB commented Apr 25, 2022

Hi
I'm on a fresh ("full feature") install of Ubuntu 22.04 LTS 64-bit. Downloading the latest relase gives an error when I try to run it.

2022Ubuntu:~/opt$ ./tectonic 
./tectonic: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

It looks like an unmet dependency, but one that I am unable to resolve.

edit: I seem to have a package called libssl3 already installed, if that helps.

@pkgw
Copy link
Collaborator

pkgw commented Apr 25, 2022

Thanks for reporting! The latest Ubuntu release has updated to OpenSSL 3, requiring that SSL-using applications like Tectonic link to libssl.so.3 rather than the older 1.1 version series.

I had hoped that there would be some kind of compatibility package provided to ease the transition here but it looks like there is not (which is understandable given that this is security-critical infrastructure). So I think that we will need to provide new builds of Tectonic that link to this library. In the meantime, you're going to have to compile Tectonic yourself if you want to use it on Ubuntu 22.04.

I'll have to look into how other Rust-based applications are handling this transition. Normally in Rust platform dependencies are encoded in the "target triple" information, but this library dependency doesn't have an obvious mapping into that scheme.

note: On my Fedora machine, there are both libssl.so.1.1 and libssl3.so, but the latter is provided by the nss package, so I guess the latter isn't actually related to OpenSSL3.

@pkgw pkgw changed the title Running on Ubuntu: Errorr while loading shared libraries Binary packages not compatible with Ubuntu 22.04: OpenSSL 3 transition Apr 25, 2022
@pkgw pkgw pinned this issue Apr 25, 2022
@AsgerHB
Copy link
Author

AsgerHB commented Apr 25, 2022

I managed to get cargo to intstall it. And notably, in addtion to the recommended packages-

sudo apt-get install   libfontconfig1-dev libgraphite2-dev libharfbuzz-dev libicu-dev libssl-dev zlib1g-dev

-and the usual suspects-

sudo apt-get install build-essential rustc cargo pkg-config

-I also had to add-

sudo apt-get install libssl-dev

before it would compile.

@pkgw
Copy link
Collaborator

pkgw commented Apr 25, 2022

Great! The list of recommended packages already includes libssl-dev, as in the first code line of your comment — was it a different package you had to add?

@AsgerHB
Copy link
Author

AsgerHB commented Apr 25, 2022

My bad - Didn't see it in there. I was sure that the install of libssl-dev happened after trying the default packages turned out not to be enough. But looking at my bash history I can see this is not the case.

@StLeoX
Copy link

StLeoX commented Nov 14, 2022

LinuxMint 21

I met this problem either. It seems like the libssl-dev is version3 and conflicts with the version1.
Looking for the next release to fix this.

@SamuelMarks
Copy link

Same issue on latest master @ abd98d4:

 = note: /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-s3_lib.o): in function `ssl3_set_handshake_header':
          (.text+0x50): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x69): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-s3_lib.o): in function `ssl3_put_cipher_by_char':
          (.text+0x16a1): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-s3_lib.o): in function `ssl3_get_req_cert_type':
          (.text+0x1b45): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x1be8): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c24): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c4e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c6e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c84): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-s3_lib.o):(.text+0x1c9a): more undefined references to `WPACKET_put_bytes__' follow
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-rec_layer_s3.o): in function `do_ssl3_write.localalias':
          (.text+0xd31): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0xd6d): undefined reference to `WPACKET_init_static_len'
          /usr/bin/ld: (.text+0xde0): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0xe84): undefined reference to `WPACKET_init_static_len'
          /usr/bin/ld: (.text+0xe99): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x1131): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x11b9): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x122b): undefined reference to `WPACKET_memset'
          /usr/bin/ld: (.text+0x131d): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1332): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1343): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x136e): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x139b): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x13b0): undefined reference to `WPACKET_get_length'
          /usr/bin/ld: (.text+0x13c0): undefined reference to `WPACKET_get_curr'
          /usr/bin/ld: (.text+0x140e): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x1463): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x1484): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x15d2): undefined reference to `WPACKET_get_length'
          /usr/bin/ld: (.text+0x161a): undefined reference to `WPACKET_get_length'
          /usr/bin/ld: (.text+0x162a): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1648): undefined reference to `WPACKET_get_curr'
          /usr/bin/ld: (.text+0x16f4): undefined reference to `WPACKET_finish'
          /usr/bin/ld: (.text+0x1749): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x1786): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x17df): undefined reference to `WPACKET_init_static_len'
          /usr/bin/ld: (.text+0x17f9): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-ssl3_record.o): in function `ssl3_enc':
          (.text+0x1ac1): undefined reference to `ssl3_cbc_remove_padding_and_mac'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-ssl3_record.o): in function `tls1_enc':
          (.text+0x2575): undefined reference to `tls1_cbc_remove_padding_and_mac'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-ssl3_record.o): in function `n_ssl3_mac':
          (.text+0x2aae): undefined reference to `ssl3_cbc_digest_record'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-ssl3_record_tls13.o): in function `tls13_enc':
          (.text+0x309): undefined reference to `WPACKET_init_static_len'
          /usr/bin/ld: (.text+0x327): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x33b): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x357): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x368): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x3b7): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0x4ca): undefined reference to `WPACKET_finish'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions.o): in function `tls_construct_certificate_authorities':
          (.text+0x295): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2a6): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x316): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions.o): in function `tls_construct_extensions':
          (.text+0x1f04): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x200f): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x2079): undefined reference to `WPACKET_set_flags'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_renegotiate':
          (.text+0x191): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1a2): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1c1): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x22c): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_server_name':
          (.text+0x267): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x278): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2d1): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2e4): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x30a): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x31a): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x32a): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_maxfragmentlen':
          (.text+0x380): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x391): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3a9): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x414): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_srp':
          (.text+0x45a): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x46b): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x4c1): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x4d2): undefined reference to `WPACKET_set_flags'
          /usr/bin/ld: (.text+0x4f3): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x503): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x513): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_ec_pt_formats':
          (.text+0x5b3): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x5c4): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x683): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x693): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_supported_groups':
          (.text+0x757): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x768): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x821): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x836): undefined reference to `WPACKET_set_flags'
          /usr/bin/ld: (.text+0x8bb): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x8ed): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x8f9): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x924): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x930): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_session_ticket':
          (.text+0xab8): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xade): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_sig_algs':
          (.text+0xc67): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xc78): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xc89): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xcf2): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0xcfe): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_status_request':
          (.text+0xda9): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xdba): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xdd0): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xe2f): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xe76): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: (.text+0xeaf): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0xec4): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xefb): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0xf60): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0xf6c): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_npn':
          (.text+0xffc): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x100f): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_alpn':
          (.text+0x10df): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x10f0): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1157): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1163): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_use_srtp':
          (.text+0x11c1): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x11d2): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1229): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1254): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x12b4): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x12c7): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x12d3): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_etm':
          (.text+0x1330): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1343): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_sct':
          (.text+0x13ed): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1400): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_ems':
          (.text+0x14b0): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o):(.text+0x14c3): more undefined references to `WPACKET_put_bytes__' follow
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_supported_versions':
          (.text+0x15a7): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1659): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x168e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x16b4): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x16c0): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_psk_kex_modes':
          (.text+0x1723): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1734): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1789): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x179f): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x17bb): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x17cb): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x17db): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_key_share':
          (.text+0x1855): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1866): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x18d9): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x19bc): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x19d5): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1aac): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1ab8): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_cookie':
          (.text+0x1b80): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1b91): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1bb0): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1c3c): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_early_data':
          (.text+0x203c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x204d): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x20d4): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_padding':
          (.text+0x2237): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x22c8): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x22e7): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_psk':
          (.text+0x2599): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x25aa): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2639): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2672): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x2689): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x26a1): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x26b6): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x26cb): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x26fe): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: (.text+0x270e): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x271e): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x2733): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x2743): undefined reference to `WPACKET_fill_lengths'
          /usr/bin/ld: (.text+0x2753): undefined reference to `WPACKET_get_curr'
          /usr/bin/ld: (.text+0x2877): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: (.text+0x28de): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x28f2): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_clnt.o): in function `tls_construct_ctos_post_handshake_auth':
          (.text+0x29c1): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x29d2): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x29de): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_cust.o): in function `custom_ext_add':
          (.text+0x3ba): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3cf): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3ee): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x3fe): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_parse_ctos_cookie':
          (.text+0x1ada): undefined reference to `WPACKET_init_static_len'
          /usr/bin/ld: (.text+0x1af4): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1b09): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1b23): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1b3f): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x1b62): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1b9a): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1baf): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1bc9): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1bde): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1bf5): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c05): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1c26): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c3b): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1c57): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c67): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1c81): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1c96): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1cb2): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1cc2): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1cd2): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1cde): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1cef): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x1cfb): undefined reference to `WPACKET_finish'
          /usr/bin/ld: (.text+0x1d3e): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0x1d5c): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0x1d7a): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0x1dc4): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_renegotiate':
          (.text+0x29e1): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x29f2): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2a03): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2a7a): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x2a94): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x2aa4): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x2ab4): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_server_name':
          (.text+0x2b34): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2b47): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_maxfragmentlen':
          (.text+0x2c1c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2c2d): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2c4c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2cb4): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_ec_pt_formats':
          (.text+0x2d3b): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2d4c): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2d67): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x2dd4): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_supported_groups':
          (.text+0x2eda): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2eef): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2f04): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x2f1b): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x2f44): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x2f54): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_session_ticket':
          (.text+0x3061): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3074): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_status_request':
          (.text+0x316b): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x317c): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x31ad): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_next_proto_neg':
          (.text+0x3306): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3320): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_alpn':
          (.text+0x33ac): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x33bd): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3419): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3438): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x3444): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x3454): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_use_srtp':
          (.text+0x34ac): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x34bd): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x351e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3539): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x354c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x355c): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_etm':
          (.text+0x35e4): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x35f7): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_ems':
          (.text+0x36d0): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x36e3): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_supported_versions':
          (.text+0x379f): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x37b0): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3823): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x382f): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_key_share':
          (.text+0x38a6): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x38b7): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x396e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x397f): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x39b8): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3a38): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x3a48): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x3aa8): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3ab8): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x3b0e): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x3b1a): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_cookie':
          (.text+0x3d47): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3d58): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3d69): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3de9): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x3dff): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x3e16): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3e30): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3e4c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3e90): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3eae): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x3ec3): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3edb): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x3f25): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x3f91): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x3fa2): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3fb8): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x3ff0): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x4056): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x4067): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x407d): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x416f): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x4258): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x4268): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_cryptopro_bug':
          (.text+0x4316): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_early_data':
          (.text+0x43be): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x43cf): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x443c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x444d): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x4464): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x4494): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x44b4): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-extensions_srvr.o): in function `tls_construct_stoc_psk':
          (.text+0x44f1): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x4502): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x4519): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x4584): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem.o): in function `state_machine':
          (.text+0xb5d): undefined reference to `WPACKET_init'
          /usr/bin/ld: (.text+0xbcb): undefined reference to `WPACKET_finish'
          /usr/bin/ld: (.text+0xbdd): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0xebf): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: (.text+0xf54): undefined reference to `WPACKET_cleanup'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_clnt.o): in function `tls_construct_client_hello':
          (.text+0xb1): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xc9): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0xfe): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x10e): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x14f): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x164): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x41f): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x43a): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x4ae): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x582): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x597): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x62e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x707): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x717): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_clnt.o): in function `tls_construct_next_proto':
          (.text+0xb06): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0xb2d): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_clnt.o): in function `tls_construct_cke_gost':
          (.text+0xe0f): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xe36): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xe55): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_clnt.o): in function `tls_construct_client_certificate':
          (.text+0x11b8): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1279): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_clnt.o): in function `tls_construct_cke_psk_preamble':
          (.text+0x1459): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_clnt.o): in function `tls_construct_client_key_exchange':
          (.text+0x49d6): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x4a48): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x4a89): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x4b62): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: (.text+0x4b8e): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x4e6a): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x4f07): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x501b): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_dtls.o): in function `dtls_construct_change_cipher_spec':
          (.text+0xdff): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_dtls.o): in function `dtls1_set_handshake_header':
          (.text+0x1d8f): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x1dc4): undefined reference to `WPACKET_start_sub_packet'
          /usr/bin/ld: (.text+0x1e1f): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_dtls.o): in function `dtls1_close_construct_packet':
          (.text+0x1e70): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1e83): undefined reference to `WPACKET_get_length'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `ssl_add_cert_to_wpacket':
          (.text+0x50): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `tls_close_construct_packet':
          (.text+0x62c): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x63b): undefined reference to `WPACKET_get_length'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `tls_construct_cert_verify':
          (.text+0x91f): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x9de): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `tls_construct_finished':
          (.text+0x13a1): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `tls_construct_key_update':
          (.text+0x154c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `tls_construct_change_cipher_spec':
          (.text+0x1920): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `ssl3_output_cert_chain':
          (.text+0x19b4): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1a41): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_lib.o): in function `construct_ca_names':
          (.text+0x3df6): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x3e56): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: (.text+0x3e84): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `tls_construct_server_hello':
          (.text+0x90): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xbc): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x115): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x254): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `create_ticket_prequel':
          (.text+0x3fa): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x430): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x4dc): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x4f5): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `tls_construct_server_key_exchange':
          (.text+0x59a): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x64d): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x7bb): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x7eb): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x7fb): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x933): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x9ae): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0xaa1): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xb6e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xb81): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xd7d): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xd9c): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0xe31): undefined reference to `WPACKET_get_length'
          /usr/bin/ld: (.text+0xf2d): undefined reference to `WPACKET_sub_reserve_bytes__'
          /usr/bin/ld: (.text+0xf74): undefined reference to `WPACKET_sub_allocate_bytes__'
          /usr/bin/ld: (.text+0x116e): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `tls_construct_certificate_request':
          (.text+0x1335): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x13a9): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x1404): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x143d): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0x144e): undefined reference to `WPACKET_set_flags'
          /usr/bin/ld: (.text+0x14f2): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: (.text+0x1536): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `tls_construct_server_certificate':
          (.text+0x164b): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `tls_construct_new_session_ticket':
          (.text+0x19e0): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x1a02): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x1a17): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x1a35): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x1a6c): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x1eb1): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0x1ebf): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0x1f5d): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x1f72): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x21f5): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x2231): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0x227b): undefined reference to `WPACKET_reserve_bytes'
          /usr/bin/ld: (.text+0x22be): undefined reference to `WPACKET_allocate_bytes'
          /usr/bin/ld: (.text+0x22e6): undefined reference to `WPACKET_close'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `dtls_raw_hello_verify_request':
          (.text+0x37cc): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x37e3): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-statem_srvr.o): in function `tls_construct_cert_status_body':
          (.text+0x720f): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0x722e): undefined reference to `WPACKET_sub_memcpy__'
          /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libssl.a(libssl-lib-d1_lib.o): in function `DTLSv1_listen':
          (.text+0xc7b): undefined reference to `WPACKET_init_static_len'
          /usr/bin/ld: (.text+0xc95): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xcac): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xcc6): undefined reference to `WPACKET_memcpy'
          /usr/bin/ld: (.text+0xcdb): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xcf5): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xd0c): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xd23): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xd3a): undefined reference to `WPACKET_put_bytes__'
          /usr/bin/ld: (.text+0xd4f): undefined reference to `WPACKET_start_sub_packet_len__'
          /usr/bin/ld: (.text+0xd78): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0xd88): undefined reference to `WPACKET_close'
          /usr/bin/ld: (.text+0xd9d): undefined reference to `WPACKET_get_total_written'
          /usr/bin/ld: (.text+0xdad): undefined reference to `WPACKET_finish'
          /usr/bin/ld: (.text+0x10fc): undefined reference to `WPACKET_cleanup'
          collect2: error: ld returned 1 exit status

@mrzzy
Copy link

mrzzy commented Feb 28, 2023

Tectonic switched to "semi-static" linking since ab731b8, however it seems that static linking is still not possible as the issue mentioned in the commit message is still yet to be fixed.

For those who don't want build tectonic from source, I have had a good experience with the AppImage from the releases page. It only has a dependency on libfuse2 and bundles the rest of tectonic's libraries.

@winstxnhdw
Copy link
Contributor

winstxnhdw commented Aug 28, 2023

Just a heads up. OpenSSL 1.1 is no longer supported on Debian Bookworm and later. So there is basically no way for you to run Tectonic without Docker if you own such a system. It would be great if we can move towards OpenSSL 3 to support these systems + the security benefits.

@pkgw
Copy link
Collaborator

pkgw commented Aug 29, 2023

Basically the only stumbling block here has been that the CI system keys different builds by Rust architecture triplets, and I haven't sat down and devised a scheme to allow me to split x86_64-unknown-linux-gnu into multiple builds for OpenSSL 1.1 vs. 3. I've been hoping to find someone else's example to copy, but haven't seen anything yet. You will notice that this is a pretty dumb reason to not deal with this. (Another highly relevant factor is, as always, lack of time.)

But also enough time has passed that most systems probably have OpenSSL 3 at least available at this point, so it's probably high time to switch the default to v3, and the people who need 1.1 can use the MUSL version or compile themselves.

@winstxnhdw
Copy link
Contributor

Yeap, I am all for dropping OpenSSL 1.1. The inertia for someone trying to install OpenSSL 1.1 will be the same as someone installing OpenSSL 3 anyways.

@MTRNord
Copy link

MTRNord commented Sep 16, 2023

The last release of openssl 1.x happened now too. So its best to migrate to openssl 3 since version 1 is nearing the EOL (unless you are paying for support I think)

@pkgw
Copy link
Collaborator

pkgw commented Sep 17, 2023

OK, I now have a PR to just cut the Linux builds over to OpenSSL3 (#1092) — looks like it should basically be straightforward.

@rm-dr rm-dr unpinned this issue Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants