Re: [squid-users] Error making squid-3.1.0.7-20090412 on Mac OS X 10.4

From: <vollkommen_at_gmx.net>
Date: Tue, 12 May 2009 00:35:21 +0200

Here's what I did and the outcome, with squid-3.HEAD-20090511:

patch -p0 < b9683.patch

vi src/asn.cc
/* template cbdata_type CbDataList<int>::CBDATA_CbDataList;
*/

Then 2) & 3).

/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -c -o Asn.lo Asn.cc
 g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -c Asn.cc -fno-common -DPIC -o .libs/Asn.o
Asn.cc:44: error: expected unqualified-id before 'template'
make[3]: *** [Asn.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

-------- Original-Nachricht --------
> I wonder.
>
> Lets experiment then. If you would please:
>
> 1. comment out the annoying line:
> template cbdata_type CbDataList<int>::CBDATA_CbDataList;
>
>
> 2. add this to src/asn.cc:
>
> class FubarA {
> public:
> char a;
> }
> template cbdata_type CbDataList<FubarA>::CBDATA_CbDataList;
>
>
> 3. add this to acl/Asn.cc:
>
> class FubarB {
> public:
> char b;
> }
> template cbdata_type CbDataList<FubarB>::CBDATA_CbDataList;
>
>
> 4. rebuild and see what happens...
>
>
>
> Amos
>

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
Received on Mon May 11 2009 - 22:35:31 MDT

This archive was generated by hypermail 2.2.0 : Mon May 18 2009 - 12:00:02 MDT