these derivations will be built:
  /nix/store/xmm3a1x66z02s1fpxh0qdssdwnx4bk7k-postgresql-libpq-0.9.4.2.drv
building '/nix/store/xmm3a1x66z02s1fpxh0qdssdwnx4bk7k-postgresql-libpq-0.9.4.2.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4.
unpacking sources
unpacking source archive /nix/store/rmhp110gcgmsd18b5a7l28vy3mpvdg0k-postgresql-libpq-0.9.4.2.tar.gz
source root is postgresql-libpq-0.9.4.2
setting SOURCE_DATE_EPOCH to timestamp 1537823374 of file postgresql-libpq-0.9.4.2/test/Smoke.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/var/folders/3m/9syglhc96qg7ydzvx9fl3rwc00n97t/T/nix-build-postgresql-libpq-0.9.4.2.drv-0/setup-package.conf.d -j8 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /private/var/folders/3m/9syglhc96qg7ydzvx9fl3rwc00n97t/T/nix-build-postgresql-libpq-0.9.4.2.drv-0/Main.o )
Linking Setup ...
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
configuring
configureFlags: --verbose --prefix=/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/iyfk7bifzn1gnhzza8nhl2wapnk7psjd-postgresql-libpq-0.9.4.2-doc/share/doc/postgresql-libpq-0.9.4.2 --with-gcc=clang --package-db=/private/var/folders/3m/9syglhc96qg7ydzvx9fl3rwc00n97t/T/nix-build-postgresql-libpq-0.9.4.2.drv-0/package.conf.d --ghc-option=-j8 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --enable-library-for-ghci --extra-include-dirs=/nix/store/7byyiriy3h4paqkwwirzmkah4hkshy50-libc++-5.0.2/include --extra-lib-dirs=/nix/store/7byyiriy3h4paqkwwirzmkah4hkshy50-libc++-5.0.2/lib --extra-include-dirs=/nix/store/mi8p727ld84aq2y3v2x38k0f8k7z2hyy-libc++abi-5.0.2/include --extra-lib-dirs=/nix/store/mi8p727ld84aq2y3v2x38k0f8k7z2hyy-libc++abi-5.0.2/lib --extra-include-dirs=/nix/store/fjayi92cpzzmhzg672bpr532ijgd85jn-compiler-rt-5.0.2-dev/include --extra-lib-dirs=/nix/store/dyl7pzzkw25ba045bswa7fn146z7n8hp-compiler-rt-5.0.2/lib --extra-lib-dirs=/nix/store/20jqad4a9i58gpdc74hls4i0279q6cyg-ncurses-6.1/lib --extra-lib-dirs=/nix/store/m54n5xacv8hb03h6gfswhp3jpn57f33h-gmp-6.1.2/lib --extra-include-dirs=/nix/store/47i4c9qc0bplgkqpibm2fqiynvj6ic2k-libiconv-osx-10.11.6/include --extra-lib-dirs=/nix/store/47i4c9qc0bplgkqpibm2fqiynvj6ic2k-libiconv-osx-10.11.6/lib --extra-include-dirs=/nix/store/lqpw2ynma3nqczljyn01v9jclc341lkk-postgresql-9.6.10/include --extra-lib-dirs=/nix/store/lqpw2ynma3nqczljyn01v9jclc341lkk-postgresql-9.6.10/lib --extra-lib-dirs=/nix/store/a5wmqj78mn9zj2x2b2d62frs7rga1aqi-postgresql-9.6.10-lib/lib --extra-framework-dirs=/nix/store/sx6zb5krz3r3cz3zxx43kswmdpgph09j-swift-corefoundation/Library/Frameworks
Using Parsec parser
Configuring postgresql-libpq-0.9.4.2...
Flags chosen: use-pkg-config=False
Dependency base >=4.3 && <4.13: using base-4.11.1.0
Dependency bytestring >=0.9.1.0 && <0.11: using bytestring-0.10.8.2
Dependency postgresql-libpq -any: using postgresql-libpq-0.9.4.2
Dependency unix >=2.4.2.0 && <2.8: using unix-2.7.2.2
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Source component graph:
    component lib
    component test:smoke dependency lib
Configured component graph:
    component postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
        include base-4.11.1.0
        include bytestring-0.10.8.2
        include unix-2.7.2.2
    component postgresql-libpq-0.9.4.2-K70ng8f6bfYC3FTYbFV9pz-smoke
        include base-4.11.1.0
        include bytestring-0.10.8.2
        include postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
Linked component graph:
    unit postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
        include base-4.11.1.0
        include bytestring-0.10.8.2
        include unix-2.7.2.2
        Database.PostgreSQL.LibPQ=postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ:Database.PostgreSQL.LibPQ,Database.PostgreSQL.LibPQ.Internal=postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ:Database.PostgreSQL.LibPQ.Internal
    unit postgresql-libpq-0.9.4.2-K70ng8f6bfYC3FTYbFV9pz-smoke
        include base-4.11.1.0
        include bytestring-0.10.8.2
        include postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
Ready component graph:
    definite postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
        depends base-4.11.1.0
        depends bytestring-0.10.8.2
        depends unix-2.7.2.2
    definite postgresql-libpq-0.9.4.2-K70ng8f6bfYC3FTYbFV9pz-smoke
        depends base-4.11.1.0
        depends bytestring-0.10.8.2
        depends postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
Using Cabal-2.2.0.1 compiled by ghc-8.4
Using compiler: ghc-8.4.4
Using install prefix:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2
Executables installed in:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2/bin
Libraries installed in:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2/lib/ghc-8.4.4/x86_64-osx-ghc-8.4.4/postgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ
Dynamic Libraries installed in:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2/lib/ghc-8.4.4/x86_64-osx-ghc-8.4.4
Private executables installed in:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2/libexec/x86_64-osx-ghc-8.4.4/postgresql-libpq-0.9.4.2
Data files installed in:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2/share/x86_64-osx-ghc-8.4.4/postgresql-libpq-0.9.4.2
Documentation installed in:
/nix/store/iyfk7bifzn1gnhzza8nhl2wapnk7psjd-postgresql-libpq-0.9.4.2-doc/share/doc/postgresql-libpq-0.9.4.2
Configuration files installed in:
/nix/store/ji1cc8g4hi70gm9vq5pipg96s2h95f3w-postgresql-libpq-0.9.4.2/etc
No alex found
Using ar found on system at:
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 4.2.1 given by user at:
/nix/store/x635971ap4wa3d4bfgchjhw4p3203krl-clang-wrapper-5.0.2/bin/clang
Using ghc version 8.4.4 found on system at:
/nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4/bin/ghc
Using ghc-pkg version 8.4.4 found on system at:
/nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4/bin/hpc
Using hsc2hs version 0.68.3 found on system at:
/nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/qyc3akgx0nafnfzp4bcyp9sdqjmii3zs-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/vfrqlagyhg5if7vx22n76iq6zcawb4ml-cctools-binutils-darwin-wrapper/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using runghc version 8.4.4 found on system at:
/nix/store/n3qf8cjfcl334libg0zydh77hxycahz8-ghc-8.4.4/bin/runghc
Using strip found on system at:
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/strip
Using tar found on system at:
/nix/store/qx791im60bl7py3wmhmyw6pslj906yyc-gnutar-1.30/bin/tar
No uhc found
building
Preprocessing library for postgresql-libpq-0.9.4.2..
Building library for postgresql-libpq-0.9.4.2..
[1 of 2] Compiling Database.PostgreSQL.LibPQ.Internal ( src/Database/PostgreSQL/LibPQ/Internal.hs, dist/build/Database/PostgreSQL/LibPQ/Internal.o )
[2 of 2] Compiling Database.PostgreSQL.LibPQ ( dist/build/Database/PostgreSQL/LibPQ.hs, dist/build/Database/PostgreSQL/LibPQ.o )
[1 of 2] Compiling Database.PostgreSQL.LibPQ.Internal ( src/Database/PostgreSQL/LibPQ/Internal.hs, dist/build/Database/PostgreSQL/LibPQ/Internal.p_o )
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
ld: warning: /nix/store/47i4c9qc0bplgkqpibm2fqiynvj6ic2k-libiconv-osx-10.11.6/lib/libiconv.dylib, ignoring unexpected dylib file
[2 of 2] Compiling Database.PostgreSQL.LibPQ ( dist/build/Database/PostgreSQL/LibPQ.hs, dist/build/Database/PostgreSQL/LibPQ.p_o )
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
ld: warning: /nix/store/47i4c9qc0bplgkqpibm2fqiynvj6ic2k-libiconv-osx-10.11.6/lib/libiconv.dylib, ignoring unexpected dylib file
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
ld: warning: /nix/store/47i4c9qc0bplgkqpibm2fqiynvj6ic2k-libiconv-osx-10.11.6/lib/libiconv.dylib, ignoring unexpected dylib file
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Win32Utils.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(consUtils.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(longlong.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(ProfilerReport.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(OldARMAtomic.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(RtsDllMain.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Trace.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(ProfilerReportJson.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(LdvProfile.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(RetainerProfile.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Disassembler.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(RetainerSet.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Profiling.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Scav_thr.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Sanity.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Evac_thr.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(EventLog.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_util.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_reloc.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_plt_arm.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(Elf.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_got.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_plt_aarch64.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_plt.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(PEi386.o) has no symbols
/nix/store/yrfbkz6qynf0frw1zf1mcxlv76h0f7dj-cctools-binutils-darwin/bin/ranlib: file: dist/build/libHSpostgresql-libpq-0.9.4.2-1ElhWSgBlqQImeIskHNSpZ-ghc8.4.4.a(elf_reloc_aarch64.o) has no symbols
Preprocessing test suite 'smoke' for postgresql-libpq-0.9.4.2..
Building test suite 'smoke' for postgresql-libpq-0.9.4.2..
[1 of 1] Compiling Main             ( test/Smoke.hs, dist/build/smoke/smoke-tmp/Main.o )
Linking dist/build/smoke/smoke ...
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
  "_ASN1_STRING_length", referenced from:
      _verify_peer_name_matches_certificate_name in libpq.a(fe-secure-openssl.o)
  "_BIO_clear_flags", referenced from:
      _my_sock_read in libpq.a(fe-secure-openssl.o)
      _my_sock_write in libpq.a(fe-secure-openssl.o)
  "_BIO_set_flags", referenced from:
      _my_sock_read in libpq.a(fe-secure-openssl.o)
      _my_sock_write in libpq.a(fe-secure-openssl.o)
  "_SSL_library_init", referenced from:
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_SSL_load_error_strings", referenced from:
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_CRYPTO_num_locks", referenced from:
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_SSL_write", referenced from:
      _pgtls_write in libpq.a(fe-secure-openssl.o)
  "_ERR_reason_error_string", referenced from:
      _SSLerrmessage in libpq.a(fe-secure-openssl.o)
  "_SSL_CTX_free", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_pending", referenced from:
      _pgtls_read_pending in libpq.a(fe-secure-openssl.o)
  "_X509_get_ext_d2i", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_free", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
  "_SSL_CTX_get_cert_store", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_CRYPTO_get_id_callback", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_CRYPTO_set_id_callback", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_SSL_shutdown", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
  "_SSL_set_ex_data", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSLv23_method", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_free", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
  "_SSL_CTX_new", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_get_error", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
      _pgtls_read in libpq.a(fe-secure-openssl.o)
      _pgtls_write in libpq.a(fe-secure-openssl.o)
  "_sk_value", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_CTX_ctrl", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_CTX_use_certificate_chain_file", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_BIO_s_socket", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ENGINE_by_id", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ASN1_STRING_data", referenced from:
      _verify_peer_name_matches_certificate_name in libpq.a(fe-secure-openssl.o)
  "_ENGINE_init", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ENGINE_load_private_key", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_CRYPTO_set_locking_callback", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_SSL_use_PrivateKey_file", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ENGINE_finish", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
      _pgtls_close in libpq.a(fe-secure-openssl.o)
  "_sk_free", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_CTX_load_verify_locations", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_use_PrivateKey", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_set_bio", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_get_subject_name", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_new", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_NAME_get_entry", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_BIO_new", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_STORE_load_locations", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_STORE_set_flags", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_connect", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ERR_clear_error", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
      _pgtls_read in libpq.a(fe-secure-openssl.o)
      _pgtls_write in libpq.a(fe-secure-openssl.o)
  "_ERR_get_error", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
      _pgtls_read in libpq.a(fe-secure-openssl.o)
      _pgtls_write in libpq.a(fe-secure-openssl.o)
  "_BIO_int_ctrl", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_OPENSSL_config", referenced from:
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_SSL_check_private_key", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_get_peer_certificate", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_ctrl", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_NAME_ENTRY_get_data", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_set_verify", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ERR_put_error", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_X509_NAME_get_index_by_NID", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_SSL_read", referenced from:
      _pgtls_read in libpq.a(fe-secure-openssl.o)
  "_CRYPTO_get_locking_callback", referenced from:
      _pgtls_close in libpq.a(fe-secure-openssl.o)
      _pgtls_init in libpq.a(fe-secure-openssl.o)
  "_sk_num", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
  "_ENGINE_free", referenced from:
      _pgtls_open_client in libpq.a(fe-secure-openssl.o)
      _pgtls_close in libpq.a(fe-secure-openssl.o)
ld: symbol(s) not found for architecture x86_64
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
builder for '/nix/store/xmm3a1x66z02s1fpxh0qdssdwnx4bk7k-postgresql-libpq-0.9.4.2.drv' failed with exit code 1
error: build of '/nix/store/xmm3a1x66z02s1fpxh0qdssdwnx4bk7k-postgresql-libpq-0.9.4.2.drv' failed
