Hi Robert,
At 12.39 23/04/2006, Robert Collins wrote:
>On Sun, 2006-04-23 at 12:27 +0200, Guido Serassio wrote:
> >
> > make[4]: Entering directory `/home/serassio/squid3/src'
> > make[4]: `tests/testAuth' is up to date.
> > make[4]: `tests/testBoilerplate' is up to date.
> > depbase=`echo tests/testHeader_HttpHeader.o | sed
> > 's|[^/]*$|.deps/&|;s|\.o$||'`; \
> > if g++ -DHAVE_CONFIG_H
> > -DDEFAULT_CONFIG_FILE=\"/usr/local/squid3/etc/squid.conf\" -I. -I.
> > -I../include -I.
> > -I. -I../include -I../include -I../lib/libTrie/include
> > -I../lib/cppunit-1.10.0/include -I ../lib/cppunit-
> > 1.10.0/include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith
> > -Wwrite-strings -Wcomments -D_REENT
> > RANT -g -O2 -MT tests/testHeader_HttpHeader.o -MD -MP -MF
> > "$depbase.Tpo" -c -o tests/testHeader_HttpHeader
> > .o tests/testHeader_HttpHeader.cc; \
> > then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo";
> > exit 1; fi
> > In file included from HttpHeader.h:38,
> > from tests/testHeader_HttpHeader.cc:4:
> > HttpHeaderRange.h: In static member function `static void*
> > HttpHdrRangeSpec::operator new(unsigned int)':
> > HttpHeaderRange.h:66: error: `assert' undeclared (first use this
> > function)
> > HttpHeaderRange.h:66: error: (Each undeclared identifier is reported
> > only once
> > for each function it appears in.)
> > HttpHeaderRange.h: In static member function `static void*
> > HttpHdrRange::operator new(unsigned int)':
> > HttpHeaderRange.h:115: error: `assert' undeclared (first use this
> > function)
> > make[4]: *** [tests/testHeader_HttpHeader.o] Error 1
>
>
>That means HttpHeaderRange.h isn't compileable when HttpHeadere is
>included on its own.
>
>Try adding #include "squid.h" to the top of HttpHeaderRange.h.
Still fails, in a different way:
make[4]: `tests/testBoilerplate' is up to date.
depbase=`echo tests/testHeader_HttpHeader.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`; \
if g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid3/etc/squid.conf\" -I. -I.
-I../include -I.
-I. -I../include -I../include -I../lib/libTrie/include
-I../lib/cppunit-1.10.0/include -I ../lib/cppunit-
1.10.0/include -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -D_REENT
RANT -g -O2 -MT tests/testHeader_HttpHeader.o -MD -MP -MF
"$depbase.Tpo" -c -o tests/testHeader_HttpHeader
.o tests/testHeader_HttpHeader.cc; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
In file included from squid.h:392,
from HttpHeaderRange.h:37,
from HttpHeader.h:38,
from tests/testHeader_HttpHeader.cc:4:
structs.h:672: error: `HDR_ENUM_END' was not declared in this scope
structs.h:674: error: `HDR_ENUM_END' was not declared in this scope
In file included from squid.h:392,
from HttpHeaderRange.h:37,
from HttpHeader.h:38,
from tests/testHeader_HttpHeader.cc:4:
structs.h:886: error: 'http_hdr_type' is used as a type, but is not defined as
a type.
structs.h:888: error: 'field_type' is used as a type, but is not defined as a
type.
structs.h: In constructor `HttpHeaderFieldInfo::HttpHeaderFieldInfo()':
structs.h:884: error: class `HttpHeaderFieldInfo' does not have any field named
`id'
structs.h:884: error: `HDR_ACCEPT' undeclared (first use this function)
structs.h:884: error: (Each undeclared identifier is reported only once for
each function it appears in.)
structs.h:884: error: class `HttpHeaderFieldInfo' does not have any field named
`type'
structs.h:884: error: `ftInvalid' undeclared (first use this function)
structs.h: At global scope:
structs.h:897: error: 'http_hdr_type' is used as a type, but is not defined as
a type.
structs.h:1785: error: syntax error before `*' token
In file included from squid.h:393,
from HttpHeaderRange.h:37,
from HttpHeader.h:38,
from tests/testHeader_HttpHeader.cc:4:
protos.h:275: error: `http_hdr_type' was not declared in this scope
protos.h:275: error: parse error before `)' token
protos.h:276: error: `http_hdr_type' was not declared in this scope
protos.h:276: error: parse error before `)' token
protos.h:313: error: parse error before `char'
protos.h:314: error: parse error before `char'
protos.h:327: error: type specifier omitted for parameter `http_hdr_type'
protos.h:327: error: parse error before `,' token
protos.h:344: error: type specifier omitted for parameter `http_hdr_type'
protos.h:344: error: parse error before `)' token
protos.h:345: error: type specifier omitted for parameter `http_hdr_type'
protos.h:345: error: parse error before `,' token
protos.h:346: error: type specifier omitted for parameter `http_hdr_type'
protos.h:346: error: parse error before `,' token
protos.h:347: error: type specifier omitted for parameter `http_hdr_type'
protos.h:347: error: parse error before `,' token
protos.h:348: error: type specifier omitted for parameter `http_hdr_type'
protos.h:348: error: parse error before `,' token
protos.h:358: error: type specifier omitted for parameter `http_hdr_type'
protos.h:358: error: parse error before `)' token
protos.h:359: error: type specifier omitted for parameter `http_hdr_type'
protos.h:359: error: parse error before `)' token
protos.h:360: error: type specifier omitted for parameter `http_hdr_type'
protos.h:360: error: parse error before `)' token
protos.h:362: error: type specifier omitted for parameter `http_hdr_type'
protos.h:362: error: parse error before `)' token
protos.h:365: error: type specifier omitted for parameter `http_hdr_type'
protos.h:365: error: parse error before `)' token
protos.h:366: error: type specifier omitted for parameter `http_hdr_type'
protos.h:366: error: parse error before `)' token
protos.h:367: error: type specifier omitted for parameter `http_hdr_type'
protos.h:367: error: parse error before `,' token
protos.h:368: error: type specifier omitted for parameter `http_hdr_type'
protos.h:368: error: parse error before `)' token
protos.h:369: error: type specifier omitted for parameter `http_hdr_type'
protos.h:369: error: parse error before `)' token
protos.h:371: error: type specifier omitted for parameter `http_hdr_type'
protos.h:371: error: parse error before `,' token
protos.h:374: error: type specifier omitted for parameter `http_hdr_type'
protos.h:374: error: parse error before `)' token
protos.h:379: error: type specifier omitted for parameter `http_hdr_type'
protos.h:379: error: parse error before `)' token
In file included from tests/testHeader_HttpHeader.cc:4:
HttpHeader.h:47: error: `HDR_ACCEPT' used prior to declaration
HttpHeader.h:119: error: `ftInvalid' used prior to declaration
make[4]: *** [tests/testHeader_HttpHeader.o] Error 1
make[4]: Leaving directory `/home/serassio/squid3/src'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/serassio/squid3/src'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/serassio/squid3/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/serassio/squid3/src'
make: *** [check-recursive] Error 1
>Tell me, do you inlines enabled or disabled?
Should be enabled:
/* Keyword used by squid for inlining methods */
#define _SQUID_INLINE_ inline
/* Include inline methods into header file */
#define _USE_INLINE_
Regards
Guido
-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sun Apr 23 2006 - 05:55:10 MDT
This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:03 MDT