Fw: hdbc odbc also crashes on 6.8.2 Re: [Haskell-cafe] HDBC-ODBC crashes on ghc 6.8
I just tried HDBC-ODBC on 6.8.2, but it still crashes. Works on 6.6.1. thomas. Thomas Hartman <thomas.hartman+external@db.com> Sent by: haskell-cafe-bounces@haskell.org 11/19/2007 12:05 PM To haskell-cafe@haskell.org cc Subject [Haskell-cafe] HDBC-ODBC crashes on ghc 6.8 This minimal program below fails in 6.8.1, works for 6.6.1, for up to date HDBC-ODBC-1.1.3. (I tried installing both from package and from darcs head) Installed and running from cygwin. When I run it as runghc fail.hs I get a windows popup error "ghc.exe has encountered a problem and needs to close, sorry for the inconvenience". ghci, same behavior. When I run it as ghc -e 'main' fail.hs, I don't get a popup window, and no error message is output, but it fails all the same. (I know this because more complicated, non-minimal programs, fail.) So this would seem to be a problem with ghc 6.8.1. $ cat fail.hs import Database.HDBC import Database.HDBC.ODBC main = connectODBC "some valid connect string, works when run from 6.6.1, not from 6.8.1" --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
On Dec 14, 2007 12:37 PM, Thomas Hartman <thomas.hartman@db.com> wrote:
I just tried HDBC-ODBC on 6.8.2, but it still crashes. Works on 6.6.1.
thomas.
Hi Thomas, I tried to compile your minimal app on 6.8.2 and get the following result. C:\Temp>ghc --make TestHDBC.hs Linking TestHDBC.exe ... C:\Program Files\Haskell\HDBC- odbc-1.1.3.0\ghc-6.8.2/libHSHDBC-odbc-1.1.3.0.a(Co nnection.o)(.text+0x52c):fake: undefined reference to `SQLAllocHandle' C:\Program Files\Haskell\HDBC- odbc-1.1.3.0\ghc-6.8.2/libHSHDBC-odbc-1.1.3.0.a(Co nnection.o)(.text+0x5b8):fake: undefined reference to `SQLSetEnvAttr' ... (long list of undefined references)... When running it using "ghc -e main" it gives no error, but when compiling I get those undefined reference errors. The functions listed here are defined in ghc-lib\libodbc32.a and using "filemon" I could see that the library is found and opened from ld.exe during linking. I don't understand why it cannot link to those functions. Olivier.
participants (2)
-
Olivier Boudry -
Thomas Hartman