[SRILM User List] The bug in sys/wait.h with Cygwin 4.5

Andreas Stolcke stolcke at icsi.berkeley.edu
Mon Jun 4 11:37:06 PDT 2012


On 6/4/2012 9:34 AM, trinity s wrote:
> Hello
> I came across this post about the error in LM.cc
> http://www.speech.sri.com/pipermail/srilm-user/2012q1/001162.html
>
> I am facing the same issue but the fix suggested does not seem to work
> for me. I continue to get the exact same error message. I am trying to
> install SRILM 1.6 using cygwin 4.5.3 on Windows 7.
> Here's the error message I see:
>
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
> cannot find -ltcl84
> collect2: ld returned 1 exit status
> make[2]: *** [../bin/cygwin/maxalloc.exe] Error 1
> make[1]: *** [release-programs] Error 1
> make: *** [World] Error 2

The subject line of the message is misleading.  Your problem has nothing 
to do with wait.h, but with setting up the proper Tcl installation.

1. Install tcl/tk within cygwin, Ubuntu, ..., whatever your distribution is.
2. Find what the name of the installed library is:  look for 
/usr/lib/libtcl.a, /usr/lib/libtcl8.5.a, etc.
3. Assuming the library is called libtcl8.5, edit 
common/Makefile.machine.$MACHINE_TYPE to use

             TCL_LIBRARY = -ltcl8.5

Andreas



More information about the SRILM-User mailing list