Problems with ghc 4.00 and hdirect
-BEGIN PGP SIGNED MESSAGE- Hello, I have problems using hdirect-current on my system. I have the ghc-4.00 as an rpm-Distribution on a Debian Linux system and used alien to install it. Wenn I try to compile hdirect. 'make boot' and 'make' work fine but 'make lib' gives a segmentation fault: Here is the output: rcc:~/tmp/hdirect-0.12# make lib make -C lib boot && make -C lib all make[1]: Entering directory `/home/rcc/tmp/hdirect-0.12/lib' ../src/ihc -fno-qualified-names -fno-imports - -fout-pointers-are-not-refs -fno-export-lists -c ComPrim.idl -o ComPrim.hs make[1]: *** [ComPrim.hs] Segmentation fault make[1]: *** Deleting file `ComPrim.hs' make[1]: Leaving directory `/home/rcc/tmp/hdirect-0.12/lib' make: *** [lib] Error 2 === and that are the last bits of a 'strace' == open("ComPrim.hs", O_WRONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) lstat("ComPrim.hs", 0xb24c) = -1 ENOENT (No such file or directory) open("ComPrim.hs", O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("ComPrim.hs", O_WRONLY|O_TRUNC|O_NOCTTY) = 4 close(4)= 0 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 brk(0x82dd000) = 0x82dd000 - --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ == Has anybody got an idea? Regards Ralf - Ralf Comtessee-Mail: [EMAIL PROTECTED] Gipsstrasse 15 Tel: +49-30-28599230 10119 Berlin Fax: +49-30-28599231 Member of the Cetus Team. For OO links visit: http://www.cetus-links.org - -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQB1AwUBNlM78Q+XSzNOWOS5AQHDdAMAzNufAKs0V6PWsr6yNsCJz11fDx56saUg gH7YCxICaECLLeNa5XQ6jBeMCOqSy977PB+O/hhUUwKrQBJinMOrNo2fYqmhrE/K kLupvfsMGfPKqapuDowi7aAseFkTsaC0 =NC2P -END PGP SIGNATURE-
ghc 4.00 and H/Direct
-BEGIN PGP SIGNED MESSAGE- Hello, I just tried to use H/Direct with ghc 4.00. First H/Direct complained about old ghc libraries (version 302). That?s OK and I tried to recompile hdirect. But obviously some of the imports have changed dramatically. . HDirect.lhs:9: Conflicting definitions for `readAddrOffAddr' Imported from `Addr' at HDirect.lhs:40 Defined at HDirect.lhs:229 HDirect.lhs:9: Conflicting definitions for `sizeofInt16' Imported from `Int' at HDirect.lhs:39 Defined at HDirect.lhs:115 ... and lots of errors like this. Is it OK to just leave the imports out of HDirect.lhs or is it better to wait for a new version of H/Direct? Regards Ralf - ---- Ralf Comtessee-Mail: [EMAIL PROTECTED] Gipsstrasse 15 Tel: +49-30-28599230 10119 Berlin Fax: +49-30-28599231 Member of the Cetus Team. For OO links visit: http://www.cetus-links.org - -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQB1AwUBNit8rg+XSzNOWOS5AQE9xgL7BsFfWW4NmAaKu752cpX4RWZ7CYQHNt0c yCoJ2KyC8B7EiG8KAOmT9fmJA+YhV3u2S6raNBlJJ1LUqzqTzvfnjoThaZdzM9/F GbP1o6NXtkc5GqS0vgGWdv9TSGtOZ4zv =3tJO -END PGP SIGNATURE-
ghc-3.02 and green card / hdirect
-BEGIN PGP SIGNED MESSAGE- Hello, I have a problem using green-card with ghc-3.02 on a Linux system. green-card works fine and produces a .hs output file (foo.hs) . When I try to compile it with ghc -c foo.hs -cpp -Wall, I get errors in the functions generated by green-card: (this is not a green-card example but code copied from the ghc users guide) M.hs:8:19: parse error on input: "`" and the line is: oldGetEnv name = _casm_ ``%r = getenv((char *) %0);'' name >>= \ litstring@(A# being the culprit str#) -> return ( if (litstring == ``NULL'') then Left ("Fail:oldGetEnv:"++name) else Right (unpackCString# str#) ) I searched the documentation but could not find a hint. Any help would be greatly appreciated - ---- Ralf Comtessee-Mail: [EMAIL PROTECTED] Gipsstrasse 15 Tel: +49-30-28599230 10119 Berlin Fax: +49-30-28599231 Member of the Cetus Team. For OO links visit: http://www.cetus-links.org - -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQB1AwUBNhaQoA+XSzNOWOS5AQH29gMAzMzGflgXw72s7N75gehXL+WX9ds3W6ac hgrhreqJcdhbr5zNNJ/n40iLMtOY8hHYHX0P7MHpFmjoqVVNysusOO2skUBm1rXn otJl+HWEUvjYoM4TXHrbU18t+Uy36zxE =TC3t -END PGP SIGNATURE-