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