You are missing a boost dependency somewhere. Either the function doesn't exist, you forgot to include it, or you don't have boost installed.
We installed these is something missing? We also tried updating it to 1.58 and that didn't change anything.
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev
sudo apt-get install libboost-all-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libminiupnpc-dev
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libboost1.37-dev