Sort:  

I have had that error multiple times, I was told it's a linking issue. I am not familiar with raspberry pie, never owned one. But for that error I would suggest to double check your boost installation.
try this instead in boost section:

sudo ./bootstrap.sh --prefix=/usr/local
sudo ./b2 install

It does appear to have been the boost install. I probably didn't sudo those in the first attempt.

Update: Nope, I got the same build error, eventually. I'll keep poking at it.
Update: I got it to compile on my Raspberry Pi by adding swap:

sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=2000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img