[squid-users] squid "make check" error

Alex Rousskov rousskov at measurement-factory.com
Fri Jul 19 12:59:04 UTC 2024


On 2024-07-19 05:04, Rafał Stanilewicz wrote:

> Next step was make check, and it failed with this error:
> ../include/unitTestMain.h:16:10: fatal error: 
> cppunit/BriefTestProgressListener.h: No such file or directory


> I found out that I need to do
> apt install libcppunit-dev
> So i did it.
> 
> I re-ran "make check" , but then things went south completely:
> /root/squid-7.0.0-VCS/lib/../include/unitTestMain.h:61:(.text+0x42b): 
> undefined reference to 
> `CppUnit::TestResult::TestResult(CppUnit::SynchronizedObject::SynchronizationObject*)'


If you have not run ./configure after installing libcppunit-dev, then go 
back to that step _before_ running "make" and "make check" again:

     ./configure ... && make && make check

BTW, if you are building Squid v7+ on a system with N CPU cores, run 
"make -jN" instead of just "make" to speed things up.


HTH,

Alex.



More information about the squid-users mailing list