<html><body bgcolor="#FFFFFF"><div>Those headers simply do not exist under windows. There's a reason it's called 'Unix' :P</div><div><br></div><div>Perhaps mingw32 or cygwin could help, as those packages make an attempt at emulating (so to speak) the unix environment.</div><div><br>On 08/09/2008, at 17:06, "jean-christophe mincke" &lt;<a href="mailto:jeanchristophe.mincke@gmail.com">jeanchristophe.mincke@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div dir="ltr">Hello,<br><br>I have installed GHC and cygwin on windows XP and I am trying to build the unix package (required to install HApps)<br><br><b><u>* When I use .../ghc/gcc as c compiler I receive the following error during the configure</u></b><br>
<br>D:\temp\haskell\unix-2.3.0.0>runhaskell Setup configure --ghc --prefix=D:\apps\h-lib<br>Configuring unix-2.3.0.0...<br>checking for gcc... gcc<br>checking for C compiler default output file name...<br><b>configure: error: C compiler cannot create executables</b><br>
See `config.log' for more details.<br><br>and config.log says that :<br><br>&nbsp;&nbsp;<b>&nbsp; ld: crt2.o: No such file: No such file or directory</b><br><br><br><b><u>* When I use the gcc in cygwin : /usr/bin/gcc, the configure phase is ok but the build stop on the following error:</u></b><br>
<br>D:\temp\haskell\unix-2.3.0.0>runhaskell Setup build<br>Preprocessing library unix-2.3.0.0...<br><br><b>In file included from System\Posix\DynamicLinker\Module.hsc:57:0:<br><br>include/HsUnix.h:32:23:&nbsp; sys/times.h: No such file or directory</b><br>
<br>include/HsUnix.h:38:26:&nbsp; sys/resource.h: No such file or directory<br><br>include/HsUnix.h:41:22:&nbsp; sys/wait.h: No such file or directory<br><br>include/HsUnix.h:62:21:&nbsp; termios.h: No such file or directory<br><br>include/HsUnix.h:65:25:&nbsp; sys/utsname.h: No such file or directory<br>
<br>include/HsUnix.h:68:17:&nbsp; pwd.h: No such file or directory<br><br>include/HsUnix.h:71:17:&nbsp; grp.h: No such file or directory<br><br>include/HsUnix.h:81:17:&nbsp; pty.h: No such file or directory<br><br>include/HsUnix.h:84:18:&nbsp; utmp.h: No such file or directory<br>
<br>include/HsUnix.h:87:19:&nbsp; dlfcn.h: No such file or directory<br><br>In file included from System\Posix\DynamicLinker\Module.hsc:57:0:<br>include/HsUnix.h: In function `__hsunix_wifexited':<br><br>include/HsUnix.h:103:0:<br>
&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `WIFEXITED'<br>include/HsUnix.h: In function `__hsunix_wexitstatus':<br><br>include/HsUnix.h:104:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `WEXITSTATUS'<br>
include/HsUnix.h: In function `__hsunix_wifsignaled':<br><br>include/HsUnix.h:105:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `WIFSIGNALED'<br>include/HsUnix.h: In function `__hsunix_wtermsig':<br><br>
include/HsUnix.h:106:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `WTERMSIG'<br>include/HsUnix.h: In function `__hsunix_wifstopped':<br><br>include/HsUnix.h:107:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `WIFSTOPPED'<br>
include/HsUnix.h: In function `__hsunix_wstopsig':<br><br>include/HsUnix.h:108:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `WSTOPSIG'<br>include/HsUnix.h: In function `__hsunix_rtldDefault':<br><br>include/HsUnix.h:115:0:<br>
&nbsp;&nbsp;&nbsp;&nbsp; error: `RTLD_DEFAULT' undeclared (first use in this function)<br><br>include/HsUnix.h:115:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; error: (Each undeclared identifier is reported only once<br><br>include/HsUnix.h:115:0:&nbsp; error: for each function it appears in.)<br>
include/HsUnix.h: In function `__hsunix_lstat':<br><br>include/HsUnix.h:134:0:<br>&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `lstat'<br>include/HsUnix.h: In function `__hsunix_mknod':<br><br>include/HsUnix.h:140:0:<br>
&nbsp;&nbsp;&nbsp;&nbsp; warning: implicit declaration of function `mknod'<br>compiling dist\build\System\Posix\DynamicLinker\Module_hsc_make.c failed<br><b>command was: d:\apps\ghc\bin\ghc.exe -c -package base-3.0.2.0 -package directory-1.0.0.1 -Iinclude dist\build\System\Pos<br>
ix\DynamicLinker\Module_hsc_make.c -o dist\build\System\Posix\DynamicLinker\Module_hsc_make.o</b><br><br>Could someone help me.<br><br>Thank you<br><br>J-C <br><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Haskell-Cafe mailing list</span><br><span><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a></span><br><span><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br></div></blockquote></body></html>