Amos Jeffries wrote:

Thank you.
I've applied your patches (with one small variation) to squid-3 with
these latest fixes.

Hi Amos, thanks for all your help.

OK ! These are fine for Solaris 10 x86, using gcc 4.6.3.

So, now I tried to compile it under Solaris 10 - *sparc* - with gcc 4.6.3. On a 
V240 and T2000.

(notice that my proxies aren't at these sparc machines - I can check for compile, but not sure I'll able to do real tests).

compile process stops with the following message :

/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -DDEFAULT_STATEDIR=\"/var/squid/var/run/squid\" -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I/usr/local/ssl/include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -pthreads -Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT Queue.lo -MD -MP -MF .deps/Queue.Tpo -c -o Queue.lo Queue.cc libtool: compile: g++ -DHAVE_CONFIG_H -DDEFAULT_STATEDIR=\"/var/squid/var/run/squid\" -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I/usr/local/ssl/include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -pthreads -Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT Queue.lo -MD -MP -MF .deps/Queue.Tpo -c Queue.cc -fPIC -DPIC -o .libs/Queue.o ../../src/ipc/AtomicWord.h: In member function `bool Ipc::Atomic::WordT<ValueType>::swap_if(ValueType, ValueType) [with ValueType = int]':
../../src/ipc/Queue.h:32:   instantiated from here
../../src/ipc/AtomicWord.h:38: error: `__sync_bool_compare_and_swap' was not 
declared in this scope
../../src/ipc/AtomicWord.h:38: warning: unused variable 
'__sync_bool_compare_and_swap'
../../src/ipc/AtomicWord.h: In member function `ValueType Ipc::Atomic::WordT<ValueType>::get() const [with ValueType = int]': ../../src/ipc/AtomicWord.h:48: instantiated from `Ipc::Atomic::WordT<ValueType>::operator ValueType() const [with ValueType = int]'
../../src/ipc/Queue.h:29:   instantiated from here
../../src/ipc/AtomicWord.h:47: error: `__sync_fetch_and_add' was not declared 
in this scope
../../src/ipc/AtomicWord.h:47: warning: unused variable '__sync_fetch_and_add'
/usr/ccs/bin/as: "<stdin>", line 1565: error: symbol "_ZN3Ipc3Mem6ObjectINS_15FewToFewBiQueue8MetadataEED1Ev" is used but not defined /usr/ccs/bin/as: "<stdin>", line 1565: error: symbol "_ZN3Ipc3Mem6ObjectINS_15FewToFewBiQueue8MetadataEED0Ev" is used but not defined /usr/ccs/bin/as: "<stdin>", line 1565: error: symbol "_ZN3Ipc3Mem6ObjectINS_17OneToOneUniQueuesEED1Ev" is used but not defined /usr/ccs/bin/as: "<stdin>", line 1565: error: symbol "_ZN3Ipc3Mem6ObjectINS_17OneToOneUniQueuesEED0Ev" is used but not defined /usr/ccs/bin/as: "<stdin>", line 1565: error: symbol "_ZN3Ipc3Mem6ObjectINS_12QueueReadersEED1Ev" is used but not defined /usr/ccs/bin/as: "<stdin>", line 1565: error: symbol "_ZN3Ipc3Mem6ObjectINS_12QueueReadersEED0Ev" is used but not defined
/usr/ccs/bin/as: "<stdin>": , approx line 1565: internal error: 
evaluate_symbol_expression(): op 48?
gmake[3]: *** [Queue.lo] Error 1
gmake[3]: Leaving directory 
`/export/home/saci/martins/sources/squid/squid-3.2.0.16/src/ipc'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/export/home/saci/martins/sources/squid/squid-3.2.0.16/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory 
`/export/home/saci/martins/sources/squid/squid-3.2.0.16/src'
gmake: *** [all-recursive] Error 1





You mentioned SunCC had problems. Would you be able to help debug those
too?

Amos



--
 ---------------------------------------------------------------
 Jose Marcio MARTINS DA CRUZ           http://j-chkmail.ensmp.fr
 Ecole des Mines de Paris
 60, bd Saint Michel                      75272 - PARIS CEDEX 06
 mailto:[email protected]

Reply via email to