[SRILM User List] SRILM install: LM.cc error
prochva1 at fel.cvut.cz
prochva1 at fel.cvut.cz
Sun Feb 12 01:37:10 PST 2012
Cituji Andreas Stolcke <stolcke at icsi.berkeley.edu>:
> 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
Hello,
AFAICS both are base-files package/cygwin core problems (regressions
from previous versions), both are already reported, the second one
seems to be also fixed in cygwin CVS/snapshots (
http://cygwin.com/snapshots/ ).
>> /-bash: LANG=${locale -uU}: bad substitution
http://cygwin.com/ml/cygwin/2012-02/msg00335.html
waitpid overload problem
http://cygwin.com/ml/cygwin/2012-02/msg00184.html
http://cygwin.com/ml/cygwin-patches/2012-q1/msg00016.html
Vaclav
More information about the SRILM-User
mailing list