Skip to content

Missing entry point libintl_gettext when postgresql-libpq is used from GHCi or Template Haskell on Windows #14

Description

@joeyadams

On Windows 8 (64-bit), PostgreSQL 9.3 (32-bit), GHC 7.6.3 (32-bit), and Cabal 1.18.0.2 (32-bit), I get an error window when I cabal install postgresql-simple:

The procedure entry point libintl_gettext could not be located in the dynamic link library C:\Program Files (x86)\PostgreSQL\9.3\bin\libpq.DLL

I get the same error if I open ghci and run the following:

import Database.PostgreSQL.LibPQ
connectdb undefined

Compiling an executable does not produce this error. Only when it's interpreted (GHCi or Template Haskell) does this error come up.

I suspect GHC's flaky home-made linker is at fault. Hopefully this bug will go away when GHC 7.8 is released (which I hear will have better linker support). In the mean time, maybe there's some workaround that will get the dependencies of libpq.dll to load.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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