Skip to content

local packages with c-sources give runtime errors in stack ghci #1239

@vagifverdi

Description

@vagifverdi

if you point to a package source code located on the hard drive and that package has c source files, it will give runtime errors in stack ghci.

For example hdbc-odbc errors out in stack ghci when trying to connect to db. It gives following error:

/usr/local/lib/ghc-7.10.2/bin/ghc: symbol lookup error: /tmp/ghc25980_0/libghc_1.so: undefined symbol: SQLSetConnectAttr

The function SQLSetConnectAttr is calling a c module hdbc-odbc-helper.c that is bundled with hdbc-odbc package.

Loading hdbc-odbc from hackage works fine in stack ghci.

Stack build also works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions