After some research, I was able to find a patch that worked.
Solution process
Navigate to download all old versions - specifically keepassx-0.4.3.tar.gz
Use this patch or copy from the code pasted below and save to a file
keepassx-0.4.3-gcc47.patch
keepassx-0.4.3-gcc47.patch file contents:
diff -Naur keepassx-0.4.3/src/lib/random.cpp keepassx-0.4.3.new/src/lib/random.cpp --- keepassx-0.4.3/src/lib/random.cpp 2009-06-28 16:22:31.000000000 +0200 +++ keepassx-0.4.3.new/src/lib/random.cpp 2012-04-19 00:20:15.757415510 +0200 @@ -19,6 +19,7 @@ ***************************************************************************/ #include "random.h" +#include <unistd.h> #if defined(Q_WS_X11) || defined(Q_WS_MAC)
tar -xzf keepassx-0.4.3.tar.gz
extract your keepass source foldercd
into the foldersudo apt-get install cmake
(or if using .4.4 you will needsudo apt-get install qt-qmake
.)- You may need some build packages too like
sudo apt-get install libxtst-dev build-essential libqt4-dev
you may need to look those up separately because I ended up installing a lot of those but not really sure which packages were actually necessary
- You may need some build packages too like
Add the patch, assuming you're in your keepass dir and your patch file is one level up:
patch -p1 < ../keepassx-0.4.3-gcc47.patch
run
cmake ./
make
make install
great success!