<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>
<DIV><FONT face=Arial color=#000000 size=2>Hi List,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm new here. I started last week to face the "Build GRASS on Windows" problems. I never used MinGW &amp; MSYS Enviroment, while I experienced ANSI C programming about 12 years ago (my first&nbsp;@ engineer university!) then never used anymore. Now I'm trying to resume some knowledges...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I built grass-6.3.0RC4&nbsp;in MinGW and MSYS Enviroment using source code from <A href="http://mailstore.rossoalice.alice.it/exchweb/bin/redir.asp?URL=http://download.osgeo.org/grass/grass63/source/grass-6.3.0RC4.tar.gz" target=_blank>http://download.osgeo.org/grass/grass63/source/grass-6.3.0RC4.tar.gz</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Reading the error log I tried to look for the reasons of that errors.</FONT></DIV>
<DIV>
<DIV><FONT face=Arial><FONT size=2>First I checked out /imagery/i.class build errors.&nbsp;It seems to be generated by lack in MinGW of SIGSTP and SIGALRM signal definitions in mingw/include/signal.h</FONT> </FONT>
<DIV><FONT face=Arial size=2>I added those signals to signal.h as follows:</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>#define SIGTSTP 18 /* Stop Request by Terminal */<BR>#define SIGALRM 13 /* Alarm Signal */</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But recompiling it gives an error because of the lack of alarm() function in MinGW.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Similar errors come out from building other modules. The problem is due to the lack in MinGW of some Standard POSIX system calls to active processes; functions like alarm(), fork(), wait() and other of the same "group" are not supported in MinGW.</FONT></DIV>
<DIV><FONT face=Arial size=2>I think that a way to solve the problem could be to include MinGW windows API libraries and use, instead of alarm()...., equivalent functions supported by win API.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What do you think about?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Marco</FONT></DIV></DIV></FONT></DIV></BODY></HTML>