On Sat, 2007-05-05 at 17:18 +0100, David House wrote: > Hey there, > > I'm getting the following errors when I try to compile hsGnuTls [1]: > > ~/hs/sandbox/hsgnutls $ c2hs --version > C->Haskell Compiler, version 0.14.5 Travelling Lightly, 12 Dec 2005 > build platform is "i486-pc-linux-gnu" <1, True, True, 1> > ~/hs/sandbox/hsgnutls $ runhaskell Setup.lhs build > Setup.lhs: Warning: The field "hs-source-dir" is deprecated, please > use hs-source-dirs. > Preprocessing library hsgnutls-0.2.3... > c2hs: Error in C header file. > > /usr/include/bits/pthreadtypes.h:69: (column 6) [FATAL] > >>> Syntax error! > The symbol `;' does not fit here. > > Setup.lhs: got error code while preprocessing: Network.GnuTLS.GnuTLS > > c2hs version: > > I've attached the file it references in case that's relevant. Any tips > on how I might address this?
Try the latest darcs version of c2hs, it has a new C parser which should fix issues like this. We should have a new tarball release soon. Duncan _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
