First : /root/ is not supposed to be use for compiling.
/root/ is not to be used for anything. Never.
Doing non administrative tasks as root is unsafe for you,
and a secrurity risk for all others too, if you are
connected to a network / internet.
Default for compiling can be /home/'user'/tmp/
Squid2.7-STABLE7 chokes in one of your options.
Take one away at a time and try again.
Patching for 2.7-STABLE7 is here :
> Links for squid > [squid_2.7.STABLE7-1.diff.gz]
Roll out the patch anywhere to get a folder debian/
The file 'rules' shows the used config options.
If CentOS 5.x : # yum install squid
gets you ver. 2.6 . CentOS 4.x : ver. 2.5 .
A new version with possibly more usable options
> squid-188.8.131.52-2.fc13.src.rpm : All patching included.
Have a look into 'squid.spec'
.. to see the many included options.
And very easy to rebuild to 'rpm' on CentOS 5.x .
Just works !
rpmbuild -bb squid.spec
.. provides squid-184.108.40.206-2.<arch>.rpm
in /home/'user'/rpms/RPMS/<arch>/ :
Setting up the rpm building account in /home/'user'/