On my fedora 15, the make command failed with this output :
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld a retourné 1 code d'état d'exécution
I had kind of that error on trying to build on Ubuntu 12.04
Adding -pthread to g++ option in Makefile fix the issue.