This commit is contained in:
Joey Hess 2014-02-27 13:35:06 -04:00
parent 1570f00ed9
commit 15f0afd874

View file

@ -49,15 +49,30 @@ now! --[[Joey]]
## trying to build XMPP
1. gnutls-$LATEST.zip from <http://josefsson.org/gnutls4win/>
Lots of library deps:
1. gsasl-$LATEST.zip from <http://josefsson.org/gnutls4win/> (includes
gnuidn and gnutls)
2. pkg-config from
<http://sourceforge.net/projects/pkgconfiglite/files/latest/download?source=files>
3. libxml2 from mingw:
<http://sourceforge.net/projects/mingw/files/MSYS/Extension/libxml2/libxml2-2.7.6-1/>
both the -dll and the -dev
3. gsasl from <ftp://alpha.gnu.org/gnu/gsasl/>
3. gnuidn from <ftp://ftp.gnu.org/gnu/libidn/libidn-1.28-win32.zip>
3. Extract all the above into the Haskell platform's mingw directory. Note
that pkg-config needs to be moved out of a named subdirectory.
4. Run in DOS prompt (not cygwin!): cabal install gnutls libxml-sax gsasl gnuidn network-protocol-xmpp
4. Run in DOS prompt (not cygwin!): cabal install network-protocol-xmpp
Current FAIL:
<pre>
Loading package gnutls-0.1.5 ... ghc.exe: internal error: Misaligned section: 18206e5b
(GHC version 7.6.3 for i386_unknown_mingw32)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
</pre>
<https://ghc.haskell.org/trac/ghc/ticket/8830>
Note: This only happens in the TH link stage. So building w/o the webapp
works with XMPP. One possible approach would be to make a helper program
with the XMPP support in it, that does not use TH.