On 13/11/2012 12:47 a.m., schumacher wrote:
Hi,
I have some problems compiling Squid-3.2.3 on Centos 5.5 or older
Fedora boxes (all 32bit).
Squid 3.1.x worked just fine on the very same servers.
Compiling on Centos 6.0 (64bit) works fine too.
This didn't work out:
export CFLAGS="${CFLAGS} -march=i486"
http://www.linuxquestions.org/questions/linux-software-2/glibc-make-error-undefined-reference-to-%60__sync_fetch_and_add_4-a-571961/
Squid-3 is C++ code built using C++-compiler .... setting the
C-compiler flags does what do you think?
see "./configure --help" for available flags variables you can set.
CXXFLAGS is probably what you wanted there.
Here are the error messages when compiling Squid:
libIpcIo.a(IpcIoFile.o): In function `Ipc::Atomic::WordT<int>::get()
const':
/home/zsoft/proxy/squid-3.2.3/src/../src/ipc/AtomicWord.h:47:
undefined reference to `__sync_fetch_and_add_4'
Squid-3.2 requires a minimum of GCC version 4 to compile. Preferrably
4.2 or later.
Amos