Skip to content

haskellPackages.postgresql-libpq fails to link on Darwin #50902

@endgame

Description

@endgame

Issue description

The macOS build of haskellPackages.postgresql-libpq fails to link in recent nixpkgs; it looks like something's wrong with (at least) the smoke tests:

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)

Full build.log

Steps to reproduce

This nix expression fails to build on macOS:

let
  nixpkgs = import (builtins.fetchTarball {
    url = "https://github.com/NixOS/nixpkgs/archive/5632aad4739c2fc342ea280cee47b5213f799491.zip";
    sha256 = "0zfzfhmbshdkgi5pl5sxh1l8r8m13vwgwsyafbixvc6pcc4sdrh3";
  }) {};
in
  nixpkgs.haskellPackages.postgresql-libpq

This is a regression: i can successfully enter a nix-shell using this package if I use an 18.09 channel.

Technical details

nix-info -m:

 - system: `"x86_64-darwin"`
 - host os: `Darwin 17.7.0, macOS 10.13.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.1.3`
 - channels(che347): `"nixpkgs-19.03pre159614.f52b7f5c345, nixpkgs-18.09-darwin-18.09pre152973.012b9e6c219"`
 - nixpkgs: `/Users/che347/.nix-defexpr/channels/nixpkgs`

I am not sure how best to proceed. Please let me know if I can provide more useful information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: darwinRunning or building packages on Darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions