<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 2/11/2012 3:20 PM, alex tudor wrote:
    <blockquote
cite="mid:CAM6aWRN8suqUW_RHjaidp6EMbJmQrSioEWB4Y37XnrXYyScmqA@mail.gmail.com"
      type="cite">Hello everyone,<br>
      <br>
      I compiled SRILM with Cygwin under Windows XP. First I had:<br>
      <br>
      <i>-bash: LANG=${locale -uU}: bad substitution<br>
      </i><br>
      Afterwards all worked fine until I compiled <i>make World </i>and
      I had this error:<br>
      <br>
      <i>LM.cc: In member function 'virtual unsigned int
        LM::probServer(unsingned int, unsigned int)':<br>
        LM.cc:893:38: error: call of overloaded 'waitpid(int, NULL,
        int)' is ambiguous<br>
        /usr/include/sys/wait.h:38:7: note: candidates are: pid_t
        waitpid(pid_t, int*, int)<br>
        /usr/include/sys/wait.h:84:14: note: pid_t waitpid(pid_t, wait*,
        int)<br>
        /cygdrive/c/srilm13/common/Makefile.common.targets:93: recipe
        for target '../obj/cygwin/LM.o' failed</i>
      <br>
      <br>
      What can I do ?<br>
    </blockquote>
    Try replacing the line<br>
    <br>
                while (waitpid(-1, NULL, WNOHANG) > 0) {<br>
    <br>
    with<br>
                while (waitpid(-1, (int *)NULL, WNOHANG) > 0) {<br>
    <br>
    Let me know if that works.<br>
    <br>
    Andreas<br>
    <br>
    <br>
  </body>
</html>