Re: [squid-users] Compile error of 3.0-STABLE16 on OpenSolaris

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 27 Jul 2009 00:56:37 +1200

Markus Moeller wrote:
> I get the following compile error on Opensolaris. How can I fix this ?
>
> Thank you
> Markus
>
>
> # uname -a
> SunOS opensolaris 5.11 snv_109 i86pc i386 i86pc
>
> # cc -V
> cc: Sun C 5.9 SunOS_i386 Patch 124868-07 2008/10/07
> usage: cc [ options] files. Use 'cc -flags' for details
>
>
> source='comm.cc' object='comm.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/bash ../cfgaux/depcomp \
> /bin/bash ../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H
> -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I.
> -I../include -I. -I. -I../include -I../include -I../lib/libTrie/include
> -I/usr/include/libxml2 -fhuge-objects -g -c -o comm.lo comm.cc
> CC -DHAVE_CONFIG_H
> -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I.
> -I../include -I. -I. -I../include -I../include -I../lib/libTrie/include
> -I/usr/include/libxml2 -fhuge-objects -g -c comm.cc -o comm.o
> CC: Warning: Option -fhuge-objects passed to ld, if ld is invoked,
> ignored otherwise
> "cbdata.h", line 134: Error: "}" expected instead of ";".
> "cbdata.h", line 135: Error: A declaration was expected instead of "}".
> "MemBuf.h", line 126: Error: "}" expected instead of ";".
> "MemBuf.h", line 53: Error: buf is not defined.

Looks like macros are not working. The one in question expands to a set
of definitions, terminating in "private:". I would think that is the
problem.

But there is some code checking and cleanup before that can be removed.
Every class that uses CBDATA_CLASS2() macro needs to be checked of need
of the "private:".

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE16
   Current Beta Squid 3.1.0.10 or 3.1.0.11
Received on Sun Jul 26 2009 - 12:56:52 MDT

This archive was generated by hypermail 2.2.0 : Sun Jul 26 2009 - 12:00:04 MDT