[SRILM User List] SRILM install: LM.cc error

Andreas Stolcke stolcke at icsi.berkeley.edu
Sat Feb 11 19:53:52 PST 2012


On 2/11/2012 3:20 PM, alex tudor wrote:
> Hello everyone,
>
> I compiled SRILM with Cygwin under Windows XP. First I had:
>
> /-bash: LANG=${locale -uU}: bad substitution
> /
> Afterwards all worked fine until I compiled /make World /and I had 
> this error:
>
> /LM.cc: In member function 'virtual unsigned int 
> LM::probServer(unsingned int, unsigned int)':
> LM.cc:893:38: error: call of overloaded 'waitpid(int, NULL, int)' is 
> ambiguous
> /usr/include/sys/wait.h:38:7: note: candidates are: pid_t 
> waitpid(pid_t, int*, int)
> /usr/include/sys/wait.h:84:14: note: pid_t waitpid(pid_t, wait*, int)
> /cygdrive/c/srilm13/common/Makefile.common.targets:93: recipe for 
> target '../obj/cygwin/LM.o' failed/
>
> What can I do ?
Try replacing the line

             while (waitpid(-1, NULL, WNOHANG) > 0) {

with
             while (waitpid(-1, (int *)NULL, WNOHANG) > 0) {

Let me know if that works.

Andreas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20120211/63f149a0/attachment.html>


More information about the SRILM-User mailing list