[Haskell-cafe] c2hs errors when compiling hsGnuTls

David House dmhouse at gmail.com
Sat May 5 12:18:05 EDT 2007


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?

Thanks in advance,

-David House, dmhouse at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthreadtypes.h
Type: text/x-chdr
Size: 4394 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070505/7d33124f/pthreadtypes-0001.bin


More information about the Haskell-Cafe mailing list