utdemir / ghc-musl

Docker image with GHC+musl for static executables
136 stars 9 forks source link

build postgrest failed with error message setup: The program 'pg_config' is required but it could not be found #15

Open hughjfchen opened 3 years ago

hughjfchen commented 3 years ago

I tried to build a fully static linked postgrest binary with this docker image and met following error when building the postgresql-libpq pacakge:

Failed to build postgresql-libpq-0.9.4.3. The failure occurred during the
configure step.
Build log (
/root/.cabal/logs/ghc-8.8.4/postgresql-libpq-0.9.4.3-7432e0030ca564c2b2e715ebcca1b97ed2ae6fb6b9074429e2384c2bc3647c3b.log
):
[1 of 1] Compiling Main             ( /mnt/dist-newstyle/tmp/src-23/postgresql-libpq-0.9.4.3/dist/setup/setup.hs, /mnt/dist-newstyle/tmp/src-23/postgresql-libpq-0.9.4.3/dist/setup/Main.o )
Linking /mnt/dist-newstyle/tmp/src-23/postgresql-libpq-0.9.4.3/dist/setup/setup ...
Configuring postgresql-libpq-0.9.4.3...
setup: The program 'pg_config' is required but it could not be found.

cabal: Failed to build postgresql-libpq-0.9.4.3 (which is required by
exe:postgrest from postgrest-7.0.1). See the build log above for details.
utdemir commented 3 years ago

Thanks for the issue!

The error makes sense to me, since the container does not have anything related to postgresql installed. Could you try installing the postgresql-dev package (apk add postgresql-dev), and building it again?

If it works, I would be happy to add it to the container.

hughjfchen commented 3 years ago

I tried to add the postgresql-dev package and built it again, this time I got following error:

Preprocessing library for postgrest-7.0.1..
Building library for postgrest-7.0.1..
Preprocessing executable 'postgrest' for postgrest-7.0.1..
Building executable 'postgrest' for postgrest-7.0.1..
Linking /mnt/dist-newstyle/build/x86_64-linux/ghc-8.8.4/postgrest-7.0.1/x/postgrest/build/postgrest/postgrest ...
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `parseServiceFile':
fe-connect.c:(.text+0xbee): undefined reference to `pg_strncasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xda8): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xdbf): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xddb): undefined reference to `ldap_init'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xdff): undefined reference to `ldap_set_option'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xe13): undefined reference to `ldap_simple_bind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xe41): undefined reference to `ldap_result'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xe65): undefined reference to `ldap_msgfree'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xe7e): undefined reference to `ldap_set_option'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xeb4): undefined reference to `ldap_search_st'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xed1): undefined reference to `ldap_msgfree'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xed9): undefined reference to `ldap_err2string'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xef7): undefined reference to `ldap_unbind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x117f): undefined reference to `ldap_msgfree'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x118f): undefined reference to `ldap_unbind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x11a4): undefined reference to `ldap_unbind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x11b6): undefined reference to `ldap_count_entries'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x11ec): undefined reference to `ldap_msgfree'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x11f4): undefined reference to `ldap_unbind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1232): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1254): undefined reference to `ldap_first_entry'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1270): undefined reference to `ldap_get_values_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1286): undefined reference to `ldap_msgfree'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x135d): undefined reference to `ldap_value_free_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1365): undefined reference to `ldap_unbind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x141b): undefined reference to `ldap_value_free_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1423): undefined reference to `ldap_unbind'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `internal_cancel':
fe-connect.c:(.text+0x183e): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x189a): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `default_threadlock':
fe-connect.c:(.text+0x1914): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `sslVerifyProtocolVersion':
fe-connect.c:(.text+0x1950): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1963): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1976): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1989): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `getHostaddr.constprop.0':
fe-connect.c:(.text+0x19db): undefined reference to `pg_inet_net_ntop'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1a0b): undefined reference to `pg_inet_net_ntop'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `connectFailureMessage':
fe-connect.c:(.text+0x1ad0): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1b61): undefined reference to `pg_getnameinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1b76): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1bb1): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `closePGconn':
fe-connect.c:(.text+0x2037): undefined reference to `pg_freeaddrinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `PQconnectPoll':
fe-connect.c:(.text+0x255c): undefined reference to `pg_set_noblock'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x26c6): undefined reference to `pg_freeaddrinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2745): undefined reference to `pg_freeaddrinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x27e5): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2f50): undefined reference to `pg_getaddrinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2fd7): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2ffe): undefined reference to `pg_getaddrinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3053): undefined reference to `pg_getaddrinfo_all'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3119): undefined reference to `pqGetpwuid'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3459): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x34b9): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3660): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x36ed): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3823): undefined reference to `getpeereid'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3850): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3a39): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3ab4): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3af4): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3b8b): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o):fe-connect.c:(.text+0x3c50): more undefined references to `pg_strerror_r' follow
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `connectDBStart':
fe-connect.c:(.text+0x4119): undefined reference to `pg_link_canary_is_frontend'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `PQsetClientEncoding':
fe-connect.c:(.text+0x496d): undefined reference to `pg_sprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x49f8): undefined reference to `pg_get_encoding_from_locale'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x49ff): undefined reference to `pg_encoding_to_char'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `pqGetHomeDirectory':
fe-connect.c:(.text+0x4b76): undefined reference to `pqGetpwuid'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `parseServiceInfo':
fe-connect.c:(.text+0x4cda): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x4d71): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `connectOptions2':
fe-connect.c:(.text+0x62cb): undefined reference to `pg_strip_crlf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x66aa): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x68e2): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x6902): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x6919): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x6928): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x69d7): undefined reference to `pg_get_encoding_from_locale'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x69de): undefined reference to `pg_encoding_to_char'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `defaultNoticeProcessor':
fe-connect.c:(.text+0x97): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `PQescapeStringInternal':
fe-exec.c:(.text+0x94f): undefined reference to `pg_encoding_mblen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `PQescapeInternal':
fe-exec.c:(.text+0xbc3): undefined reference to `pg_encoding_mblen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0xca8): undefined reference to `pg_encoding_mblen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `pqInternalNotice':
fe-exec.c:(.text+0x174f): undefined reference to `pg_vsnprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0x17f1): undefined reference to `pg_sprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `pqSaveParameterStatus':
fe-exec.c:(.text+0x1cdf): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0x1e44): undefined reference to `pg_char_to_encoding'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `PQfnumber':
fe-exec.c:(.text+0x3847): undefined reference to `pg_tolower'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0x3895): undefined reference to `pg_tolower'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-lobj.o): in function `lo_import_internal':
fe-lobj.c:(.text+0x10bc): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-lobj.c:(.text+0x10fd): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-lobj.o): in function `lo_export':
fe-lobj.c:(.text+0x153f): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-lobj.c:(.text+0x15d5): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `pqGets_internal':
fe-misc.c:(.text+0x86): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `pqSocketCheck':
fe-misc.c:(.text+0x21b): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `pqGetc':
fe-misc.c:(.text+0x2c0): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `pqGetnchar':
fe-misc.c:(.text+0x37c): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-misc.c:(.text+0x3b9): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `pqSkipnchar':
fe-misc.c:(.text+0x430): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-misc.c:(.text+0x480): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o):fe-misc.c:(.text+0x57f): more undefined references to `pg_fprintf' follow
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQenv2encoding':
fe-misc.c:(.text+0x126c): undefined reference to `pg_char_to_encoding'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQmblen':
fe-misc.c:(.text+0x1229): undefined reference to `pg_encoding_mblen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQdsplen':
fe-misc.c:(.text+0x1239): undefined reference to `pg_encoding_dsplen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-protocol2.o): in function `pqSetenvPoll':
fe-protocol2.c:(.text+0x950): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol2.c:(.text+0x967): undefined reference to `pg_sprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol2.c:(.text+0xa99): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol2.c:(.text+0xabd): undefined reference to `pg_sprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol2.c:(.text+0xc30): undefined reference to `pg_sprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol2.c:(.text+0xc68): undefined reference to `pg_sprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-protocol3.o): in function `build_startup_packet':
fe-protocol3.c:(.text+0x59c): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-protocol3.o): in function `pqBuildErrorMessage3':
fe-protocol3.c:(.text+0x7f1): undefined reference to `pg_encoding_max_length'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol3.c:(.text+0x850): undefined reference to `pg_encoding_dsplen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol3.c:(.text+0x868): undefined reference to `pg_encoding_mblen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol3.c:(.text+0xe83): undefined reference to `pg_encoding_dsplen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol3.c:(.text+0xe9f): undefined reference to `pg_encoding_mblen'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(pqexpbuffer.o): in function `printfPQExpBuffer':
pqexpbuffer.c:(.text+0x2dd): undefined reference to `pg_vsnprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(pqexpbuffer.o): in function `appendPQExpBuffer':
pqexpbuffer.c:(.text+0x465): undefined reference to `pg_vsnprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `SSLerrmessage':
fe-secure-openssl.c:(.text+0x3a): undefined reference to `ERR_reason_error_string'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x72): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9d): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `ssl_protocol_version_to_openssl':
fe-secure-openssl.c:(.text+0xcf): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xeb): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x107): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x123): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `initialize_SSL':
fe-secure-openssl.c:(.text+0x190): undefined reference to `TLS_method'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x198): undefined reference to `SSL_CTX_new'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1c1): undefined reference to `SSL_CTX_set_default_passwd_cb'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1cc): undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1d9): undefined reference to `SSL_CTX_set_options'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x217): undefined reference to `SSL_CTX_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x283): undefined reference to `SSL_new'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2a0): undefined reference to `SSL_set_ex_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2c4): undefined reference to `BIO_new'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2db): undefined reference to `BIO_set_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2ed): undefined reference to `SSL_set_bio'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2ff): undefined reference to `BIO_int_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x30e): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x355): undefined reference to `SSL_clear_options'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x3ec): undefined reference to `ENGINE_by_id'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x404): undefined reference to `ENGINE_init'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x41f): undefined reference to `ENGINE_load_private_key'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x437): undefined reference to `SSL_use_PrivateKey'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x4d7): undefined reference to `SSL_CTX_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x4e5): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x527): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x629): undefined reference to `SSL_check_private_key'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x637): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x6bd): undefined reference to `SSL_set_verify'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x6ef): undefined reference to `SSL_CTX_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x6fd): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x751): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x789): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x7c1): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x80c): undefined reference to `SSL_use_PrivateKey_file'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x81a): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x839): undefined reference to `SSL_use_PrivateKey_file'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x869): undefined reference to `BIO_s_socket'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x871): undefined reference to `BIO_get_new_index'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x888): undefined reference to `BIO_meth_new'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8a7): undefined reference to `BIO_meth_set_write'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8c2): undefined reference to `BIO_meth_set_read'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8d2): undefined reference to `BIO_meth_get_gets'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8e1): undefined reference to `BIO_meth_set_gets'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8f1): undefined reference to `BIO_meth_get_puts'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x900): undefined reference to `BIO_meth_set_puts'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x910): undefined reference to `BIO_meth_get_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x91f): undefined reference to `BIO_meth_set_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x92b): undefined reference to `BIO_meth_get_create'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x93a): undefined reference to `BIO_meth_set_create'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x946): undefined reference to `BIO_meth_get_destroy'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x955): undefined reference to `BIO_meth_set_destroy'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x961): undefined reference to `BIO_meth_get_callback_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x970): undefined reference to `BIO_meth_set_callback_ctrl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x998): undefined reference to `BIO_meth_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9c4): undefined reference to `ERR_put_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9c9): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9f7): undefined reference to `SSL_CTX_use_certificate_chain_file'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa11): undefined reference to `SSL_set_options'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa46): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa69): undefined reference to `SSL_CTX_load_verify_locations'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa80): undefined reference to `SSL_CTX_get_cert_store'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xaaf): undefined reference to `ERR_clear_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xae1): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xaf8): undefined reference to `X509_STORE_load_locations'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xb0a): undefined reference to `X509_STORE_set_flags'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xb2d): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xbb3): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xbfc): undefined reference to `ENGINE_finish'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc0e): undefined reference to `ENGINE_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc2b): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc68): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xca8): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xced): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xd16): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xd20): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xda2): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xdce): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `my_sock_read':
fe-secure-openssl.c:(.text+0xe4d): undefined reference to `BIO_get_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xe6b): undefined reference to `BIO_clear_flags'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xe9a): undefined reference to `BIO_set_flags'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `my_sock_write':
fe-secure-openssl.c:(.text+0xebd): undefined reference to `BIO_get_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xedb): undefined reference to `BIO_clear_flags'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xf0a): undefined reference to `BIO_set_flags'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_read':
fe-secure-openssl.c:(.text+0xf75): undefined reference to `ERR_clear_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xf86): undefined reference to `SSL_read'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xf98): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xfe6): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x10c3): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_read_pending':
fe-secure-openssl.c:(.text+0x11cc): undefined reference to `SSL_pending'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_write':
fe-secure-openssl.c:(.text+0x1219): undefined reference to `ERR_clear_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x122b): undefined reference to `SSL_write'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x123d): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1281): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1334): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_get_peer_certificate_hash':
fe-secure-openssl.c:(.text+0x147d): undefined reference to `X509_get_signature_nid'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x148b): undefined reference to `OBJ_find_sigid_algs'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x14ae): undefined reference to `OBJ_nid2sn'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x14b6): undefined reference to `EVP_get_digestbyname'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x14d7): undefined reference to `X509_digest'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1571): undefined reference to `EVP_sha256'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x15c8): undefined reference to `OBJ_nid2sn'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_verify_peer_name_matches_certificate_guts':
fe-secure-openssl.c:(.text+0x164d): undefined reference to `X509_get_ext_d2i'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1661): undefined reference to `OPENSSL_sk_num'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1694): undefined reference to `OPENSSL_sk_value'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x16b4): undefined reference to `ASN1_STRING_get0_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x16c1): undefined reference to `ASN1_STRING_length'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x16fd): undefined reference to `GENERAL_NAME_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1705): undefined reference to `OPENSSL_sk_pop_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1759): undefined reference to `X509_get_subject_name'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1773): undefined reference to `X509_NAME_get_index_by_NID'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1785): undefined reference to `X509_NAME_get_entry'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x178d): undefined reference to `X509_NAME_ENTRY_get_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17a1): undefined reference to `ASN1_STRING_get0_data'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17ac): undefined reference to `ASN1_STRING_length'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17eb): undefined reference to `GENERAL_NAME_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17f6): undefined reference to `OPENSSL_sk_pop_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_init':
fe-secure-openssl.c:(.text+0x18b8): undefined reference to `OPENSSL_init_ssl'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_close':
fe-secure-openssl.c:(.text+0x18e1): undefined reference to `SSL_shutdown'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x18ed): undefined reference to `SSL_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1910): undefined reference to `X509_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x192c): undefined reference to `ENGINE_finish'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1938): undefined reference to `ENGINE_free'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_open_client':
fe-secure-openssl.c:(.text+0x1984): undefined reference to `ERR_clear_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1990): undefined reference to `SSL_connect'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x19a2): undefined reference to `SSL_get_peer_certificate'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1a23): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1a2b): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1aa9): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1bf8): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `PQsslAttribute':
fe-secure-openssl.c:(.text+0x1d8c): undefined reference to `SSL_get_current_cipher'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1d99): undefined reference to `SSL_CIPHER_get_bits'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1db7): undefined reference to `pg_snprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1dec): undefined reference to `SSL_get_current_cipher'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1e14): undefined reference to `SSL_get_current_compression'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `PQdefaultSSLKeyPassHook_OpenSSL':
fe-secure-openssl.c:(.text+0x1eb4): undefined reference to `pg_fprintf'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `PQsslAttribute':
fe-secure-openssl.c:(.text+0x1de0): undefined reference to `SSL_get_version'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1e08): undefined reference to `SSL_CIPHER_get_name'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `build_client_final_message':
fe-auth-scram.c:(.text+0x196): undefined reference to `scram_SaltedPassword'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1a6): undefined reference to `scram_ClientKey'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1c3): undefined reference to `scram_H'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1d8): undefined reference to `scram_HMAC_init'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1f9): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x20d): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x22f): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x243): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x259): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x26c): undefined reference to `scram_HMAC_final'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x2a4): undefined reference to `pg_b64_enc_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x2d4): undefined reference to `pg_b64_encode'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x437): undefined reference to `pg_b64_enc_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x466): undefined reference to `pg_b64_encode'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `pg_fe_scram_init':
fe-auth-scram.c:(.text+0x5c7): undefined reference to `pg_saslprep'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `pg_fe_scram_exchange':
fe-auth-scram.c:(.text+0x775): undefined reference to `pg_strong_random'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x787): undefined reference to `pg_b64_enc_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x7b7): undefined reference to `pg_b64_encode'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x9e9): undefined reference to `pg_b64_dec_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xa36): undefined reference to `pg_b64_decode'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xba0): undefined reference to `pg_b64_dec_len'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xbe5): undefined reference to `pg_b64_decode'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xc58): undefined reference to `scram_ServerKey'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xc68): undefined reference to `scram_HMAC_init'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xc82): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xc96): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xcb0): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xcc4): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xcde): undefined reference to `scram_HMAC_update'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xcee): undefined reference to `scram_HMAC_final'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `pg_fe_scram_build_secret':
fe-auth-scram.c:(.text+0xf90): undefined reference to `pg_saslprep'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xfaf): undefined reference to `pg_strong_random'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xfc8): undefined reference to `scram_build_secret'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-common.o): in function `pq_verify_peer_name_matches_certificate_name':
fe-secure-common.c:(.text+0x10f): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-common.c:(.text+0x175): undefined reference to `pg_strcasecmp'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /root/.cabal/store/ghc-8.8.4/postgresql-libpq-0.9.4.3-7432e0030ca564c2b2e715ebcca1b97ed2ae6fb6b9074429e2384c2bc3647c3b/lib/libHSpostgresql-libpq-0.9.4.3-7432e0030ca564c2b2e715ebcca1b97ed2ae6fb6b9074429e2384c2bc3647c3b.a(LibPQ.o): in function `postgresqlzmlibpqzm0zi9zi4zi3zm7432e0030ca564c2b2e715ebcca1b97ed2ae6fb6b9074429e2384c2bc3647c3b_DatabaseziPostgreSQLziLibPQ_zdwclientEncoding_info':
(.text+0x1e6c0): undefined reference to `pg_encoding_to_char'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure.o): in function `pqsecure_raw_read':
fe-secure.c:(.text+0x111): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure.o): in function `pqsecure_raw_write':
fe-secure.c:(.text+0x4e9): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `pg_fe_sendauth':
fe-auth.c:(.text+0x59e): undefined reference to `pg_md5_encrypt'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth.c:(.text+0x5bb): undefined reference to `pg_md5_encrypt'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `pg_fe_getauthname':
fe-auth.c:(.text+0x8ff): undefined reference to `pqGetpwuid'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth.c:(.text+0x974): undefined reference to `pg_strerror_r'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `PQencryptPassword':
fe-auth.c:(.text+0xa02): undefined reference to `pg_md5_encrypt'
/usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `PQencryptPasswordConn':
fe-auth.c:(.text+0xab9): undefined reference to `pg_md5_encrypt'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)

Looks like there're still some libraries missing but I don't know what they are.

utdemir commented 3 years ago

Adding -optl-lpq -optl-lssl -optl-lcrypto to GHC options solve some of them, but there are still some libpq related errors remaining. An example of the remaining ones:

/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth.c:(.text+0x5bb): undefined reference to `pg_md5_encrypt'

And if we look at the static object file, that pg_md5_encrypt function is indeed undefined:

~/postgrest # nm /usr/lib/libpq.a | grep md5
                 U pg_md5_encrypt

I googled a bit, and here's what I found:

So, in the end, I think this is an Alpine issue. You could try raising it on Alpine Linux's bug tracker, to see if they can provide a libpq with the missing symbols.

hughjfchen commented 3 years ago

@utdemir , Thanks for your research and update.

A blog post about of statically compiling libpq on Alpine.

This is inspiring. Consider the following error messag:

/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth.c:(.text+0x5bb): undefined reference to `pg_md5_encrypt'

I highly believe that the fe-auth.c is due to the ldap auth of postgresql, so eliminating the ldap of postgresql may solve this problem. I may generate a patch and build a customized without-ldap postgresql and see what will happen.

hughjfchen commented 3 years ago

Strange. I checked the built log of the alpine linux postgresql package. The latest build log shows that their package includes both pgcommon.a and pgport.a libs. But I do remember both is missing from their postgresql package when I checked the built log several days ago. Could you try the latest postgresql package with both pgcommon and pgport libs works?

saurabhnanda commented 3 years ago

Did anyone get this working (i.e. specifically the libpq dependency)?

Further, is there a more general way of linking everything statically EXCEPT a few libraries for which it is very hard to get a static version?

Disco-Dave commented 2 years ago

Did anyone get this working (i.e. specifically the libpq dependency)?

Hey there, I recently gave this a try for myself and it appears to currently work. Here were the steps I followed:

  1. Created a new cabal project: mkdir ghc-musl-with-libpq && cd "$_" && cabal init
  2. Added postgresql-simple ^>= 0.6.4 as a dependency in ghc-musl-with-libpq.cabal
  3. Entered the ghc-musl container via: docker run --rm -it -v "$PWD:/mnt" utdemir/ghc-musl:v22-ghc8107 sh
  4. Installed postgresql-dev and compiled the project:
    $ apk add --no-cache postgresql-dev
    $ cd /mnt
    $ cabal update && cabal build --enable-executable-static
    $ exit
    1. Double checked the final executable is static:
      $ ldd dist-newstyle/build/x86_64-linux/ghc-8.10.7/ghc-musl-with-libpq-0.1.0.0/x/ghc-musl-with-libpq/build/ghc-musl-with-libpq/ghc-musl-with-libpq
      not a dynamic executable
Quintasan commented 1 year ago

Unfortunately, no dice. That said, I'm trying to build my own webapp which uses postgresql-simple under the hood. I'm using utdemir/ghc-musl:v25-ghc902 image to do so but it still fails when linking.

Build log ``` /mnt # cabal build -v --enable-executable-static this build was affected by the following (project) config files: Build profile: -w ghc-9.0.2 -O1 In order, the following will be built: - teadb-0.1.0.0 (exe:teadb) (first run) creating /mnt/dist-newstyle/build creating /mnt/dist-newstyle/tmp creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/cache Using self-exec internal setup method with build-type Simple and args: ["act-as-setup","--build-type=Simple","--","build","--verbose=2","--builddir=/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb"] /usr/local/.ghcup/bin/cabal-3.6.2.0 act-as-setup --build-type=Simple -- build --verbose=2 --builddir=/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb Component build order: executable 'teadb' /usr/local/.ghcup/ghc/9.0.2/bin/ghc-pkg-9.0.2 init /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/package.conf.inplace creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen Preprocessing executable 'teadb' for teadb-0.1.0.0.. Building executable 'teadb' for teadb-0.1.0.0.. creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb creating /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp /usr/local/.ghcup/bin/ghc --make -no-link -fbuilding-cabal-package -O -static -outputdir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -odir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -hidir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -stubdir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -i -i/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -isrc -i/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen -i/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/global-autogen -I/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen -I/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/global-autogen -I/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -optP-include -optP/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen/cabal_macros.h -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /root/.cabal/store/ghc-9.0.2/package.db -package-db /mnt/dist-newstyle/packagedb/ghc-9.0.2 -package-db /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/package.conf.inplace -package-id Cabal-3.4.1.0 -package-id aeson-2.1.1.0-2895528212418960e1ced53300de01216071be1a53861302912ce588591e0c9b -package-id blaze-html-0.9.1.2-d13bf3066c2d165d1fda6348b573b319f6704a0435e24f9fddb6d4bb4a783065 -package-id http-types-0.12.3-05d20ee518301224f4cdac1602014efa63889e600a921f8497d9131caf5aa54f -package-id mr-env-0.1.0.5-6c71a2a5ff0c29bd6e14b18f628f9f3005995c573be1f1872a390f5fb2c89cbc -package-id postgresql-simple-0.6.5-3cc4cb0fb224a4da92635237c5bdb886a16d799722d3179149943c42071608bf -package-id rerebase-1.16.1-6a103194f78f426f9bd2c5f999181dc8d455d23c4d5be83bf2b4379259e5cebd -package-id scotty-0.12.1-c5d00c85274d8483bbd73687768ae07b69e7d58096f43076969055748063120d -package-id utf8-string-1.0.2-c06b5e9bb83f541982eefbf97cd6fad877f7521df30b15f3c8072cc386bd7ffd -package-id wai-3.2.3-765ae1013abc5c94d7829e7bec21e487bc9e0ad573790db77993341184be34cd -package-id wai-cors-0.2.7-634e5906b86aebe16eabb1fe96382e4c0512202d9eae67f26c8dd0eb4a1933cb -package-id wai-extra-3.1.13.0-abb2008875b30e27d6a6c0a5768d6b2a4eb0a1dbd2ab747447e810c9f15205cf -XHaskell2010 -XOverloadedStrings -XDeriveGeneric -XDuplicateRecordFields src/Main.hs Database Healthcheck Statements Steeping Tea Paths_teadb -hide-all-packages Linking... /usr/local/.ghcup/bin/ghc --make -fbuilding-cabal-package -O -static -outputdir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -odir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -hidir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -stubdir /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -i -i/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -isrc -i/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen -i/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/global-autogen -I/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen -I/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/global-autogen -I/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb-tmp -optP-include -optP/mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/autogen/cabal_macros.h -optl-static -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /root/.cabal/store/ghc-9.0.2/package.db -package-db /mnt/dist-newstyle/packagedb/ghc-9.0.2 -package-db /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/package.conf.inplace -package-id Cabal-3.4.1.0 -package-id aeson-2.1.1.0-2895528212418960e1ced53300de01216071be1a53861302912ce588591e0c9b -package-id blaze-html-0.9.1.2-d13bf3066c2d165d1fda6348b573b319f6704a0435e24f9fddb6d4bb4a783065 -package-id http-types-0.12.3-05d20ee518301224f4cdac1602014efa63889e600a921f8497d9131caf5aa54f -package-id mr-env-0.1.0.5-6c71a2a5ff0c29bd6e14b18f628f9f3005995c573be1f1872a390f5fb2c89cbc -package-id postgresql-simple-0.6.5-3cc4cb0fb224a4da92635237c5bdb886a16d799722d3179149943c42071608bf -package-id rerebase-1.16.1-6a103194f78f426f9bd2c5f999181dc8d455d23c4d5be83bf2b4379259e5cebd -package-id scotty-0.12.1-c5d00c85274d8483bbd73687768ae07b69e7d58096f43076969055748063120d -package-id utf8-string-1.0.2-c06b5e9bb83f541982eefbf97cd6fad877f7521df30b15f3c8072cc386bd7ffd -package-id wai-3.2.3-765ae1013abc5c94d7829e7bec21e487bc9e0ad573790db77993341184be34cd -package-id wai-cors-0.2.7-634e5906b86aebe16eabb1fe96382e4c0512202d9eae67f26c8dd0eb4a1933cb -package-id wai-extra-3.1.13.0-abb2008875b30e27d6a6c0a5768d6b2a4eb0a1dbd2ab747447e810c9f15205cf -XHaskell2010 -XOverloadedStrings -XDeriveGeneric -XDuplicateRecordFields src/Main.hs Database Healthcheck Statements Steeping Tea Paths_teadb -o /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb -hide-all-packages Linking /mnt/dist-newstyle/build/x86_64-linux/ghc-9.0.2/teadb-0.1.0.0/x/teadb/build/teadb/teadb ... /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `sslVerifyProtocolVersion': fe-connect.c:(.text+0xd10): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xd23): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xd36): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0xd49): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `connectFailureMessage': fe-connect.c:(.text+0xd91): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `emitHostIdentityInfo': fe-connect.c:(.text+0xf14): undefined reference to `pg_getnameinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `closePGconn': fe-connect.c:(.text+0x1472): undefined reference to `pg_freeaddrinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `PQconnectPoll': fe-connect.c:(.text+0x1e20): undefined reference to `pg_freeaddrinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x1eb7): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x259c): undefined reference to `pg_getaddrinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x260c): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2634): undefined reference to `pg_getaddrinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x269c): undefined reference to `pg_getaddrinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2a49): undefined reference to `pg_set_noblock' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2b75): undefined reference to `pg_freeaddrinfo_all' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2be6): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2c25): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2c6e): undefined reference to `pg_inet_net_ntop' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2d5c): undefined reference to `pg_inet_net_ntop' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2da2): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2e2c): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2eac): undefined reference to `getpeereid' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x2ed1): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x312f): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x31c3): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x322d): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x3280): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o):fe-connect.c:(.text+0x331a): more undefined references to `pg_strerror_r' follow /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `connectDBStart': fe-connect.c:(.text+0x37d9): undefined reference to `pg_link_canary_is_frontend' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `PQsetClientEncoding': fe-connect.c:(.text+0x3fc2): undefined reference to `pg_sprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x4018): undefined reference to `pg_get_encoding_from_locale' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x401f): undefined reference to `pg_encoding_to_char' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `parseServiceInfo': fe-connect.c:(.text+0x4242): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x4311): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `connectOptions2': fe-connect.c:(.text+0x55f0): undefined reference to `pg_strip_crlf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5832): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5e76): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5e96): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5ead): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5ec0): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5ecf): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5f6b): undefined reference to `pg_get_encoding_from_locale' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-connect.c:(.text+0x5f72): undefined reference to `pg_encoding_to_char' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `defaultNoticeProcessor': fe-connect.c:(.text+0x277): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-connect.o): in function `pqGetHomeDirectory': fe-connect.c:(.text+0x4134): undefined reference to `pg_get_user_home_dir' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `PQescapeStringInternal': fe-exec.c:(.text+0x4c0): undefined reference to `pg_encoding_mblen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `PQescapeInternal': fe-exec.c:(.text+0x733): undefined reference to `pg_encoding_mblen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0x819): undefined reference to `pg_encoding_mblen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `pqInternalNotice': fe-exec.c:(.text+0x1c70): undefined reference to `pg_vsnprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0x1d12): undefined reference to `pg_sprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `pqSaveParameterStatus': fe-exec.c:(.text+0x2394): undefined reference to `pg_char_to_encoding' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-exec.o): in function `PQfnumber': fe-exec.c:(.text+0x3cb7): undefined reference to `pg_tolower' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-exec.c:(.text+0x3d91): undefined reference to `pg_tolower' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-lobj.o): in function `lo_import_internal': fe-lobj.c:(.text+0xe92): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-lobj.c:(.text+0xef6): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-lobj.o): in function `lo_export': fe-lobj.c:(.text+0x12e1): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-lobj.c:(.text+0x1371): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-lobj.c:(.text+0x13a1): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o):fe-misc.c:(.text+0x1fb): more undefined references to `pg_strerror_r' follow /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQmblenBounded': fe-misc.c:(.text+0xeea): undefined reference to `pg_encoding_mblen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQenv2encoding': fe-misc.c:(.text+0xf39): undefined reference to `pg_char_to_encoding' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQmblen': fe-misc.c:(.text+0xed9): undefined reference to `pg_encoding_mblen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-misc.o): in function `PQdsplen': fe-misc.c:(.text+0xf09): undefined reference to `pg_encoding_dsplen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-protocol3.o): in function `build_startup_packet': fe-protocol3.c:(.text+0x594): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-protocol3.o): in function `pqBuildErrorMessage3': fe-protocol3.c:(.text+0xabd): undefined reference to `pg_encoding_max_length' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol3.c:(.text+0xb30): undefined reference to `pg_encoding_dsplen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-protocol3.c:(.text+0xf7b): undefined reference to `pg_encoding_dsplen' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o): in function `pqTraceOutputInt32': fe-trace.c:(.text+0x63): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-trace.c:(.text+0x8c): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o): in function `pqTraceOutputNchar': fe-trace.c:(.text+0xcd): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-trace.c:(.text+0x11b): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-trace.c:(.text+0x155): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o):fe-trace.c:(.text+0x1d3): more undefined references to `pg_fprintf' follow /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o): in function `pqTraceFormatTimestamp.constprop.0': fe-trace.c:(.text+0x2e1): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o): in function `pqTraceOutputNR.constprop.0': fe-trace.c:(.text+0x334): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-trace.c:(.text+0x34d): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-trace.c:(.text+0x3a3): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o): in function `pqTraceOutputMessage': fe-trace.c:(.text+0x53f): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-trace.c:(.text+0x587): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-trace.o):fe-trace.c:(.text+0x5b9): more undefined references to `pg_fprintf' follow /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(pqexpbuffer.o): in function `printfPQExpBuffer': pqexpbuffer.c:(.text+0x28d): undefined reference to `pg_vsnprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(pqexpbuffer.o): in function `appendPQExpBuffer': pqexpbuffer.c:(.text+0x415): undefined reference to `pg_vsnprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `SSLerrmessage': fe-secure-openssl.c:(.text+0x34): undefined reference to `ERR_reason_error_string' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x72): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x95): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `ssl_protocol_version_to_openssl': fe-secure-openssl.c:(.text+0xbf): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xd9): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xf3): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x10d): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `initialize_SSL': fe-secure-openssl.c:(.text+0x170): undefined reference to `TLS_method' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x178): undefined reference to `SSL_CTX_new' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1a1): undefined reference to `SSL_CTX_set_default_passwd_cb' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1ac): undefined reference to `SSL_CTX_set_default_passwd_cb_userdata' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1b9): undefined reference to `SSL_CTX_set_options' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1f7): undefined reference to `SSL_CTX_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x269): undefined reference to `SSL_new' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x286): undefined reference to `SSL_set_ex_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2ad): undefined reference to `BIO_new' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2c4): undefined reference to `BIO_set_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2d6): undefined reference to `SSL_set_bio' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2e9): undefined reference to `BIO_int_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2f8): undefined reference to `SSL_CTX_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x352): undefined reference to `SSL_clear_options' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x3e4): undefined reference to `ENGINE_by_id' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x3fc): undefined reference to `ENGINE_init' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x417): undefined reference to `ENGINE_load_private_key' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x42f): undefined reference to `SSL_use_PrivateKey' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x4f1): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x554): undefined reference to `SSL_CTX_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x562): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x5a7): undefined reference to `SSL_CTX_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x6a8): undefined reference to `SSL_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x6b7): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x739): undefined reference to `SSL_check_private_key' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x747): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x7c4): undefined reference to `SSL_set_verify' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x7ec): undefined reference to `SSL_CTX_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x7fa): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x849): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x859): undefined reference to `BIO_s_socket' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x861): undefined reference to `BIO_get_new_index' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x87b): undefined reference to `BIO_meth_new' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x89a): undefined reference to `BIO_meth_set_write' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8b5): undefined reference to `BIO_meth_set_read' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8c5): undefined reference to `BIO_meth_get_gets' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8d4): undefined reference to `BIO_meth_set_gets' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8e4): undefined reference to `BIO_meth_get_puts' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x8f3): undefined reference to `BIO_meth_set_puts' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x903): undefined reference to `BIO_meth_get_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x912): undefined reference to `BIO_meth_set_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x91e): undefined reference to `BIO_meth_get_create' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x92d): undefined reference to `BIO_meth_set_create' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x939): undefined reference to `BIO_meth_get_destroy' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x948): undefined reference to `BIO_meth_set_destroy' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x954): undefined reference to `BIO_meth_get_callback_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x963): undefined reference to `BIO_meth_set_callback_ctrl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x988): undefined reference to `BIO_meth_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x998): undefined reference to `ERR_new' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9b0): undefined reference to `ERR_set_debug' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9c3): undefined reference to `ERR_set_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x9c8): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa16): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa21): undefined reference to `SSL_set_options' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa31): undefined reference to `ERR_new' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa59): undefined reference to `SSL_CTX_load_verify_locations' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xa6a): undefined reference to `SSL_CTX_get_cert_store' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xaae): undefined reference to `ERR_clear_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xadf): undefined reference to `SSL_CTX_use_certificate_chain_file' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xb29): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xb84): undefined reference to `SSL_use_PrivateKey_file' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xb92): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xbb1): undefined reference to `SSL_use_PrivateKey_file' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc1a): undefined reference to `X509_STORE_load_locations' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc28): undefined reference to `ERR_clear_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc45): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xc68): undefined reference to `SSL_CTX_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xcb9): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xcd7): undefined reference to `X509_STORE_set_flags' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xd43): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xd8c): undefined reference to `ENGINE_finish' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xd98): undefined reference to `ENGINE_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xdad): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xded): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xe32): undefined reference to `SSL_CTX_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xe5b): undefined reference to `SSL_CTX_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xe65): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xead): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xf02): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xf2e): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `my_sock_read': fe-secure-openssl.c:(.text+0xfad): undefined reference to `BIO_get_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xfce): undefined reference to `BIO_clear_flags' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0xffa): undefined reference to `BIO_set_flags' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `my_sock_write': fe-secure-openssl.c:(.text+0x101d): undefined reference to `BIO_get_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x103e): undefined reference to `BIO_clear_flags' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x106a): undefined reference to `BIO_set_flags' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_read': fe-secure-openssl.c:(.text+0x10d7): undefined reference to `ERR_clear_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x10ea): undefined reference to `SSL_read' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x10fc): undefined reference to `SSL_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1111): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x119b): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_read_pending': fe-secure-openssl.c:(.text+0x12ac): undefined reference to `SSL_pending' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_write': fe-secure-openssl.c:(.text+0x12f8): undefined reference to `ERR_clear_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1309): undefined reference to `SSL_write' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x131b): undefined reference to `SSL_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1361): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x144d): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_get_peer_certificate_hash': fe-secure-openssl.c:(.text+0x14fb): undefined reference to `X509_get_signature_nid' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1509): undefined reference to `OBJ_find_sigid_algs' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x152c): undefined reference to `OBJ_nid2sn' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1534): undefined reference to `EVP_get_digestbyname' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1555): undefined reference to `X509_digest' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x15f1): undefined reference to `EVP_sha256' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1645): undefined reference to `OBJ_nid2sn' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_verify_peer_name_matches_certificate_guts': fe-secure-openssl.c:(.text+0x1707): undefined reference to `X509_get_ext_d2i' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x171b): undefined reference to `OPENSSL_sk_num' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x175a): undefined reference to `OPENSSL_sk_value' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1792): undefined reference to `ASN1_STRING_get0_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17a1): undefined reference to `ASN1_STRING_length' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17e7): undefined reference to `GENERAL_NAME_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x17f3): undefined reference to `OPENSSL_sk_pop_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1817): undefined reference to `ASN1_STRING_get0_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1826): undefined reference to `ASN1_STRING_length' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1853): undefined reference to `GENERAL_NAME_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x185b): undefined reference to `OPENSSL_sk_pop_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x186f): undefined reference to `X509_get_subject_name' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1889): undefined reference to `X509_NAME_get_index_by_NID' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x18fb): undefined reference to `X509_NAME_get_entry' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1903): undefined reference to `X509_NAME_ENTRY_get_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1917): undefined reference to `ASN1_STRING_get0_data' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1922): undefined reference to `ASN1_STRING_length' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x196f): undefined reference to `GENERAL_NAME_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1977): undefined reference to `OPENSSL_sk_pop_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_init': fe-secure-openssl.c:(.text+0x1a60): undefined reference to `OPENSSL_init_ssl' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_close': fe-secure-openssl.c:(.text+0x1aa2): undefined reference to `SSL_shutdown' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1aae): undefined reference to `SSL_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1ad1): undefined reference to `X509_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1aed): undefined reference to `ENGINE_finish' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1af9): undefined reference to `ENGINE_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1b3d): undefined reference to `X509_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1b59): undefined reference to `ENGINE_finish' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1b65): undefined reference to `ENGINE_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `pgtls_open_client': fe-secure-openssl.c:(.text+0x1bb2): undefined reference to `ERR_clear_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1bbe): undefined reference to `SSL_connect' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1bd4): undefined reference to `SSL_get1_peer_certificate' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1cd3): undefined reference to `SSL_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1cdb): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1d59): undefined reference to `ERR_get_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x1e70): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `PQsslAttribute': fe-secure-openssl.c:(.text+0x2033): undefined reference to `SSL_get_current_cipher' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x2040): undefined reference to `SSL_CIPHER_get_bits' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x205a): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x206c): undefined reference to `SSL_get_current_cipher' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x209b): undefined reference to `SSL_get_current_compression' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `PQdefaultSSLKeyPassHook_OpenSSL': fe-secure-openssl.c:(.text+0x2144): undefined reference to `pg_fprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-openssl.o): in function `PQsslAttribute': fe-secure-openssl.c:(.text+0x201e): undefined reference to `SSL_get_version' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-openssl.c:(.text+0x208a): undefined reference to `SSL_CIPHER_get_name' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `scram_exchange': fe-auth-scram.c:(.text+0x1b2): undefined reference to `pg_strong_random' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1c4): undefined reference to `pg_b64_enc_len' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x1f2): undefined reference to `pg_b64_encode' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x38d): undefined reference to `pg_b64_dec_len' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x3be): undefined reference to `pg_b64_decode' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x412): undefined reference to `pg_hmac_create' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x437): undefined reference to `scram_ServerKey' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x44f): undefined reference to `pg_hmac_init' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x471): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x490): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x4b9): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x4d1): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x4f3): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x510): undefined reference to `pg_hmac_final' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x520): undefined reference to `pg_hmac_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x68f): undefined reference to `pg_b64_dec_len' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x6c8): undefined reference to `pg_b64_decode' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x7dc): undefined reference to `pg_hmac_create' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x811): undefined reference to `scram_SaltedPassword' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x83b): undefined reference to `scram_ClientKey' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x867): undefined reference to `scram_H' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x881): undefined reference to `pg_hmac_init' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x8aa): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x8c6): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x8ef): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x90b): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x92d): undefined reference to `pg_hmac_update' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x94a): undefined reference to `pg_hmac_final' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x98b): undefined reference to `pg_hmac_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x9a4): undefined reference to `pg_b64_enc_len' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x9d6): undefined reference to `pg_b64_encode' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xb4c): undefined reference to `pg_hmac_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xb59): undefined reference to `pg_hmac_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xc10): undefined reference to `pg_hmac_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xc1d): undefined reference to `pg_hmac_free' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xd3e): undefined reference to `pg_b64_enc_len' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xd7d): undefined reference to `pg_b64_encode' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xde3): undefined reference to `pg_hmac_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0xe5b): undefined reference to `pg_hmac_error' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `scram_init': fe-auth-scram.c:(.text+0xfaa): undefined reference to `pg_saslprep' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth-scram.o): in function `pg_fe_scram_build_secret': fe-auth-scram.c:(.text+0x1084): undefined reference to `pg_saslprep' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x10a3): undefined reference to `pg_strong_random' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth-scram.c:(.text+0x10bf): undefined reference to `scram_build_secret' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-common.o): in function `pq_verify_peer_name_matches_certificate_name': fe-secure-common.c:(.text+0x107): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-common.c:(.text+0x16d): undefined reference to `pg_strcasecmp' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure-common.o): in function `pq_verify_peer_name_matches_certificate_ip': fe-secure-common.c:(.text+0x26e): undefined reference to `pg_inet_net_ntop' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure-common.c:(.text+0x35a): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /root/.cabal/store/ghc-9.0.2/postgresql-libpq-0.9.5.0-eb3360c8d6ae5eab990a178b0ea0969f8eef77ceb0ad076f1b15f185b75a0abf/lib/libHSpostgresql-libpq-0.9.5.0-eb3360c8d6ae5eab990a178b0ea0969f8eef77ceb0ad076f1b15f185b75a0abf.a(LibPQ.o): in function `postgresqlzmlibpqzm0zi9zi5zi0zmeb3360c8d6ae5eab990a178b0ea0969f8eef77ceb0ad076f1b15f185b75a0abf_DatabaseziPostgreSQLziLibPQ_clientEncoding1_info': (.text+0x744e): undefined reference to `pg_encoding_to_char' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /root/.cabal/store/ghc-9.0.2/postgresql-libpq-0.9.5.0-eb3360c8d6ae5eab990a178b0ea0969f8eef77ceb0ad076f1b15f185b75a0abf/lib/libHSpostgresql-libpq-0.9.5.0-eb3360c8d6ae5eab990a178b0ea0969f8eef77ceb0ad076f1b15f185b75a0abf.a(FFI.o): in function `postgresqlzmlibpqzm0zi9zi5zi0zmeb3360c8d6ae5eab990a178b0ea0969f8eef77ceb0ad076f1b15f185b75a0abf_DatabaseziPostgreSQLziLibPQziFFI_czupgzuencodingzutozuchar_info': (.text+0x6a3a): undefined reference to `pg_encoding_to_char' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure.o): in function `pqsecure_raw_read': fe-secure.c:(.text+0x10c): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-secure.o): in function `pqsecure_raw_write.part.0': fe-secure.c:(.text+0x4d7): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure.c:(.text+0x530): undefined reference to `pg_strerror_r' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-secure.c:(.text+0x549): undefined reference to `pg_snprintf' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `pg_fe_sendauth': fe-auth.c:(.text+0x6ae): undefined reference to `pg_md5_encrypt' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: fe-auth.c:(.text+0x6cd): undefined reference to `pg_md5_encrypt' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `pg_fe_getusername': fe-auth.c:(.text+0x8f3): undefined reference to `pg_get_user_name' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `PQencryptPassword': fe-auth.c:(.text+0x9f5): undefined reference to `pg_md5_encrypt' /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libpq.a(fe-auth.o): in function `PQencryptPasswordConn': fe-auth.c:(.text+0xaee): undefined reference to `pg_md5_encrypt' collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) ```

It appears that the pg_strcasecmp is undefined:

/ # nm /usr/lib/libpq.a | grep pg_strcasecmp
                 U pg_strcasecmp
                 U pg_strcasecmp
                 U pg_strcasecmp
                 U pg_strcasecmp
SamuelMarks commented 5 months ago

I'm getting the same issue; did you end up resolving it?