Hello there,<div><br></div><div>I fixed the problem (I had originally set MACHINE_TYPE to i686. I changed it to i686-gcc4. ) and managed to compile the whole thing. However I got &#39;DIFFERS&#39; for every run of the test suite. I&#39;ve attached the command-line diagnostic of my compilation as well as testing with this mail.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Jayadev J<br><br><div class="gmail_quote">On Sun, Nov 8, 2009 at 6:09 PM, Jayadev Jayaraman <span dir="ltr">&lt;<a href="mailto:jdisalive@gmail.com">jdisalive@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px">Hello there</span></font></div>

<br>I&#39;ve been trying to install the SRILM toolkit on my Dell Inspiron 1525 (3 GB RAM, 250 GB SATA HD, Core2Duo T6400 2.1 GHz, 2 MB Cache ) running Ubuntu 9.10 (gcc ver. 4.4.1). Here are my platform and compiler specs (:<br>

<br><div style="margin-right:20px;margin-bottom:20px;margin-left:20px;margin-top:5px"><div style="color:rgb(0, 0, 0);margin-top:2px;margin-bottom:2px">Code:</div><pre dir="ltr" style="background-color:rgb(255, 255, 255);color:rgb(0, 0, 0);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:6px;padding-right:6px;padding-bottom:6px;padding-left:6px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:inset;border-right-style:inset;border-bottom-style:inset;border-left-style:inset;border-color:initial;width:640px;min-height:178px;text-align:left;overflow-x:auto;overflow-y:auto;background-repeat:initial initial">
$ uname -a
Linux jubuntu-laptop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion=&#39;Ubuntu 4.4.1-4ubuntu8&#39; --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)</pre></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><br></span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px">My awk version:</span></font></div>

<div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><br></span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><div>
$ gawk --version</div><div>GNU Awk 3.1.6</div><div>Copyright (C) 1989, 1991-2007 Free Software Foundation.</div><div>.....</div><div><br></div><div>Make version:</div><div><br></div><div><div>make --version</div><div>GNU Make 3.81</div>

<div>Copyright (C) 2006  Free Software Foundation, Inc.</div><div><br></div><div>I also have tcl 8.5.7 installed with the tcl.h file in the standard include directory /usr/local/include</div></div><div><br></div></span></font></div>

When running the makefile (after extracting the tarball to /home/jubuntu/srilm and changing the SRILM variable in the top-level makefile to /home/jubuntu/srilm), it gives me the following error:</span></font><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><br>

</span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"> (this is a small snippet of the diagnostic output)<br><br><div style="margin-right:20px;margin-bottom:20px;margin-left:20px;margin-top:5px">

<div style="color:rgb(0, 0, 0);margin-top:2px;margin-bottom:2px">Code:</div><pre dir="ltr" style="background-color:rgb(255, 255, 255);color:rgb(0, 0, 0);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:6px;padding-right:6px;padding-bottom:6px;padding-left:6px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:inset;border-right-style:inset;border-bottom-style:inset;border-left-style:inset;border-color:initial;width:640px;min-height:210px;text-align:left;overflow-x:auto;overflow-y:auto;background-repeat:initial initial">
g++ -mtune=pentium3 -Wreturn-type -Wimplicit -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64    -I. -I../../include   -c -g -O3 -o ../obj/i686/NgramLM.o NgramLM.cc
In file included from Ngram.h:14,
                 from NgramLM.cc:36:
/usr/include/stdio.h:754: error: declaration of C function ‘int fseek(FILE*, __off64_t, int)’ conflicts with
/usr/include/stdio.h:722: error: previous declaration ‘int fseek(FILE*, long int, int)’ here
/usr/include/stdio.h:757: error: declaration of C function ‘__off64_t ftell(FILE*)’ conflicts with
/usr/include/stdio.h:727: error: previous declaration ‘long int ftell(FILE*)’ here
make[2]: *** [../obj/i686/NgramLM.o] Error 1
make[2]: Leaving directory `/home/jubuntu/srilm/lm/src&#39;
make[1]: *** [release-libraries] Error 1
make[1]: Leaving directory `/home/jubuntu/srilm&#39;
make: *** [World] Error 2</pre></div>It looks like the fseek() function definition is conflicting with the fseeko() function in stdio.h . (I don&#39;t know why it&#39;s happening. ) <br><br>Can someone please help me get around this ? I need to build SRILM for use in a project of mine. Please help. (I&#39;m ready to give as much of diagnostic information as needed)..</span></font></div>

<div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><br></span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><br>
</span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px">Thanks,</span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px"><br>
</span></font></div><div><font face="Verdana, Arial, Tahoma" size="3"><span style="font-size:12px">Jayadev J</span></font></div>
</blockquote></div><br></div>