[This message is sent through a WWW-Email gateway.]
[The authenticity of the sender can not be validated.]
[Message sent from the following machine agamemnon.informatik.rwth-aachen.de -
137.226.194.74 ]
[after accessing this URL
http://www.dcs.gla.ac.uk/scripts/global/send_message?[EMAIL PROTECTED]+message]
--
I have problems in compiling GreenCard 2.0 with GHC 2.10.
Everything works just fine until the module "StdDIS.hs" is to be compiled...
'make all' stops with the following message:
ghc-2.10 -fglasgow-exts -fno-prune-tydecls -c StdDIS.hs -o StdDIS.o
StdDIS.hs:158: No instance for: `CCallable Word32'
arising from an argument in the _ccall_ to do {static struct {void MTN README.uncgi
error.out global httpd_errors local mmdata personal results uncgi uncgi.old uncgi_test
www res1;int gc_failed;void MTN README.uncgi error.out global httpd_errors local
mmdata personal results uncgi uncgi.old uncgi_test www gc_failstring;} gc_result;
unsigned int arg1;void MTN README.uncgi error.out global httpd_errors local mmdata
personal results uncgi uncgi.old uncgi_test www res1;int gc_failed;
char* gc_failstring;;
arg1 = %0;
do {res1 = malloc(arg1);;
if (gc_failed == ( res1==0 )) {gc_failstring = "malloc failed" ;}
else {gc_failed = 0;}
gc_result.res1 = (void *)(res1);
gc_re!
sult.gc_failed = gc_failed;
gc_result.gc_failstring = gc_failstring;
%r = &gc_result;} while(0);} while(0);, namely `arg1' at StdDIS.hs:158
When checking signature(s) for: `malloc'
StdDIS.hs:158: No instance for: `CCallable Word32'
arising from an argument in the _ccall_ to do {static struct {void MTN README.uncgi
error.out global httpd_errors local mmdata personal results uncgi uncgi.old uncgi_test
www res1;int gc_failed;void MTN README.uncgi error.out global httpd_errors local
mmdata personal results uncgi uncgi.old uncgi_test www gc_failstring;} gc_result;
unsigned int arg1;void MTN README.uncgi error.out global httpd_errors local mmdata
personal results uncgi uncgi.old uncgi_test www res1;int gc_failed;
char* gc_failstring;;
arg1 = %0;
do {res1 = malloc(arg1);;
if (gc_failed == ( res1==0 )) {gc_failstring = "malloc failed" ;}
else {gc_failed = 0;}
gc_result.res1 = (void *)(res1);
gc_result.gc_failed = gc_failed;
gc_result.gc_failstring = gc_failstring;
%r !
= &gc_result;} while(0);} while(0);, namely `arg1' at StdDIS.hs:1
58
When checking signature(s) for: `malloc'
Compilation had errors
make[2]: MTN README.uncgi error.out global httpd_errors local mmdata personal results
uncgi uncgi.old uncgi_test www [StdDIS.o] Error 1
I do not believe that "StdDIS.hs" does contain any errors so perhaps someone knows
where to find the bug elsewhere.
Thank you
Thomas Hoefer
--