<div dir="ltr">Hello Nickolay,<div><br></div><div>Thank you for your reply. It solved the problem mentioned, but another one appeared. Now I'm getting messages like "undefined reference to `boost::program_options::...", which is weird since -lboost_program_options is included in the Makefile. </div><div><br></div><div>I guess that's not a SRILM related problem, so I'll end this thread (but if you have any suggestion, it's always welcomed). Thank you!</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Best,<div>Fernando </div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 4 November 2016 at 17:02, Nickolay V. Shmyrev <span dir="ltr"><<a href="mailto:nshmyrev@yandex.ru" target="_blank">nshmyrev@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Fernando<br>
<br>
I'm sorry, order of the libraries is also important. It takes -lz from boost from system, not the one from srilm. I suggest you to try the following change in Makefile and it should work:<br>
<br>
<br>
diff -upr t3/Makefile t3.new/Makefile<br>
--- t3/Makefile 2008-08-26 18:07:52.000000000 +0200<br>
+++ t3.new/Makefile 2016-11-04 17:14:05.000000000 +0100<br>
@@ -19,7 +19,7 @@ LD = g++<br>
SRILM=$(HOME)/workspace/srilm<br>
SRILM_INC=$(SRILM)/include<br>
SRILM_LIB=$(SRILM)/lib/i686-<wbr>m64<br>
-SRILM_LIBS=-L$(SRILM_LIB) -loolm -lmisc -ldstruct<br>
+SRILM_LIBS=-L$(SRILM_LIB) -loolm -lmisc -ldstruct -lz -fopenmp<br>
<br>
# location of boost<br>
BOOST_INC=/usr/include<br>
@@ -33,7 +33,7 @@ LDFLAGS += -O3<br>
# and also in svm_light/Makefile and svm_struct/Makefile<br>
CXXFLAGS += -MD -Wall -I$(BOOST_INC) -I$(SRILM_INC)<br>
CFLAGS += -MD -Wall -I$(BOOST_INC)<br>
-LDFLAGS += $(BOOST_LIBS) -lm -lz $(SRILM_LIBS)<br>
+LDFLAGS += $(SRILM_LIBS) $(BOOST_LIBS) -lm<br>
<br>
all: transducer_learn transducer_classify harvest2 harvest_ghkm<br>
<br>
<br>
<br>
<br>
<br>
04.11.2016, 14:22, "Fernando E Alva Manchego" <<a href="mailto:fealvamanchego1@sheffield.ac.uk">fealvamanchego1@sheffield.ac.<wbr>uk</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hello Nickolay,<br>
><br>
> Thank you for your reply.<br>
><br>
> 1) I was only able to download 1.7.0-Lite and, for some reason, I wasn't able to edit the Makefile as the INSTALL instructions suggested. I tried with 1.6.0 instead, but when I ran "make test" all results were DIFFERS.<br>
><br>
> 2) I tried this as well with 1.7.1, but the output is:<br>
><br>
> .../srilm-1.7.1//lib/i686-m64/<wbr>liboolm.a(hmaxent.o): In function `_ZN7hmaxent5model10param_<wbr>sumsEv.omp_fn.2':<br>
> .../srilm-1.7.1/lm/src/<wbr>hmaxent.cc:310: undefined reference to `omp_get_num_threads'<br>
> .../srilm-1.7.1/lm/src/<wbr>hmaxent.cc:310: undefined reference to `omp_get_thread_num'<br>
> .../srilm-1.7.1//lib/i686-m64/<wbr>liboolm.a(hmaxent.o): In function `_ZN7hmaxent5model17ensure_<wbr>exp_paramsEv.omp_fn.0':<br>
> .../srilm-1.7.1/lm/src/<wbr>hmaxent.cc:708: undefined reference to `omp_get_num_threads'<br>
> .../srilm-1.7.1/lm/src/<wbr>hmaxent.cc:708: undefined reference to `omp_get_thread_num'<br>
> ...<br>
> ...<br>
> .../srilm-1.7.1//lib/i686-m64/<wbr>libmisc.a(File.o): In function `File::fprintf(char const*, ...)':<br>
> .../srilm-1.7.1/misc/src/File.<wbr>cc:602: undefined reference to `gzvprintf'<br>
><br>
> Then, I changed in the t3/Makefile the line:<br>
><br>
> SRILM_LIBS=-L$(SRILM_LIB) -loolm -lmisc -ldstruct -lz -fopenmp<br>
><br>
> With -fopenmp added (as well as -lz) I only get:<br>
><br>
> .../srilm-1.7.1//lib/i686-m64/<wbr>libmisc.a(File.o): In function `File::fprintf(char const*, ...)':<br>
> .../srilm-1.7.1/misc/src/File.<wbr>cc:602: undefined reference to `gzvprintf'<br>
><br>
> Which is what I sent in the first email. Any other suggestion? Thank you!<br>
><br>
> Best,<br>
> Fernando<br>
><br>
> On 3 November 2016 at 23:43, Nickolay V. Shmyrev <<a href="mailto:nshmyrev@yandex.ru">nshmyrev@yandex.ru</a>> wrote:<br>
>> Hello Fernando<br>
>><br>
>> This is a bug caused by updates in SRILM 1.7.1, it introduced zlib dependency. You have the following options:<br>
>><br>
>> 1) Use SRILM 1.7.0 instead<br>
>><br>
>> 2) In t3/Makefile change the following line<br>
>><br>
>> SRILM_LIBS=-L$(SRILM_LIB) -loolm -lmisc -ldstruct<br>
>><br>
>> to<br>
>><br>
>> SRILM_LIBS=-L$(SRILM_LIB) -loolm -lmisc -ldstruct -lz<br>
>><br>
>> 03.11.2016, 20:29, "Fernando E Alva Manchego" <<a href="mailto:fealvamanchego1@sheffield.ac.uk">fealvamanchego1@sheffield.ac.<wbr>uk</a>>:<br>
>>> Hello,<br>
>>><br>
>>> I'm trying to install a software that requires SRILM. I followed the instructions in the INSTALL file and run the tests and everything was fine (with SRILM 1.7.1). However, when I tried to compile that software I got the following errors:<br>
>>><br>
>>> ..../srilm-1.7.1//lib/i686-<wbr>m64/libmisc.a(File.o): In function `File::fprintf(char const*, ...)':<br>
>>> ..../srilm-1.7.1/misc/src/<wbr>File.cc:602: undefined reference to `gzvprintf'<br>
>>><br>
>>> I'm not sure if the problem is related to srilm or to the software I'm trying to install. Any help you could give me will be much appreciated.<br>
>>><br>
>>> The software I'm trying to install is here.<br>
>>><br>
>>> The machine I'm trying to install it is a Scientific Linux release 6.8 (Carbon).<br>
>>><br>
>>> Best,<br>
>>> Fernando Alva Manchego<br>
>>> ,<br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> SRILM-User site list<br>
>>> <a href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a><br>
>>> <a href="http://mailman.speech.sri.com/cgi-bin/mailman/listinfo/srilm-user" rel="noreferrer" target="_blank">http://mailman.speech.sri.com/<wbr>cgi-bin/mailman/listinfo/<wbr>srilm-user</a><br>
</div></div></blockquote></div><br></div></div>