I am looking for help in determining why my compile will not work.
I have been running into the following errors during compile:
/root/work/squid-3.2.1/src/ipc/../../src/ipc/AtomicWord.h:47: undefined reference to `__sync_fetch_and_add_4'
ipc/.libs/libipc.a(PageStack.o):/root/work/squid-3.2.1/src/ipc/../../src/ipc/AtomicWord.h:47: more undefined references to `__sync_fetch_and_add_4' follow
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT<unsigned int>::swap_if(unsigned int, unsigned int)':
/root/work/squid-3.2.1/src/ipc/../../src/ipc/AtomicWord.h:38: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT<int>::swap_if(int, int)':
/root/work/squid-3.2.1/src/ipc/mem/PageStack.cc:88: undefined reference to `__sync_bool_compare_and_swap_4'
ipc/.libs/libipc.a(PageStack.o): In function `Ipc::Atomic::WordT<int>::operator+=(int)':
/root/work/squid-3.2.1/src/ipc/../../src/ipc/AtomicWord.h:31: undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
libtool: link: rm -f ".libs/squidS.o"
make[3]: *** [squid] Error 1
make[3]: Leaving directory `/root/work/squid-3.2.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/work/squid-3.2.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/work/squid-3.2.1/src'
make: *** [all-recursive] Error 1
I am running this on Fedora Core 6 (have been running 3.1.20 with no issue) and gcc version is 4.1.2
Configure options:
'--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--localstatedir=/var' '--datadir=/usr/share' '--sysconfdir=/etc/squid' '--enable-removal-policies=heap,lru' '--enable-storeio=aufs,diskd,ufs' '--enable-ssl' '--with-openssl=/usr/kerberos' '--enable-delay-pools' '--enable-linux-netfilter' '--enable-external-acl-helpers=ip_user,ldap_group,unix_group,wbinfo_group' '--enable-useragent-log' '--enable-referer-log' '--disable-dependency-tracking' '--enable-cachemgr-hostname=localhost' '--enable-cache-digests' '--with-large-files' '--disable-wccpv2' '--disable-wccp' 'CFLAGS=-march=i486' 'LDFLAGS=-pie -lpcreposix -lpcre'
The only references to that error I have seen deal with adding the -march=i486 CFLAG option which I have tried, to no avail.
Any help would be greatly appreciated.
Thanks in advance...
Jeff
Received on Mon Aug 27 2012 - 18:25:43 MDT
This archive was generated by hypermail 2.2.0 : Tue Aug 28 2012 - 12:00:18 MDT