apt install g++
apt install make
apt install libssl1.0-dev./configure --with-openssl \
--prefix=/usr/local/squid \
--sysconfdir=/etc/squid \
--with-default-user=proxy \
--with-logdir=/var/log/squid \
--with-pidfile=/var/run/squid.pid \
--enable-ssl-crtd
make
make installmkdir -p /var/log/squid
chown -R proxy:proxy /var/log/squid/usr/local/squid/libexec/ssl_crtd -c -s /var/lib/ssl_db/usr/local/squid/sbin/squid- Remove
/var/lib/ssl_dbdirectory and recreate as above.
A mess to compile the latest version 4.0.25.
'__builtin___snprintf_chk’ output between ? and ?? bytes into a destination of size ???which google tells me is a bug in GCC and can be ignored._REENTRANTnot being defined.And a host of other issues. Finally got it to compile with the following command.
At different points during the compilation, you may have to remove the last part of the command:
make CFLAGS="-Wall -g -O2 -Wno-error=stringop-truncation -Wno-unknown-warning -Wno-cpp"Note:
gcc --versionshowsgcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0