-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Labels
Description
Trying to build with the using-diesel
example fails. Here is snippet of error:
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-m64" "-nostdlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.0.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.1.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.10.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.11.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.12.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.13.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.14.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.15.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.2.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.3.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.4.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.5.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.6.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.7.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.8.rcgu.o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.using_diesel.dqcexic7-cgu.9.rcgu.o" "-o" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/using_diesel-94aa5cadffcea30e.3n7t9phqceru8m8i.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps" "-L" "/home/rust/src/target/release/deps" "-L" "/home/rust/src/target/x86_64-unknown-linux-musl/release/build/libsqlite3-sys-ac3cf7454f406832/out" "-L" "/usr/local/musl/lib" "-L" "/usr/local/musl/lib/" "-L" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libopenssl-0de50740ee181784.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libopenssl_sys-89c6410693b927d6.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/liblibc-6265db6daf6f0d94.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/liblazy_static-5cac84b776fcd98b.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libforeign_types-23f459ebafab2c61.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libforeign_types_shared-1eba4aeaa81c6d19.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libdiesel-c89a5a6bebad19a9.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/liblibsqlite3_sys-818909750b3afa36.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libpq_sys-dc85b10baeb00fc3.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libbyteorder-9272cb6794a9382c.rlib" "/home/rust/src/target/x86_64-unknown-linux-musl/release/deps/libbitflags-b8224b03590c6c21.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-af9362ed5d81a840.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-4d55a38564aae54a.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libbacktrace_sys-f8521075e248b627.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-7c91ffdc8da860d3.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-0ad27b9879d551d3.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-588f18eae3ea58be.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-4ebf5caee903d98f.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-8895b32baedb08c6.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-6a9d233d01acc350.rlib" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-851bb3b5f6c4db49.rlib" "-Wl,-Bdynamic" "-lpq" "-static" "/home/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o"
= note: /usr/local/musl/lib/libpq.a(fe-connect.o): In function `connectFailureMessage':
fe-connect.c:(.text+0xa12): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `internal_cancel':
fe-connect.c:(.text+0xca9): undefined reference to `htonl'
fe-connect.c:(.text+0xcb7): undefined reference to `htonl'
fe-connect.c:(.text+0xcc4): undefined reference to `htonl'
fe-connect.c:(.text+0xcd1): undefined reference to `htonl'
fe-connect.c:(.text+0xd6e): undefined reference to `strlcpy'
fe-connect.c:(.text+0xd9e): undefined reference to `strncat'
fe-connect.c:(.text+0xdde): undefined reference to `strlcpy'
fe-connect.c:(.text+0xdfa): undefined reference to `strlcpy'
fe-connect.c:(.text+0xe26): undefined reference to `strncat'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `PQcancel':
fe-connect.c:(.text+0x1462): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `PQrequestCancel':
fe-connect.c:(.text+0x14f0): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `PQsetClientEncoding':
fe-connect.c:(.text+0x1a71): undefined reference to `sprintf'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `pqGetHomeDirectory':
fe-connect.c:(.text+0x1c81): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `parseServiceInfo':
fe-connect.c:(.text+0x1d1e): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `getPgPassFilename':
fe-connect.c:(.text+0x2c11): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `PasswordFromFile':
fe-connect.c:(.text+0x2d1c): undefined reference to `feof'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `PQconnectPoll':
fe-connect.c:(.text+0x3969): undefined reference to `htonl'
/usr/local/musl/lib/libpq.a(fe-connect.o): In function `defaultNoticeProcessor':
fe-connect.c:(.text+0xee): undefined reference to `fputs'
/usr/local/musl/lib/libpq.a(fe-exec.o): In function `pqInternalNotice':
fe-exec.c:(.text+0x1256): undefined reference to `sprintf'
/usr/local/musl/lib/libpq.a(fe-exec.o): In function `pqSaveParameterStatus':
fe-exec.c:(.text+0x1964): undefined reference to `sscanf'
/usr/local/musl/lib/libpq.a(fe-exec.o): In function `PQoidStatus':
fe-exec.c:(.text+0x3a11): undefined reference to `strspn'
/usr/local/musl/lib/libpq.a(fe-misc.o): In function `pqGetnchar':
fe-misc.c:(.text+0x3ac): undefined reference to `fputc'
fe-misc.c:(.text+0x3c6): undefined reference to `fputc'
/usr/local/musl/lib/libpq.a(fe-misc.o): In function `pqSkipnchar':
fe-misc.c:(.text+0x454): undefined reference to `fputc'
fe-misc.c:(.text+0x46f): undefined reference to `fputc'
/usr/local/musl/lib/libpq.a(fe-misc.o): In function `pqGetInt':
fe-misc.c:(.text+0x4ec): undefined reference to `ntohl'
fe-misc.c:(.text+0x58a): undefined reference to `ntohs'
/usr/local/musl/lib/libpq.a(fe-misc.o): In function `pqPutnchar':
fe-misc.c:(.text+0x7dc): undefined reference to `fputc'
fe-misc.c:(.text+0x7f6): undefined reference to `fputc'
/usr/local/musl/lib/libpq.a(fe-misc.o): In function `pqPutInt':
fe-misc.c:(.text+0x881): undefined reference to `htonl'
/usr/local/musl/lib/libpq.a(fe-misc.o): In function `pqPutMsgEnd':
fe-misc.c:(.text+0xf9d): undefined reference to `htonl'
/usr/local/musl/lib/libpq.a(fe-protocol2.o): In function `pqSetenvPoll':
fe-protocol2.c:(.text+0xa59): undefined reference to `sprintf'
fe-protocol2.c:(.text+0xb90): undefined reference to `sprintf'
fe-protocol2.c:(.text+0xbb0): undefined reference to `sprintf'
/usr/local/musl/lib/libpq.a(fe-protocol2.o): In function `pqParseInput2':
fe-protocol2.c:(.text+0xde8): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-protocol2.o): In function `pqBuildStartupPacket2':
fe-protocol2.c:(.text+0x1bad): undefined reference to `htonl'
/usr/local/musl/lib/libpq.a(fe-protocol3.o): In function `build_startup_packet':
fe-protocol3.c:(.text+0x4b3): undefined reference to `htonl'
/usr/local/musl/lib/libpq.a(fe-protocol3.o): In function `pqGetErrorNotice3':
fe-protocol3.c:(.text+0x11f7): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-protocol3.o): In function `pqParseInput3':
fe-protocol3.c:(.text+0x19a8): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-secure.o): In function `pq_block_sigpipe':
fe-secure.c:(.text+0x19c): undefined reference to `sigaddset'
fe-secure.c:(.text+0x1c6): undefined reference to `sigismember'
fe-secure.c:(.text+0x20c): undefined reference to `sigpending'
fe-secure.c:(.text+0x21f): undefined reference to `sigismember'
/usr/local/musl/lib/libpq.a(fe-secure.o): In function `pq_reset_sigpipe':
fe-secure.c:(.text+0x288): undefined reference to `sigpending'
fe-secure.c:(.text+0x2d1): undefined reference to `sigismember'
fe-secure.c:(.text+0x2f2): undefined reference to `sigaddset'
fe-secure.c:(.text+0x2ff): undefined reference to `sigwait'
/usr/local/musl/lib/libpq.a(chklocale.o): In function `pg_get_encoding_from_locale':
chklocale.c:(.text+0x50): undefined reference to `setlocale'
chklocale.c:(.text+0x77): undefined reference to `setlocale'
chklocale.c:(.text+0x8a): undefined reference to `nl_langinfo'
chklocale.c:(.text+0xa7): undefined reference to `setlocale'
chklocale.c:(.text+0x115): undefined reference to `setlocale'
chklocale.c:(.text+0x159): undefined reference to `nl_langinfo'
chklocale.c:(.text+0x1ba): undefined reference to `fputc'
/usr/local/musl/lib/libpq.a(inet_net_ntop.o): In function `inet_net_ntop':
inet_net_ntop.c:(.text+0xd3): undefined reference to `sprintf'
inet_net_ntop.c:(.text+0x10b): undefined reference to `sprintf'
inet_net_ntop.c:(.text+0x324): undefined reference to `sprintf'
inet_net_ntop.c:(.text+0x3c4): undefined reference to `sprintf'
inet_net_ntop.c:(.text+0x41b): undefined reference to `sprintf'
/usr/local/musl/lib/libpq.a(ip.o): In function `pg_getnameinfo_all':
ip.c:(.text+0x281): undefined reference to `getnameinfo'
ip.c:(.text+0x2a7): undefined reference to `strlcpy'
ip.c:(.text+0x2be): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(ip.o): In function `pg_sockaddr_cidr_mask':
ip.c:(.text+0x46f): undefined reference to `htonl'
/usr/local/musl/lib/libpq.a(ip.o): In function `pg_foreach_ifaddr':
ip.c:(.text+0x5ce): undefined reference to `getifaddrs'
ip.c:(.text+0x65e): undefined reference to `freeifaddrs'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `SSLerrmessage':
fe-secure-openssl.c:(.text+0x38): undefined reference to `ERR_reason_error_string'
fe-secure-openssl.c:(.text+0x4d): undefined reference to `strlcpy'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `initialize_SSL':
fe-secure-openssl.c:(.text+0x122): undefined reference to `SSLv23_method'
fe-secure-openssl.c:(.text+0x12a): undefined reference to `SSL_CTX_new'
fe-secure-openssl.c:(.text+0x14a): undefined reference to `SSL_CTX_ctrl'
fe-secure-openssl.c:(.text+0x15e): undefined reference to `SSL_CTX_ctrl'
fe-secure-openssl.c:(.text+0x1c8): undefined reference to `SSL_new'
fe-secure-openssl.c:(.text+0x1e5): undefined reference to `SSL_set_ex_data'
fe-secure-openssl.c:(.text+0x209): undefined reference to `BIO_new'
fe-secure-openssl.c:(.text+0x22d): undefined reference to `SSL_set_bio'
fe-secure-openssl.c:(.text+0x244): undefined reference to `BIO_int_ctrl'
fe-secure-openssl.c:(.text+0x253): undefined reference to `SSL_CTX_free'
fe-secure-openssl.c:(.text+0x2bc): undefined reference to `ENGINE_by_id'
fe-secure-openssl.c:(.text+0x2d4): undefined reference to `ENGINE_init'
fe-secure-openssl.c:(.text+0x2ef): undefined reference to `ENGINE_load_private_key'
fe-secure-openssl.c:(.text+0x307): undefined reference to `SSL_use_PrivateKey'
fe-secure-openssl.c:(.text+0x405): undefined reference to `ERR_put_error'
fe-secure-openssl.c:(.text+0x40a): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x44e): undefined reference to `SSL_CTX_free'
fe-secure-openssl.c:(.text+0x471): undefined reference to `strlcpy'
fe-secure-openssl.c:(.text+0x4e9): undefined reference to `strlcpy'
fe-secure-openssl.c:(.text+0x5b1): undefined reference to `SSL_check_private_key'
fe-secure-openssl.c:(.text+0x5bf): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x619): undefined reference to `SSL_CTX_load_verify_locations'
fe-secure-openssl.c:(.text+0x62a): undefined reference to `SSL_CTX_get_cert_store'
fe-secure-openssl.c:(.text+0x661): undefined reference to `ERR_clear_error'
fe-secure-openssl.c:(.text+0x6a9): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x6fc): undefined reference to `SSL_set_verify'
fe-secure-openssl.c:(.text+0x715): undefined reference to `SSL_CTX_use_certificate_chain_file'
fe-secure-openssl.c:(.text+0x723): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x7b4): undefined reference to `SSL_ctrl'
fe-secure-openssl.c:(.text+0x834): undefined reference to `SSL_use_PrivateKey_file'
fe-secure-openssl.c:(.text+0x842): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x8a1): undefined reference to `BIO_s_socket'
fe-secure-openssl.c:(.text+0x954): undefined reference to `strlcpy'
fe-secure-openssl.c:(.text+0x969): undefined reference to `strlcpy'
fe-secure-openssl.c:(.text+0x984): undefined reference to `X509_STORE_load_locations'
fe-secure-openssl.c:(.text+0x99a): undefined reference to `X509_STORE_set_flags'
fe-secure-openssl.c:(.text+0x9d1): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0xa1a): undefined reference to `ENGINE_finish'
fe-secure-openssl.c:(.text+0xa26): undefined reference to `ENGINE_free'
fe-secure-openssl.c:(.text+0xa75): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0xa9e): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0xb08): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0xb6d): undefined reference to `ERR_get_error'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `verify_peer_name_matches_certificate_name':
fe-secure-openssl.c:(.text+0xbc5): undefined reference to `ASN1_STRING_data'
fe-secure-openssl.c:(.text+0xbd0): undefined reference to `ASN1_STRING_length'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `my_sock_write':
fe-secure-openssl.c:(.text+0xdb1): undefined reference to `BIO_clear_flags'
fe-secure-openssl.c:(.text+0xde2): undefined reference to `BIO_set_flags'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `my_sock_read':
fe-secure-openssl.c:(.text+0xe11): undefined reference to `BIO_clear_flags'
fe-secure-openssl.c:(.text+0xe42): undefined reference to `BIO_set_flags'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pgtls_read_pending':
fe-secure-openssl.c:(.text+0xeec): undefined reference to `SSL_pending'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pgtls_read':
fe-secure-openssl.c:(.text+0xf4a): undefined reference to `ERR_clear_error'
fe-secure-openssl.c:(.text+0xf5d): undefined reference to `SSL_read'
fe-secure-openssl.c:(.text+0xf6e): undefined reference to `SSL_get_error'
fe-secure-openssl.c:(.text+0xfa1): undefined reference to `ERR_get_error'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pgtls_write':
fe-secure-openssl.c:(.text+0x11b8): undefined reference to `ERR_clear_error'
fe-secure-openssl.c:(.text+0x11ca): undefined reference to `SSL_write'
fe-secure-openssl.c:(.text+0x11db): undefined reference to `SSL_get_error'
fe-secure-openssl.c:(.text+0x1211): undefined reference to `ERR_get_error'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pgtls_init':
fe-secure-openssl.c:(.text+0x1461): undefined reference to `CRYPTO_get_id_callback'
fe-secure-openssl.c:(.text+0x146f): undefined reference to `CRYPTO_get_locking_callback'
fe-secure-openssl.c:(.text+0x1480): undefined reference to `CRYPTO_set_locking_callback'
fe-secure-openssl.c:(.text+0x1493): undefined reference to `OPENSSL_config'
fe-secure-openssl.c:(.text+0x1498): undefined reference to `SSL_library_init'
fe-secure-openssl.c:(.text+0x149d): undefined reference to `SSL_load_error_strings'
fe-secure-openssl.c:(.text+0x14b1): undefined reference to `CRYPTO_num_locks'
fe-secure-openssl.c:(.text+0x14dc): undefined reference to `CRYPTO_num_locks'
fe-secure-openssl.c:(.text+0x153a): undefined reference to `CRYPTO_set_id_callback'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pgtls_close':
fe-secure-openssl.c:(.text+0x1568): undefined reference to `SSL_shutdown'
fe-secure-openssl.c:(.text+0x1579): undefined reference to `SSL_free'
fe-secure-openssl.c:(.text+0x159c): undefined reference to `X509_free'
fe-secure-openssl.c:(.text+0x15b8): undefined reference to `ENGINE_finish'
fe-secure-openssl.c:(.text+0x15c4): undefined reference to `ENGINE_free'
fe-secure-openssl.c:(.text+0x1631): undefined reference to `CRYPTO_get_locking_callback'
fe-secure-openssl.c:(.text+0x1642): undefined reference to `CRYPTO_get_id_callback'
fe-secure-openssl.c:(.text+0x1655): undefined reference to `CRYPTO_set_id_callback'
fe-secure-openssl.c:(.text+0x165e): undefined reference to `CRYPTO_set_locking_callback'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pgtls_open_client':
fe-secure-openssl.c:(.text+0x16a6): undefined reference to `ERR_clear_error'
fe-secure-openssl.c:(.text+0x16b2): undefined reference to `SSL_connect'
fe-secure-openssl.c:(.text+0x16c8): undefined reference to `SSL_get_peer_certificate'
fe-secure-openssl.c:(.text+0x1773): undefined reference to `SSL_get_error'
fe-secure-openssl.c:(.text+0x177b): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x183d): undefined reference to `X509_get_ext_d2i'
fe-secure-openssl.c:(.text+0x1851): undefined reference to `sk_num'
fe-secure-openssl.c:(.text+0x188c): undefined reference to `sk_value'
fe-secure-openssl.c:(.text+0x18ed): undefined reference to `sk_free'
fe-secure-openssl.c:(.text+0x1931): undefined reference to `ERR_get_error'
fe-secure-openssl.c:(.text+0x19cc): undefined reference to `sk_free'
fe-secure-openssl.c:(.text+0x1a2d): undefined reference to `sk_free'
fe-secure-openssl.c:(.text+0x1a40): undefined reference to `X509_get_subject_name'
fe-secure-openssl.c:(.text+0x1a5e): undefined reference to `X509_NAME_get_index_by_NID'
fe-secure-openssl.c:(.text+0x1a7a): undefined reference to `X509_NAME_get_entry'
fe-secure-openssl.c:(.text+0x1a82): undefined reference to `X509_NAME_ENTRY_get_data'
fe-secure-openssl.c:(.text+0x1b6d): undefined reference to `X509_get_subject_name'
fe-secure-openssl.c:(.text+0x1b85): undefined reference to `X509_NAME_get_index_by_NID'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `PQsslAttribute':
fe-secure-openssl.c:(.text+0x1ce3): undefined reference to `SSL_get_version'
fe-secure-openssl.c:(.text+0x1d04): undefined reference to `SSL_get_current_cipher'
fe-secure-openssl.c:(.text+0x1d11): undefined reference to `SSL_CIPHER_get_bits'
fe-secure-openssl.c:(.text+0x1d44): undefined reference to `SSL_get_current_compression'
fe-secure-openssl.c:(.text+0x1d64): undefined reference to `SSL_get_current_cipher'
fe-secure-openssl.c:(.text+0x1d6c): undefined reference to `SSL_CIPHER_get_name'
/usr/local/musl/lib/libpq.a(fe-secure-openssl.o): In function `pq_threadidcallback':
fe-secure-openssl.c:(.text+0xd81): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `using-diesel`.