
I have just moved to ghc-5.04 to try the threaded runtime, however some code I have to do dynaminc module loading using the rts linker will not compile, failing with: RtsAPIDeprec.o undefined reference to Addr_Azh_con_info (in rts_mkAddr) this symbol appears to be defined in libHSlang.a, and I have a -syslib lang in the compile command... what's wrong here? secondly, if this interface is deprecated, (I presume this is something to do with the FFI?) where am I using rts_mkAddr and rts_getAddr, would that be in addrToHValue, and if so what is the non-deprecated way of doing this? Keean Schupke Department of Electrical & Electronic Engineering, Imperial College.

Following up to Keean's message about problems with the RTS interface in ghc-5.04, we have also trouble with that. When compiling C code containing call-ins to Haskell, gcc will complain about RtsAPI.h as follows: /usr/local/lib/ghc-5.04/include/RtsAPI.h:125: syntax error before `const' /usr/local/lib/ghc-5.04/include/RtsAPI.h:126: syntax error before `const' /usr/local/lib/ghc-5.04/include/RtsAPI.h:125: storage size of `GHCziTopHandler_runIO_closure' isn't known /usr/local/lib/ghc-5.04/include/RtsAPI.h:126: storage size of `GHCziTopHandler_runNonIO_closure' isn't known This is gcc 2.95.3 on a Linux (SuSE 7.3 or 7.1 or RH 7.2) box. Commenting out the offending lines in RtsAPI.h seems to work (as in it compiles and runs), but that should not be the proper solution. Is this a bug, or do I need to give gcc some magic options? --C. PS. The same code used to work with ghc-5.02 without complaint.
participants (2)
-
Christoph Lueth
-
Keean