<div dir="ltr">Hi Andreas,<div><br></div><div>Thanks for your reply.</div><div><br></div><div style>I rebuilt SRILM again. My machine is 64bit Linux. The process is as following:</div><div style><br></div><div style>1. set NO_TCL = X in common/Makefile.machine.i686-m64</div>
<div style>2. make World</div><div style>3. make MACHINE_TYPE=i686-m64 World</div><div style>4. make test</div><div style>5. make cleanest</div><div style><br></div><div style>And after I run make test, the last lines of the output are:</div>
<div style><br></div><div style><div>*** Running test lattice-word-posteriors ***</div><div><br></div><div>real<span class="" style="white-space:pre"> </span>0m0.033s</div><div>user<span class="" style="white-space:pre"> </span>0m0.006s</div>
<div>sys<span class="" style="white-space:pre"> </span>0m0.023s</div><div>lattice-word-posteriors: stdout output IDENTICAL.</div><div>lattice-word-posteriors: stderr output IDENTICAL.</div><div>make[1]: Leaving directory `/nethome/yyang319/software/srilm/lattice/test'</div>
<div><br></div><div><br></div><div style>I did not meet any errors during the building process. However, I still got the same errors when I try to compile my program with srilm library. </div><div style><br></div><div style>
Did I make some mistakes while building SRILM?</div><div style><br></div><div style>Thank you so much.</div><div style>Yi</div><div style><br></div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Feb 27, 2013 at 5:19 PM, Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@icsi.berkeley.edu" target="_blank">stolcke@icsi.berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="im">
<div>On 2/27/2013 7:42 AM, Yi Yang wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I have a problem when I try to compile my C++ problem with
srilm library.</div>
<div><br>
</div>
<div>My commend is</div>
<div><br>
</div>
<div>
<div>g++ srilmTest.cc
-I/nethome/yyang319/software/srilm/include/
-L/nethome/yyang319/software/srilm/lib/i686-m64/ -ldstruct
-lflm -lmisc -loolm -ldl -lpthread -o srilmTest</div>
</div>
</div>
</blockquote>
<br></div>
Did SRIM itself build correctly? Have you run '"make test" and did
it work?<div class="im"><br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div><br>
</div>
<div>And I got a lot of this kind of errors:</div>
<div><br>
</div>
<div>
<div>/nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
undefined reference to `srilm_tls_get_key()'</div>
<div>/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):/nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
more undefined references to `srilm_tls_get_key()' follow</div>
</div>
</div>
</div>
</blockquote>
<br></div>
If you are having trouble with TLS you should try compiling with
-DNO_TLS .<div class="im"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div><br>
</div>
</div>
<div><br>
</div>
<div>/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):
In function `LHash<unsigned int,
NBestWordInfo>::alloc(unsigned int)':</div>
<div>/nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:140:
undefined reference to `BM_malloc'</div>
<div>/nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):
In function `LHash<unsigned int,
NBestWordInfo>::insert(unsigned int, bool&)':</div>
<div>/nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:407:
undefined reference to `BM_free'</div>
</div>
</div>
</blockquote></div>
This strongly indicates that your libraries didn't all build
properly (hence my question above).<br>
BM_malloc, BM_free are defined in -ldstruct .<br>
<br>
Andreas<br>
<br>
<blockquote type="cite"><div class="im">
<div dir="ltr">
<div>
<div><br>
</div>
<div><br>
</div>
<div>I tried to address it for a long time, but
failed.</div>
<div><br>
</div>
<div>Does anybody have solutions for this problem?</div>
<div><br>
</div>
<div>Thanks a lot!</div>
<div><br>
</div>
-- <br>
Sincerely,<br>
Yi Yang<br>
<a href="http://www.cc.gatech.edu/%7Eyyang319/" target="_blank">http://www.cc.gatech.edu/~yyang319/</a><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
SRILM-User site list
<a href="mailto:SRILM-User@speech.sri.com" target="_blank">SRILM-User@speech.sri.com</a>
<a href="http://www.speech.sri.com/mailman/listinfo/srilm-user" target="_blank">http://www.speech.sri.com/mailman/listinfo/srilm-user</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Sincerely,<br>Yi Yang<br><a href="http://www.cc.gatech.edu/~yyang319/" target="_blank">http://www.cc.gatech.edu/~yyang319/</a><br>
</div>