HEAD version hsc2hs malfunction

I have problems with the current HEAD version when compiling my ADNS bindings http://cryp.to/hsdns/ADNS.hsc. It appears that ghc has stopped passing the correct search path automatically, because with the new version I had to add an explicit "-I/home/simons/projects/foo" when compiling, or it wouldn't find the _stub.(c|h) files. Once I had that sorted out, I got this: /tmp/ghc12865.hc: In function `s8Ej_ret': /tmp/ghc12865.hc:6355: error: `ADNS_d7gS' undeclared (first use in this function) /tmp/ghc12865.hc:6355: error: (Each undeclared identifier is reported only once /tmp/ghc12865.hc:6355: error: for each function it appears in.) Is this a bug in the compiler? In hsc2hs? My fault? Peter

I cvs-updated my copy moments ago, but I still get this error when compiling my ADNS.hsc bindings with the new version:
/tmp/ghc12865.hc: In function `s8Ej_ret': /tmp/ghc12865.hc:6355: error: `ADNS_d7gS' undeclared (first use in this function) /tmp/ghc12865.hc:6355: error: (Each undeclared identifier is reported only once /tmp/ghc12865.hc:6355: error: for each function it appears in.)
I have no idea whether hsc2hs or the compiler itself is the problem; does, by any chance, anyone know (or can give me a hint) how to fix this? Peter
participants (1)
-
Peter Simons