HSQL / MySQL Problem (was GHCI Problem)

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sun Sep 11 03:30:38 EDT 2005


>
>
>Am Sonntag, 4. September 2005 16:26 schrieb Dominic Steinitz:
>>/ 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 
>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 at 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 <kr.angelov at gmail.com>
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:



More information about the Libraries mailing list