[SRILM User List] make fails: libiconv functions undefined

nimrod d nimrodia2 at yahoo.com
Sat Sep 6 07:10:30 PDT 2014


Hello,

When drying to build SRILM  make fails for me because it cannot find the definition for libincov functions.
How can I tell SRILM libinconv's location on my computer?

I'm running Ubuntu 14.04 

I have libinconv installed at: /nimrod/libinconv-1.14
and srilm installed at: /nimrod/srilm

I do need unicode support so I cannot compile with the NO_ICONV flag activated.

Thank you,

following is the last part of the output I get for $ Make World


g++ -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -fopenmp   -I. -I../../include   -u matherr -L../../lib/i686-m64  -g -O3  -o ../bin/i686-m64/ngram ../obj/i686-m64/ngram.o ../obj/i686-m64/liboolm.a ../../lib/i686-m64/libflm.a ../../lib/i686-m64/libdstruct.a ../../lib/i686-m64/libmisc.a ../../lib/i686-m64/libz.a  -lm  -lpthread 2>&1 | c++filt
../../lib/i686-m64/libmisc.a(File.o): In function `File::~File()':
/nimrod/srilm/misc/src/File.cc:125: undefined reference to `libiconv_close'
../../lib/i686-m64/libmisc.a(File.o): In function `File::reopen(char const*, char const*)':
/nimrod/srilm/misc/src/File.cc:165: undefined reference to `libiconv_close'
../../lib/i686-m64/libmisc.a(File.o): In function `File::reopen(char const*)':
/nimrod/srilm/misc/src/File.cc:214: undefined reference to `libiconv_close'
../../lib/i686-m64/libmisc.a(File.o): In function `File::reopen(char const*, unsigned long, int)':
/nimrod/srilm/misc/src/File.cc:246: undefined reference to `libiconv_close'
../../lib/i686-m64/libmisc.a(File.o): In function `File::reopen(std::string&, int)':
/nimrod/srilm/misc/src/File.cc:270: undefined reference to `libiconv_close'
../../lib/i686-m64/libmisc.a(File.o): In function `File::fgetsUTF8(char*, int)':
/nimrod/srilm/misc/src/File.cc:341: undefined reference to `libiconv_open'
/nimrod/srilm/misc/src/File.cc:379: undefined reference to `libiconv'
/nimrod/srilm/misc/src/File.cc:337: undefined reference to `libiconv_open'
collect2: error: ld returned 1 exit status
test -f ../bin/i686-m64/ngram
make[2]: *** [../bin/i686-m64/ngram] Error 1
make[2]: Leaving directory `/nimrod/srilm/lm/src'
make[1]: *** [release-programs] Error 1
make[1]: Leaving directory `/nimrod/srilm'
make: *** [World] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20140906/b0c57925/attachment.html>


More information about the SRILM-User mailing list