Re: [squid-users] Squid 3.4.4 is available

From: Marcello Romani <mromani_at_ottotecnica.com>
Date: Tue, 11 Mar 2014 13:56:09 +0100

Il 11/03/2014 05:49, Amos Jeffries ha scritto:
> The Squid HTTP Proxy team is very pleased to announce the availability
> of the Squid-3.4.4 release!
>
>

I tried to compile this new release from source, but make complained when it got to the COSS code.
Problems start at coss/store_dir_coss.cc line 173.
I'm not sure whether there's a bug in the code or my box is missing some package.
The OS is debian 6.0.9 32bit.

My configure line was:

./configure --prefix=/usr/local/squid --enable-xmalloc-statistics --enable-storeio="aufs coss diskd rock ufs" -enable-removal-policies="heap lru" --enable-icmp --enable-delay-pools --enable-ssl

And this is the output from the second run of make -j5 (compiled it on a 4-core box):

[snip lines with no error]

Making all in fs
make[3]: Entering directory `/home/squid3/squid-3.4.4/src/fs'
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -g -o libaufs.la StoreFSaufs.lo
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT store_io_coss.lo -MD -MP -MF .deps/store_io_coss.Tpo -c -o store_io_coss.lo `test -f 'coss/store_io_coss.cc' || echo './'`coss/store_io_coss.cc
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT store_dir_coss.lo -MD -MP -MF .deps/store_dir_coss.Tpo -c -o store_dir_coss.lo `test -f 'coss/store_dir_coss.cc' || echo './'`coss/store_dir_coss.cc
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -g -o libdiskd.la StoreFSdiskd.lo
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockIoState.lo -MD -MP -MF .deps/RockIoState.Tpo -c -o RockIoState.lo `test -f 'rock/RockIoState.cc' || echo './'`rock/RockIoState.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT store_dir_coss.lo -MD -MP -MF .deps/store_dir_coss.Tpo -c coss/store_dir_coss.cc -fPIC -DPIC -o .libs/store_dir_coss.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockIoState.lo -MD -MP -MF .deps/RockIoState.Tpo -c rock/RockIoState.cc -fPIC -DPIC -o .libs/RockIoState.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT store_io_coss.lo -MD -MP -MF .deps/store_io_coss.Tpo -c coss/store_io_coss.cc -fPIC -DPIC -o .libs/store_io_coss.o
libtool: link: /usr/bin/ar cru .libs/libdiskd.a .libs/StoreFSdiskd.o
libtool: link: ranlib .libs/libdiskd.a
libtool: link: /usr/bin/ar cru .libs/libaufs.a .libs/StoreFSaufs.o
libtool: link: ranlib .libs/libaufs.a
libtool: link: ( cd ".libs" && rm -f "libdiskd.la" && ln -s "../libdiskd.la" "libdiskd.la" )
libtool: link: ( cd ".libs" && rm -f "libaufs.la" && ln -s "../libaufs.la" "libaufs.la" )
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockIoRequests.lo -MD -MP -MF .deps/RockIoRequests.Tpo -c -o RockIoRequests.lo `test -f 'rock/RockIoRequests.cc' || echo './'`rock/RockIoRequests.cc
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockRebuild.lo -MD -MP -MF .deps/RockRebuild.Tpo -c -o RockRebuild.lo `test -f 'rock/RockRebuild.cc' || echo './'`rock/RockRebuild.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockIoRequests.lo -MD -MP -MF .deps/RockIoRequests.Tpo -c rock/RockIoRequests.cc -fPIC -DPIC -o .libs/RockIoRequests.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockRebuild.lo -MD -MP -MF .deps/RockRebuild.Tpo -c rock/RockRebuild.cc -fPIC -DPIC -o .libs/RockRebuild.o
cc1plus: warnings being treated as errors
coss/store_dir_coss.cc: In member function 'virtual void CossSwapDir::readCompleted(const char*, int, int, RefCount<ReadRequest>)':
coss/store_dir_coss.cc:173: error: declaration of 'callback' shadows a member of 'this'
coss/store_dir_coss.cc: In member function 'virtual void CossSwapDir::init()':
coss/store_dir_coss.cc:330: error: 'RefCountReference' was not declared in this scope
coss/store_dir_coss.cc: In function 'void storeCossRebuildFromSwapLog(void*)':
coss/store_dir_coss.cc:440: error: 'log' was not declared in this scope
coss/store_dir_coss.cc: In member function 'StoreEntry* CossSwapDir::addDiskRestore(const cache_key*, int, uint64_t, time_t, time_t, time_t, time_t, uint32_t, uint16_t, int)':
coss/store_dir_coss.cc:506: error: declaration of 'flags' shadows a member of 'this'
coss/store_dir_coss.cc: In function 'void storeCossDirRebuild(CossSwapDir*)':
coss/store_dir_coss.cc:553: error: 'opt_foreground_rebuild' was not declared in this scope
cc1plus: warnings being treated as errors
coss/store_io_coss.cc: In member function 'virtual RefCount<StoreIOState> CossSwapDir::createStoreIO(StoreEntry&, void (*)(void*, int, RefCount<StoreIOState>), void (*)(void*, int, RefCount<StoreIOState>), void*)':
coss/store_io_coss.cc:151: error: declaration of 'callback' shadows a member of 'this'
coss/store_io_coss.cc: In member function 'virtual RefCount<StoreIOState> CossSwapDir::openStoreIO(StoreEntry&, void (*)(void*, int, RefCount<StoreIOState>), void (*)(void*, int, RefCount<StoreIOState>), void*)':
coss/store_io_coss.cc:201: error: declaration of 'callback' shadows a member of 'this'
coss/store_io_coss.cc: In member function 'virtual void CossState::read_(char*, size_t, off_t, void (*)(void*, const char*, ssize_t, RefCount<StoreIOState>), void*)':
coss/store_io_coss.cc:299: error: declaration of 'callback_data' shadows a member of 'this'
coss/store_io_coss.cc:299: error: declaration of 'callback' shadows a member of 'this'
coss/store_io_coss.cc:299: error: declaration of 'offset' shadows a member of 'this'
coss/store_io_coss.cc:302: error: declaration of 'SD' shadows a member of 'this'
coss/store_io_coss.cc: In member function 'virtual void CossState::write(const char*, size_t, off_t, void (*)(void*))':
coss/store_io_coss.cc:338: error: declaration of 'offset' shadows a member of 'this'
coss/store_io_coss.cc:353: error: declaration of 'SD' shadows a member of 'this'
coss/store_io_coss.cc: In member function 'void CossState::doCallback(int)':
coss/store_io_coss.cc:404: error: declaration of 'callback' shadows a member of 'this'
coss/store_io_coss.cc: In member function 'void CossMemBuf::maybeWrite(CossSwapDir*)':
coss/store_io_coss.cc:499: error: declaration of 'SD' shadows a member of 'this'
coss/store_io_coss.cc: In member function 'void CossMemBuf::write(CossSwapDir*)':
coss/store_io_coss.cc:514: error: declaration of 'SD' shadows a member of 'this'
coss/store_dir_coss.cc: In member function 'virtual void StoreSearchCoss::next(void (*)(void*), void*)':
coss/store_dir_coss.cc:1164: error: declaration of 'cbdata' shadows a member of 'this'
coss/store_dir_coss.cc:1164: error: declaration of 'callback' shadows a member of 'this'
make[3]: *** [store_dir_coss.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [store_io_coss.lo] Error 1
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockIoRequests.lo -MD -MP -MF .deps/RockIoRequests.Tpo -c rock/RockIoRequests.cc -o RockIoRequests.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockIoState.lo -MD -MP -MF .deps/RockIoState.Tpo -c rock/RockIoState.cc -o RockIoState.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++0x -MT RockRebuild.lo -MD -MP -MF .deps/RockRebuild.Tpo -c rock/RockRebuild.cc -o RockRebuild.o >/dev/null 2>&1
mv -f .deps/RockIoRequests.Tpo .deps/RockIoRequests.Plo
mv -f .deps/RockRebuild.Tpo .deps/RockRebuild.Plo
mv -f .deps/RockIoState.Tpo .deps/RockIoState.Plo
make[3]: Leaving directory `/home/squid3/squid-3.4.4/src/fs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/squid3/squid-3.4.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/squid3/squid-3.4.4/src'
make: *** [all-recursive] Error 1

Thank you in advance.

-- 
Marcello Romani
Received on Tue Mar 11 2014 - 12:56:16 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 12 2014 - 12:00:07 MDT