Skip to content

unable to run basic example under nix #159

@zoranbosnjak

Description

@zoranbosnjak

Steps to reproduce:

nix-channel --update
nix-env --upgrade
git clone https://github.com/deech/fltkhs-hello-world.git
cd fltkhs-hello-world/
cabal2nix --shell . > shell.nix
nix-shell
runhaskell -Wall src/hello-world.hs

It fails with the following error:

hello-world.hs: <command line>: can't load .so/.DLL for: /nix/store/pf87mjvij555an8693knn0846hfprvgq-fltkhs-0.8.0.2/lib/ghc-8.6.5/x86_64-linux-ghc-8.6.5/libHSfltkhs-0.8.0.2-GIFoDRNrKJ515glQJcJQyn-ghc8.6.5.so (/nix/store/pf87mjvij555an8693knn0846hfprvgq-fltkhs-0.8.0.2/lib/ghc-8.6.5/x86_64-linux-ghc-8.6.5/libHSfltkhs-0.8.0.2-GIFoDRNrKJ515glQJcJQyn-ghc8.6.5.so: undefined symbol: Fl_Adjuster_New)

The same problem is with any compiled program which depends on fltkhs. It fails in runtime with the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions