Post
Topic
Board Beginners & Help
Re: rpcminer-mod (Modified puddinpop's miner)
by
Malstrond
on 14/02/2012, 21:50:53 UTC
Building failed for me too. Although not during compilation:
Code:
Linking CXX executable rpcminer
/usr/bin/ld: CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_mutexattr_settype@@GLIBC_2.2.5' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [cmake-rpcminer/rpcminer] Error 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make: *** [all] Error 2
Using make 3.82, gcc 4.6.2, binutils 2.22.0, Kernel 3.2.5 on Arch Linux.

I had to add -lpthread to CMAKE_EXE_LINKER_FLAGS:STRING in CMakeCache.txt after configuration to make it work.