In order to build the 3.2.0 release the following additional actions were needed:
sleuthkit-3.2.0/tsk3/auto/sqlite3.c had to be patched by adding the following two lines:
#include <dlfcn.h>
#include <pthread.h>
Next to this, the line:
pthread_mutexattr_settype(&recursiveAttr, PTHREAD_MUTEX_RECURSIVE);
did not compile, changing it to
pthread_mutexattr_settype(&recursiveAttr, PTHREAD_MUTEX_RECURSIVE_NP);
Fixed this, but not sure if that is the right thing to do.
After fixing the above, linking failed. Managed to complete the build process using the following commands:
cd tools/autotools/
g++ -g -O2 -o tsk_loaddb tsk_loaddb.o -L/usr/local/lib ../../tsk3/.libs/libtsk3.a /usr/lib/gcc/i586-suse-linux/4.1.2/libstdc++.so -lm -lc -lgcc_s /usr/local/lib/libewf.so -lz -Wl,-rpath -Wl,/usr/lib/gcc/i586-suse-linux/4.1.2 -Wl,-rpath -Wl,/usr/lib/gcc/i586-suse-linux/4.1.2 -lpthread -ldl
cd ../..
make
The g++ command above was the one executed by make , but than with '-lpthread -ldl ' added to it.