HSQL / MySQL Problem (was GHCI Problem)

/ Can anyone tell me why ghci has this problem whereas ghc itself doesn't and />/ how I fix it. />/ />/ Thanks, Dominic. />/ />/ [dom at tility http://www.haskell.org/mailman/listinfo/libraries LAMH]$ ghci -package hsql-mysql />/ ___ ___ _ />/ / _ \ /\ /\/ __(_) />/ / /_\// /_/ / / | | GHC Interactive, version 6.4, for Haskell 98. />/ / /_\\/ __ / /___| | http://www.haskell.org/ghc/ />/ \____/\/ /_/\____/|_| Type :? for help. />/ />/ Loading package base-1.0 ... linking ... done. />/ Loading package hsql-1.6 ... linking ... done. />/ Loading package hsql-mysql-1.6 ... ghc-6.4: can't load .so/.DLL for: c />/ (/usr/lib/libc.so: invalid ELF header) />/ [...] / It looks like the package description of hsql-mysql explicitly mentions "-lc" for linking (or something like that). Simply removing that superfluous flag should fix the problem, but I'm only guessing here, as I've never used that
Am Sonntag, 4. September 2005 16:26 schrieb Dominic Steinitz: package.
Cheers, S.
Sven,
Thanks for the suggestion but it's not obvious to me what I'm looking
for. Here's the package description.
Dominic.
[dom@tility HSQL]$ ghc-pkg describe hsql-mysql
name: hsql-mysql
version: 1.6
license: BSD3
copyright:
maintainer:
stability:
homepage:
package-url:
description: MySQL driver for HSQL.
category: Database
author: Krasimir Angelov

Hi Dominic,
Try to manually remove the "c" library from the "extra-libraries"
field in your *.buildinfo file. After that you have to reinstall the
package.
Cheers,
Krasimir
2005/9/11, Dominic Steinitz
[dom@tility HSQL]$ ghc-pkg describe hsql-mysql name: hsql-mysql version: 1.6 license: BSD3 copyright: maintainer: stability: homepage: package-url: description: MySQL driver for HSQL. category: Database author: Krasimir Angelov
exposed: True exposed-modules: Database.HSQL.MySQL hidden-modules: import-dirs: /usr/local/lib/hsql-mysql-1.6/ghc-6.4 library-dirs: /usr/local/lib/hsql-mysql-1.6/ghc-6.4 /usr//lib/mysql hs-libraries: HShsql-mysql-1.6 extra-libraries: mysqlclient z crypt nsl m c nss_files nss_dns resolv include-dirs: /usr//include/mysql includes: depends: base-1.0 hsql-1.6 hugs-options: cc-options: -mcpu=i486 -fno-strength-reduce -IDatabase/HSQL ld-options: framework-dirs: frameworks: haddock-interfaces: haddock-html: _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries
participants (2)
-
Dominic Steinitz
-
Krasimir Angelov