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.
"MemBuf.h", line 55: Error: buf is not defined.
"MemBuf.h", line 57: Error: size is not defined.
"MemBuf.h", line 59: Error: size is not defined.
"MemBuf.h", line 62: Error: buf is not defined.
"MemBuf.h", line 62: Error: size is not defined.
"MemBuf.h", line 63: Error: size is not defined.
"MemBuf.h", line 63: Error: capacity is not defined.
"MemBuf.h", line 63: Error: size is not defined.
"MemBuf.h", line 63: Error: buf is not defined.
"MemBuf.h", line 63: Error: size is not defined.
"MemBuf.h", line 66: Error: size is not defined.
"MemBuf.h", line 66: Error: capacity is not defined.
"MemBuf.h", line 81: Error: stolen is not defined.
"MemBuf.h", line 128: Error: A declaration was expected instead of "public".
"MemBuf.h", line 140: Error: "," expected instead of ":".
"MemBuf.h", line 148: Error: A declaration was expected instead of "}".
"MemBuf.cci", line 36: Error:<no tag> cannot be initialized in a
constructor.
"MemBuf.cci", line 36: Error:<no tag> cannot be initialized in a
constructor.
"MemBuf.cci", line 36: Error:<no tag> cannot be initialized in a
constructor.
"MemBuf.cci", line 36: Error:<no tag> cannot be initialized in a
constructor.
"MemBuf.cci", line 36: Error:<no tag> cannot be initialized in a
constructor.
Compilation aborted, too many Error messages.
*** Error code 1
make: Fatal error: Command failed for target `comm.lo'
Current working directory /src/src/squid-3.0.STABLE16/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='lib snmplib scripts src icons errors doc helpers test-suite tools';
for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'