Q: HaSQL compilation.

Taeksoon Park taeksoonp@webgateinc.com
Wed, 30 Jan 2002 20:46:24 +0900


Greetings.

When I compiled HaSQL examples, I got the error message:

[taeksoonp@sv-balhae HaSQL]$ ghc --make test1.hs -fglasgow-exts  
-i/usr/local/lib/gc-2.03/lib/ghc -package lang -fvia-C -lHSgreencard -lodbc
ghc-5.02.2: chasing modules from: test1.hs
Skipping  StdDIS           ( /usr/local/lib/gc-2.03/lib/ghc/StdDIS.hs, 
/usr/local/lib/gc-2.03/lib/ghc/StdDIS.o )
Skipping  Monads           ( Monads.hs, Monads.o )
Skipping  HaSQLtp          ( HaSQLtp.hs, HaSQLtp.o )
Compiling HaSQLex          ( HaSQLex.hs, HaSQLex.o )
/tmp/ghc6149.hc: In function `s4in_ret':
/tmp/ghc6149.hc:426: warning: passing arg 5 of `SQLError' from 
incompatible pointer type
/tmp/ghc6149.hc:426: warning: passing arg 8 of `SQLError' from 
incompatible pointer type
/tmp/ghc6149.hc: In function `s4iL_ret':
/tmp/ghc6149.hc:934: warning: passing arg 5 of `SQLError' from 
incompatible pointer type
/tmp/ghc6149.hc:934: warning: passing arg 8 of `SQLError' from 
incompatible pointer type
/tmp/ghc6149.hc: In function `s4jj_ret':
/tmp/ghc6149.hc:1680: warning: passing arg 5 of `SQLDescribeCol' from 
incompatible pointer type
/tmp/ghc6149.hc:1680: warning: passing arg 6 of `SQLDescribeCol' from 
incompatible pointer type
/tmp/ghc6149.hc:1680: warning: passing arg 7 of `SQLDescribeCol' from 
incompatible pointer type
/tmp/ghc6149.hc:1680: warning: passing arg 8 of `SQLDescribeCol' from 
incompatible pointer type
/tmp/ghc6149.hc:1680: warning: passing arg 9 of `SQLDescribeCol' from 
incompatible pointer type
/tmp/ghc6149.hc: In function `s4jM_ret':
/tmp/ghc6149.hc:2275: warning: passing arg 3 of `SQLDescribeParam' from 
incompatible pointer type
/tmp/ghc6149.hc:2275: warning: passing arg 4 of `SQLDescribeParam' from 
incompatible pointer type
/tmp/ghc6149.hc:2275: warning: passing arg 5 of `SQLDescribeParam' from 
incompatible pointer type
/tmp/ghc6149.hc:2275: warning: passing arg 6 of `SQLDescribeParam' from 
incompatible pointer type
/tmp/ghc6149.hc: In function `s4kE_ret':
/tmp/ghc6149.hc:3235: Unable to find a register to spill in class `DIREG'.
/tmp/ghc6149.hc:3235: confused by earlier errors, bailing out
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I used ghc 5.02.2, greencard 2.03, unixODBC 2.1.1 with redhat 7.2.
Have anyone done it?

Thanks from newbie^^