<div dir="ltr">Good morning Gentlemen, <div><br></div><div>that's my first time here, so please forgive me for any mistakes. </div><div>I decided to make a test run of Squid 7 on our test server, running Ubuntu 24.04, but stumbled upon some issue during the "make check" step</div><div><br></div><div>I downloaded the squid-7.0.0-20240706-r314e430471.tar.bz2,  </div><div>(BTW - I wanted to verify the signature, but I was not able to find it on vhttp://<a href="http://www.squid-cache.org/Versions/v7/sig.dyn#SHA1">www.squid-cache.org/Versions/v7/sig.dyn#SHA1</a> ), </div><div><br></div><div>As a preparation, I ran </div><div><br></div><div><font face="monospace">apt update && apt upgrade</font></div><div><font face="monospace">aptitude build-dep squid</font></div><div><font face="monospace">apt install debhelper-compat libcap2-dev libssl-dev<br></font></div><div><br></div><div>I configured it with </div><div><font face="monospace">./configure  --enable-ssl-crtd --with-openssl --prefix=/usr     --localstatedir=/var     --libexecdir=${prefix}/lib/squid     --datadir=${prefix}/share/squid     --sysconfdir=/etc/squid     --with-default-user=proxy     --with-logdir=/var/log/squid     --with-pidfile=/var/run/squid.pid</font><br></div><div><div><br></div><div>The process was completed successfully. Then </div><div><font face="monospace">make </font></div><div>and it finished completely. The last lines of make process: </div><div><font face="monospace">make[1]: Leaving directory '/root/squid-7.0.0-VCS/tools'<br>Making all in test-suite<br>make[1]: Entering directory '/root/squid-7.0.0-VCS/test-suite'<br>make[1]: Nothing to be done for 'all'.<br>make[1]: Leaving directory '/root/squid-7.0.0-VCS/test-suite'<br>make[1]: Entering directory '/root/squid-7.0.0-VCS'<br>make[1]: Nothing to be done for 'all-am'.</font><br></div><div><br></div><div>Next step was make check, and it failed with this error: </div><div><font face="monospace"><br></font></div><div><font face="monospace">make[3]: Leaving directory '/root/squid-7.0.0-VCS/lib/ntlmauth'<br>make[2]: Leaving directory '/root/squid-7.0.0-VCS/lib/ntlmauth'<br>make[2]: Entering directory '/root/squid-7.0.0-VCS/lib'<br>make  tests/testRFC1738<br>make[3]: Entering directory '/root/squid-7.0.0-VCS/lib'<br>depbase=`echo tests/testRFC1738.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\<br>g++ -std=c++17 -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/share/squid\" -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"   -I.. -I../include -I../lib -I../src -I../include    -Wall -Wextra -Wimplicit-fallthrough=5 -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Wmissing-declarations -Woverloaded-virtual -Werror -pipe -D_REENTRANT -g -O2 -march=native -MT tests/testRFC1738.o -MD -MP -MF $depbase.Tpo -c -o tests/testRFC1738.o tests/testRFC1738.cc &&\<br>mv -f $depbase.Tpo $depbase.Po<br>In file included from tests/testRFC1738.cc:10:<br>../include/unitTestMain.h:16:10: fatal error: cppunit/BriefTestProgressListener.h: No such file or directory<br>   16 | #include <cppunit/BriefTestProgressListener.h><br>      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>compilation terminated.<br>make[3]: *** [Makefile:990: tests/testRFC1738.o] Error 1<br>make[3]: Leaving directory '/root/squid-7.0.0-VCS/lib'<br>make[2]: *** [Makefile:1347: check-am] Error 2<br>make[2]: Leaving directory '/root/squid-7.0.0-VCS/lib'<br>make[1]: *** [Makefile:1027: check-recursive] Error 1<br>make[1]: Leaving directory '/root/squid-7.0.0-VCS/lib'<br>make: *** [Makefile:606: check-recursive] Error 1<br></font></div><div><br></div><div>I found out that I need to do </div><div><font face="monospace">apt install libcppunit-dev</font><br></div><div><font face="arial, sans-serif">So i did it. </font></div><div><br></div><div>I re-ran "make check" , but then things went south completely: </div><div><font face="monospace">...</font></div><div><font face="monospace">make  tests/testRFC1738<br>make[3]: Entering directory '/root/squid-7.0.0-VCS/lib'<br>depbase=`echo tests/testRFC1738.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\<br>g++ -std=c++17 -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/share/squid\" -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\"   -I.. -I../include -I../lib -I../src -I../include    -Wall -Wextra -Wimplicit-fallthrough=5 -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Wmissing-declarations -Woverloaded-virtual -Werror -pipe -D_REENTRANT -g -O2 -march=native -MT tests/testRFC1738.o -MD -MP -MF $depbase.Tpo -c -o tests/testRFC1738.o tests/testRFC1738.cc &&\<br>mv -f $depbase.Tpo $depbase.Po<br>/bin/bash ../libtool  --tag=CXX   --mode=link g++ -std=c++17 -Wall -Wextra -Wimplicit-fallthrough=5 -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Wmissing-declarations -Woverloaded-virtual -Werror -pipe -D_REENTRANT -g -O2 -march=native  -g -o tests/testRFC1738 tests/testRFC1738.o ../lib/<a href="http://libmiscencoding.la">libmiscencoding.la</a> ../lib/<a href="http://libmiscutil.la">libmiscutil.la</a>  ../compat/<a href="http://libcompatsquid.la">libcompatsquid.la</a><br>libtool: link: g++ -std=c++17 -Wall -Wextra -Wimplicit-fallthrough=5 -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Wmissing-declarations -Woverloaded-virtual -Werror -pipe -D_REENTRANT -g -O2 -march=native -g -o tests/testRFC1738 tests/testRFC1738.o  ../lib/.libs/libmiscencoding.a ../lib/.libs/libmiscutil.a ../compat/.libs/libcompatsquid.a<br>/usr/bin/ld: tests/testRFC1738.o: warning: relocation against `_ZTVN7CppUnit27TestSuiteBuilderContextBaseE' in read-only section `.text._ZN11TestRfc173815addTestsToSuiteERN7CppUnit27TestSuiteBuilderContextBaseE[_ZN11TestRfc173815addTestsToSuiteERN7CppUnit27TestSuiteBuilderContextBaseE]'<br>/usr/bin/ld: tests/testRFC1738.o: in function `TestProgram::runTests()':<br>/root/squid-7.0.0-VCS/lib/../include/unitTestMain.h:61:(.text+0x42b): undefined reference to `CppUnit::TestResult::TestResult(CppUnit::SynchronizedObject::SynchronizationObject*)'<br>/usr/bin/ld: /root/squid-7.0.0-VCS/lib/../include/unitTestMain.h:64:(.text+0x435): undefined reference to `CppUnit::TestResultCollector::TestResultCollector(CppUnit::SynchronizedObject::SynchronizationObject*)'<br>/usr/bin/ld: /root/squid-7.0.0-VCS/lib/../include/unitTestMain.h:65:(.text+0x440): undefined reference to `CppUnit::TestResult::addListener(CppUnit::TestListener*)'<br>/usr/bin/ld: /root/squid-7.0.0-VCS/lib/../include/unitTestMain.h:71:(.text+0x44d): undefined reference to `CppUnit::TextTestProgressListener::TextTestProgressListener()'<br>/usr/bin/ld: /root/squid-7.0.0-VCS/lib/../include/unitTestMain.h:72:(.text+0x458): undefined reference to `CppUnit::TestResult::addListener(CppUnit::TestListener*)'</font><br></div><div><font face="monospace">...</font></div><div><font face="monospace">/usr/bin/ld: tests/testRFC1738.o:(.data.rel.ro._ZTVN7CppUnit10TestCallerI11TestRfc1738EE[_ZTVN7CppUnit10TestCallerI11TestRfc1738EE]+0x68): undefined reference to `CppUnit::Test::checkIsValidIndex(int) const'<br>/usr/bin/ld: tests/testRFC1738.o:(.data.rel.ro._ZTVN7CppUnit10TestCallerI11TestRfc1738EE[_ZTVN7CppUnit10TestCallerI11TestRfc1738EE]+0x70): undefined reference to `CppUnit::TestLeaf::doGetChildTestAt(int) const'<br>/usr/bin/ld: warning: creating DT_TEXTREL in a PIE<br>collect2: error: ld returned 1 exit status<br>make[3]: *** [Makefile:936: tests/testRFC1738] Error 1<br>make[3]: Leaving directory '/root/squid-7.0.0-VCS/lib'<br>make[2]: *** [Makefile:1347: check-am] Error 2<br>make[2]: Leaving directory '/root/squid-7.0.0-VCS/lib'<br>make[1]: *** [Makefile:1027: check-recursive] Error 1<br>make[1]: Leaving directory '/root/squid-7.0.0-VCS/lib'<br>make: *** [Makefile:606: check-recursive] Error 1<br></font></div><div><br></div><div>Before I re-compile the whole package and drill down to the configuration process, let me ask if there is something obvious that I missed, or that you can see in the process. <br></div><div><br></div><div>I can provide all the logs needed. </div><div><br></div><div>Thank you in advance. </div><div><br></div><div>Rafal Stanilewicz</div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Zanim wydrukujesz, pomyśl o drukarce.. </div></div></div>