[SRILM User List] Unable to build SRILM with g++ 4.4.1 on Ubuntu 9.10 (i686)

Jayadev Jayaraman jdisalive at gmail.com
Sun Nov 8 18:09:10 PST 2009


Hello there

I'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 (:

Code:

$ 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='Ubuntu
4.4.1-4ubuntu8'
--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)


My awk version:

$ gawk --version
GNU Awk 3.1.6
Copyright (C) 1989, 1991-2007 Free Software Foundation.
.....

Make version:

make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.

I also have tcl 8.5.7 installed with the tcl.h file in the standard include
directory /usr/local/include

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:

 (this is a small snippet of the diagnostic output)

Code:

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'
make[1]: *** [release-libraries] Error 1
make[1]: Leaving directory `/home/jubuntu/srilm'
make: *** [World] Error 2

It looks like the fseek() function definition is conflicting with the
fseeko() function in stdio.h . (I don't know why it's happening. )

Can someone please help me get around this ? I need to build SRILM for use
in a project of mine. Please help. (I'm ready to give as much of diagnostic
information as needed)..


Thanks,

Jayadev J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20091108/bfd239bf/attachment.html>


More information about the SRILM-User mailing list