[squid-users] Squid 4.06 compile errors on Ubuntu 12.04

Chris Horry zerbey at gmail.com
Mon Feb 22 20:02:45 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello All,

Squid 4.06 (and earlier) is failing to compile for me on Ubuntu 12.04,
Squid 3.x compiled without any issues.

make[2]: Entering directory `/usr/local/src/squid-4.0.6/src'
Making all in mem
make[3]: Entering directory `/usr/local/src/squid-4.0.6/src/mem'
depbase=`echo AllocatorProxy.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/bash ../../libtool  --tag=CXX   --mode=compile g++
- -DHAVE_CONFIG_H   -I../.. -I../../include -I../../lib -I../../src
- -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments
- -Wshadow -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2
- -march=native -std=c++0x -MT AllocatorProxy.lo -MD -MP -MF
$depbase.Tpo -c -o AllocatorProxy.lo AllocatorProxy.cc &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include
- -I../../lib -I../../src -I../../include -Wall -Wpointer-arith
- -Wwrite-strings -Wcomments -Wshadow -Werror -Wno-deprecated-register
- -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
AllocatorProxy.lo -MD -MP -MF .deps/AllocatorProxy.Tpo -c
AllocatorProxy.cc  -fPIC -DPIC -o .libs/AllocatorProxy.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include
- -I../../lib -I../../src -I../../include -Wall -Wpointer-arith
- -Wwrite-strings -Wcomments -Wshadow -Werror -Wno-deprecated-register
- -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT
AllocatorProxy.lo -MD -MP -MF .deps/AllocatorProxy.Tpo -c
AllocatorProxy.cc -o AllocatorProxy.o >/dev/null 2>&1
depbase=`echo old_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/bash ../../libtool  --tag=CXX   --mode=compile g++
- -DHAVE_CONFIG_H   -I../.. -I../../include -I../../lib -I../../src
- -I../../include     -Wall -Wpointer-arith -Wwrite-strings -Wcomments
- -Wshadow -Werror -Wno-deprecated-register -pipe -D_REENTRANT -g -O2
- -march=native -std=c++0x -MT old_api.lo -MD -MP -MF $depbase.Tpo -c -o
old_api.lo old_api.cc &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include
- -I../../lib -I../../src -I../../include -Wall -Wpointer-arith
- -Wwrite-strings -Wcomments -Wshadow -Werror -Wno-deprecated-register
- -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT old_api.lo -MD
- -MP -MF .deps/old_api.Tpo -c old_api.cc  -fPIC -DPIC -o .libs/old_api.o
In file included from old_api.cc:14:0:
../../src/base/PackableStream.h:24:36: error: 'virtual
PackableStreamBuf::~PackableStreamBuf()' declared virtual cannot be
defaulted in the class body
../../src/base/PackableStream.h:30:66: error: expected ';' at end of
member declaration
../../src/base/PackableStream.h:30:68: error: 'override' does not name
a type
../../src/base/PackableStream.h:46:22: error: expected ';' at end of
member declaration
../../src/base/PackableStream.h:46:24: error: 'override' does not name
a type
../../src/base/PackableStream.h:56:78: error: expected ';' at end of
member declaration
../../src/base/PackableStream.h:56:80: error: 'override' does not name
a type
In file included from ../../src/security/forward.h:12:0,
                 from ../../src/SquidConfig.h:21,
                 from old_api.cc:26:
../../src/security/Context.h:48:51: error: could not convert template
argument 'nullptr' to 'void (*)(void*)'
../../src/security/Context.h:48:67: error: invalid type in declaration
before ';' token
In file included from ../../src/security/forward.h:13:0,
                 from ../../src/SquidConfig.h:21,
                 from old_api.cc:26:
../../src/security/Session.h:46:34: error: could not convert template
argument 'nullptr' to 'void (*)(void*)'
../../src/security/Session.h:46:50: error: invalid type in declaration
before ';' token
In file included from ../../src/security/ServerOptions.h:12:0,
                 from ../../src/anyp/PortCfg.h:17,
                 from ../../src/AccessLogEntry.h:12,
                 from ../../src/auth/UserRequest.h:14,
                 from ../../src/HttpRequest.h:23,
                 from ../../src/HttpReply.h:15,
                 from ../../src/Store.h:19,
                 from old_api.cc:29:
../../src/security/PeerOptions.h:27:30: error: 'virtual
Security::PeerOptions::~PeerOptions()' declared virtual cannot be
defaulted in the class body
In file included from ../../src/anyp/PortCfg.h:17:0,
                 from ../../src/AccessLogEntry.h:12,
                 from ../../src/auth/UserRequest.h:14,
                 from ../../src/HttpRequest.h:23,
                 from ../../src/HttpReply.h:15,
                 from ../../src/Store.h:19,
                 from old_api.cc:29:
../../src/security/ServerOptions.h:27:32: error: 'virtual
Security::ServerOptions::~ServerOptions()' declared virtual cannot be
defaulted in the class body
In file included from ../../src/Store.h:23:0,
                 from old_api.cc:29:
../../src/store/Controller.h:26:25: error: expected ';' at end of
member declaration
../../src/store/Controller.h:26:27: error: 'override' does not name a ty
pe
../../src/store/Controller.h:29:25: error: expected ';' at end of
member declaration
../../src/store/Controller.h:29:27: error: 'override' does not name a ty
pe
../../src/store/Controller.h:30:23: error: expected ';' at end of
member declaration
../../src/store/Controller.h:30:25: error: 'override' does not name a ty
pe
../../src/store/Controller.h:31:46: error: expected ';' at end of
member declaration
../../src/store/Controller.h:31:48: error: 'override' does not name a ty
pe
../../src/store/Controller.h:32:32: error: expected ';' at end of
member declaration
../../src/store/Controller.h:32:38: error: 'override' does not name a ty
pe
../../src/store/Controller.h:33:32: error: expected ';' at end of
member declaration
../../src/store/Controller.h:33:38: error: 'override' does not name a ty
pe
../../src/store/Controller.h:34:36: error: expected ';' at end of
member declaration
../../src/store/Controller.h:34:42: error: 'override' does not name a ty
pe
../../src/store/Controller.h:35:37: error: expected ';' at end of
member declaration
../../src/store/Controller.h:35:43: error: 'override' does not name a ty
pe
../../src/store/Controller.h:36:37: error: expected ';' at end of
member declaration
../../src/store/Controller.h:36:43: error: 'override' does not name a ty
pe
../../src/store/Controller.h:37:50: error: expected ';' at end of
member declaration
../../src/store/Controller.h:37:56: error: 'override' does not name a ty
pe
../../src/store/Controller.h:38:37: error: expected ';' at end of
member declaration
../../src/store/Controller.h:38:43: error: 'override' does not name a ty
pe
../../src/store/Controller.h:39:23: error: expected ';' at end of
member declaration
../../src/store/Controller.h:39:25: error: 'override' does not name a ty
pe
../../src/store/Controller.h:40:27: error: expected ';' at end of
member declaration
../../src/store/Controller.h:40:29: error: 'override' does not name a ty
pe
../../src/store/Controller.h:41:44: error: expected ';' at end of
member declaration
../../src/store/Controller.h:41:46: error: 'override' does not name a ty
pe
../../src/store/Controller.h:42:37: error: expected ';' at end of
member declaration
../../src/store/Controller.h:42:39: error: 'override' does not name a ty
pe
../../src/store/Controller.h:43:26: error: expected ';' at end of
member declaration
../../src/store/Controller.h:43:28: error: 'override' does not name a ty
pe
cc1plus: error: unrecognized command line option
"-Wno-deprecated-register" [-Werror]
cc1plus: all warnings being treated as errors
make[3]: *** [old_api.lo] Error 1
make[3]: Leaving directory `/usr/local/src/squid-4.0.6/src/mem'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/squid-4.0.6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/squid-4.0.6/src'
make: *** [all-recursive] Error 1


$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.3-1ubuntu5'
- --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
- --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
- --program-suffix=-4.6 --enable-shared --enable-linker-build-id
- --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
- --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
- --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
- --enable-libstdcxx-debug --enable-libstdcxx-time=yes
- --enable-gnu-unique-object --enable-plugin --enable-objc-gc
- --disable-werror --with-arch-32=i686 --with-tune=generic
- --enable-checking=release --build=x86_64-linux-gnu
- --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

Ran configure with no other options.

Any guidance appreciated, it may be user error.

Thanks,

Chris

- -- 
Chris Horry
zerbey at gmail.com
http://www.twitter.com/zerbey
PGP:2B4C654E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlbLaWUACgkQnAAeGCtMZU6eBACgtIUTLiWKUdHz1qRnkNEUSUWo
+GEAnjcipBcktDyi7ZHLRRM9ueo6Wc3m
=Y7tE
-----END PGP SIGNATURE-----


More information about the squid-users mailing list