[Haskell-cafe] HDBC-ODBC build/install problem.
edward.ing at gmail.com
Thu Jul 12 17:35:36 EDT 2007
I am trying to make HaskellDB work with HDBC-ODBC.
I did builds of HDBC/HDBC-ODBC. But when I am building
HaskellDB-HDBC-ODBC, I get the following message.
"[1 of 1] Compiling Database.HaskellDB.HDBC.ODBC (
Declaration for connectODBC:
Failed to load interface for `Database.HDBC.ODBC.ConnectionImpl':
Use -v to see a list of the files searched for.
Cannot continue after interface file error"
>From this, I know the problem is the linkage between
Database.HDBC.ODBC.Connection and Database.HDBC.ODBC.ConnectionImple.
(Also I looked at the code to see the reference.)
I did a little further investigation. I looked at the package registry
notice that ConnectionImpl.hi is not there.
I went back to the build directory and did find ConnectoinImpl.hi and
It seems like runghc Setup.hs install, did not install ConnectionImpl.hi.
I looked into the file named ".installed-pkg-config" and I saw this:
import-dirs: "C:\\Program Files\\Haskell\\HDBC-odbc-220.127.116.11\\ghc-6.6.1"
library-dirs: "C:\\Program Files\\Haskell\\HDBC-odbc-18.104.22.168\\ghc-6.6.1"
No mention of ConnectionImple.hi. It looks like the setup up script
did not install ConnectionImpl.hi.
Did ConnectionImpl.o get bound into "libHSHDBC-odbc-22.214.171.124.a" even
though ConnectionImpl.hi did not get successfully installed?
Does anyone know why the install target does not install
ConnectionImpl.hi and how I can get around this problem?
(Where is the odbc32 to be found anyways?)
Here are a few things I did try which did NOT work:
1. Copy ConnectionImpl.hi over manually. HaskellDB-HDBC-ODBC builds,
but at runtime there is a link error.
2. Manually alter ".installed-pkg-config" to add ConnectionImpl.hi as
Please comment on why these would not work ( I will learn from this.)
Help would be appreciated.
More information about the Haskell-Cafe