redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

make failed ---undefined reference to symbol 'sem_post@@GLIBC_2.2.5' #83

Open andyyuan78 opened 9 years ago

andyyuan78 commented 9 years ago

Linking CXX executable ngram_query [ 28%] Built target ngram_query [ 28%] Building CXX object klm/lm/builder/CMakeFiles/dump_counts.dir/print.cc.o [ 28%] Building CXX object klm/lm/builder/CMakeFiles/dump_counts.dir/dump_counts_main.cc.o Linking CXX executable dump_counts /usr/bin/ld: ../../util/stream/libklm_util_stream.a(chain.cc.o): undefined reference to symbol 'sem_post@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: * [klm/lm/builder/dump_counts] Error 1 make[1]: * [klm/lm/builder/CMakeFiles/dump_counts.dir/all] Error 2 make: *\ [all] Error 2

veer66 commented 9 years ago

Does this commit https://github.com/redpony/cdec/pull/82 work?

khanhptnk commented 8 years ago

It works, please commit it!