<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I fail to build text-icu-0.1 on Windows, and would 
appreciate some help...<BR>Thanks in advance!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>Let me describe what I've done so for, and what 
results I got:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>First, I got a version of ICU on my machine, 
specifically unzipping the<BR>file "icu4c-4_0_1-Win32-msvc8.zip" from </FONT><A 
href="http://icu-project.org/download/4.0.html"><FONT face=Arial 
size=2>http://icu-project.org/download/4.0.html</FONT></A><FONT face=Arial 
size=2>.<BR>This made me having ICU stuff at location "C:\HaskellStuff\icu\icu", 
as<BR>witnessed below:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;&gt; C:\HaskellStuff\icu\icu&gt;dir<BR>&lt;&lt; 
30/04/2009&nbsp; 16:08&nbsp;&nbsp;&nbsp; 
&lt;REP&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .<BR>&lt;&lt; 
30/04/2009&nbsp; 16:08&nbsp;&nbsp;&nbsp; 
&lt;REP&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ..<BR>&lt;&lt; 
30/04/2009&nbsp; 16:51&nbsp;&nbsp;&nbsp; 
&lt;REP&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
bin<BR>&lt;&lt; 30/04/2009&nbsp; 16:08&nbsp;&nbsp;&nbsp; 
&lt;REP&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
include<BR>&lt;&lt; 30/04/2009&nbsp; 16:36&nbsp;&nbsp;&nbsp; 
&lt;REP&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
lib<BR>&lt;&lt; 14/01/2009&nbsp; 
22:48&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
2&nbsp;032 license.html</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>After downloading and untaring "text-icu-0.1", 
I tried to configure, typing in:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;&gt; 
C:\HaskellStuff\pkg\text-icu-0.1&gt;runhaskell Setup configure<BR>&lt;&lt; 
Configuring text-icu-0.1...<BR>&lt;&lt; Setup: Missing dependencies on foreign 
libraries:<BR>&lt;&lt; * Missing C libraries: icui18n, icuuc, 
icudata<BR>&lt;&lt; This problem can usually be solved by installing the system 
packages that<BR>&lt;&lt; provide these libraries (you may need the "-dev" 
versions). If the libraries<BR>&lt;&lt; are already installed but in a 
non-standard location then you can use the<BR>&lt;&lt; flags 
--extra-include-dirs= and --extra-lib-dirs= to specify where they 
are.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>OK, let's restart with appropriate values for said 
flags!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;&gt; 
C:\HaskellStuff\pkg\text-icu-0.1&gt;runhaskell Setup 
configure<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; 
--extra-include-dirs=C:\HaskellStuff\icu\icu\include<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; 
--extra-lib-dirs=C:\HaskellStuff\icu\icu\lib<BR>&lt;&lt; Configuring 
text-icu-0.1...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>And then proceed with the building per 
se:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;&gt; 
C:\HaskellStuff\pkg\text-icu-0.1&gt;runhaskell Setup build<BR>&lt;&lt; 
Preprocessing library text-icu-0.1...<BR>&lt;&lt; In file included from 
C:/HaskellStuff/icu/icu/include/unicode/umachine.h:47,<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
C:/HaskellStuff/icu/icu/include/unicode/utypes.h:36,<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from Data\Text\ICU\Error.hsc:148:<BR>&lt;&lt; 
C:/HaskellStuff/icu/icu/include/unicode/pwin32.h:120:<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
error: redefinition of typedef 'int8_t'<BR>&lt;&lt; 
C:/ghc/ghc-6.10.1/include/mingw/stdint.h:27:<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
error: previous declaration of 'int8_t' was here<BR>&lt;&lt;&nbsp;<SPAN 
class=149285107-13052009>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=149285107-13052009></SPAN>&lt;&lt;&nbsp;<SPAN class=149285107-13052009>... 
(a bunch of similar messages for other type aliases, 
e.g.&nbsp;</SPAN>'uint8_t'<SPAN 
class=149285107-13052009>)</SPAN><BR>&lt;&lt;&nbsp;<SPAN 
class=149285107-13052009>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=149285107-13052009></SPAN>&lt;&lt; 
compiling dist\build\Data\Text\ICU\Error_hsc_make.c failed<BR>&lt;&lt; command 
was: C:\ghc\ghc-6.10.1\gcc.exe -c 
-BC:\ghc\ghc-6.10.1\gcc-lib<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-IC:\ghc\ghc-6.10.1\include\mingw 
-D__GLASGOW_HASKELL__=610<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-IC:\HaskellStuff\icu\icu\include<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-IC:\ghc\ghc-6.10.1\bytestring-0.9.1.4\include<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-IC:\ghc\ghc-6.10.1\base-4.0.0.0\include<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-IC:\ghc\ghc-6.10.1/include<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-IPAPI_INCLUDE_DIR 
dist\build\Data\Text\ICU\Error_hsc_make.c<BR>&lt;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-o dist\build\Data\Text\ICU\Error_hsc_make.o<BR>&lt;&lt; <BR>&lt;&lt; 
C:\HaskellStuff\pkg\text-icu-0.1&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>The "mingw/stdint.h" file contains a series of 
lines of this style:<BR>&lt;&lt;<BR>&lt;&lt; typedef signed char 
int8_t;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>Whereas, the "unicode/pwin32.h" file contains 
contains stuff like:<BR>&lt;&lt; <BR>&lt;&lt; /* Define whether inttypes.h is 
available */<BR>&lt;&lt; #ifndef U_HAVE_INTTYPES_H<BR>&lt;&lt; #define 
U_HAVE_INTTYPES_H 0<BR>&lt;&lt; #endif<BR>&lt;&lt; ...<BR>&lt;&lt; <BR>&lt;&lt; 
/* Determines whether specific types are available */<BR>&lt;&lt; #ifndef 
U_HAVE_INT8_T<BR>&lt;&lt; #define U_HAVE_INT8_T U_HAVE_INTTYPES_H<BR>&lt;&lt; 
#endif<BR>&lt;&lt; ...<BR>&lt;&lt;<BR>&lt;&lt; /* If your platform does not have 
the &lt;inttypes.h&gt; header, you may<BR>&lt;&lt;&nbsp;&nbsp;&nbsp; need to 
edit the typedefs below. */<BR>&lt;&lt; #if U_HAVE_INTTYPES_H<BR>&lt;&lt; 
#include &lt;inttypes.h&gt;<BR>&lt;&lt; #else /* U_HAVE_INTTYPES_H 
*/<BR>&lt;&lt; <BR>&lt;&lt; #if ! U_HAVE_INT8_T<BR>&lt;&lt; typedef signed char 
int8_t;<BR>&lt;&lt; #endif<BR>&lt;&lt; ...<BR>&lt;&lt; #endif</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face=Arial size=2>So, do I need to explicitely change the icu 
include file?<BR>And in which way?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any other solution/suggestion?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Best regards.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>--Serge<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>