in the
http://wiki.squid-cache.org/SquidFaq/CompilingSquid#Debian.2C_Ubuntu
it doesnt have anything about the packages needed for the compilation.
i just provided this list that is working for ubuntu 10.04 + and also
debian 6.
sudo apt-get install build-essential libldap2-dev libpam0g-dev libdb-dev
dpatch cdbs libsasl2-dev debhelper libcppunit-dev libkrb5-dev comerr-dev
libcap2-dev libexpat1-dev libxml2-dev libcap2-dev dpkg-dev curl
libssl-dev libssl0.9.8 libssl0.9.8-dbg libcurl4-openssl-dev
also look at
http://ubuntuforums.org/showthread.php?p=11273005#post11273005
Regards
Eliezer