Re: [Fwd: Re: error when trying to compile]

From: G. Panula <squidipv6@dont-contact.us>
Date: Tue, 11 Sep 2007 09:13:49 -0500

~~ Amos Jeffries wrote on 09/10/07 19:59 ~~
>> Hi, I'm back in the land of the living. I've sucked down the latest
>> code from cvs and tried to compile it this morning but it errored out.
>>
>> /usr/include/machine/_types.h:45: error: expected constructor,
>> destructor, or type conversion before "typedef"
>> /usr/include/machine/_types.h:69: error: `__int8_t' does not name a type
>> /usr/include/sys/types.h:64: error: `__int8_t' does not name a type
>> /usr/include/sys/stdint.h:77: error: `__int_least8_t' does not name a type
>>
>> I have attached my config.log and the compile error.
>>
>> I think these are the include files in question
>> /usr/include/machine/_types.h
>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sparc64/include/_types.h
>> (no __int8_t listed but there is a __uint8_t)
>>
>> /usr/include/sys/types.h
>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/types.h
>>
>> /usr/include/sys/stdint.h
>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/stdint.h
>>
>> I'm running FreeBSD 6.2 (cvs tag RELENG_6_2). I haven't made any
>> changes to my box and the above include files haven't changed for a
>> while. /shrug
>>
>> Let me know if you need more info.
>>
>> greg
>>
>
> Greg:
> A few things were turned on by default just before 3.0-PRE7 was released.
> So there is quite a bit more code being compiled now by default than was
> before. It looks like a side-effect of those.
>
> Dev:
> Anyone in squid-dev have any ideas? I'm a little out of my league in
> FreeBSD.
>
> Amos
>
>

If it helps here is where the compile failed.

Making all in test
if g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include
 -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT
MemPool.o -MD -MP -MF ".deps/MemPool.Tpo" -c -o MemPool.o MemPool.cc;
then mv -f ".deps/MemPool.Tpo" ".deps/MemPool.Po"; else rm -f
".deps/MemPool.Tpo"; exit 1; fi
In file included from /usr/include/sys/_types.h:33,
                 from /usr/include/machine/endian.h:37,
                 from /usr/include/sys/types.h:44,
                 from ../include/squid_types.h:61,
                 from ../include/config.h:206,
                 from MemPool.cc:84:
/usr/include/machine/_types.h:45: error: expected constructor,
destructor, or type conversion before "typedef"
/usr/include/machine/_types.h:69: error: `__int8_t' does not name a type
In file included from ../include/squid_types.h:61,
                 from ../include/config.h:206,
                 from MemPool.cc:84:
/usr/include/sys/types.h:64: error: `__int8_t' does not name a type
In file included from /usr/include/inttypes.h:33,
                 from ../include/squid_types.h:68,
                 from ../include/config.h:206,
                 from MemPool.cc:84:
/usr/include/sys/stdint.h:77: error: `__int_least8_t' does not name a type
*** Error code 1

Stop in /usr/home/pang/cvs/squid3-ipv6/lib.
*** Error code 1

Stop in /usr/home/pang/cvs/squid3-ipv6/lib.
*** Error code 1

Stop in /usr/home/pang/cvs/squid3-ipv6.

And here is the ./configure command I used
./configure --disable-carp --enable-shared
--enable-removal-policies="lru heap" --bindir=/usr/local/bin
--sbindir=/usr/local/sbin --datadir=/usr/local/etc/squid
--localstatedir=/usr/local/squid --sysconfdir=/usr/local/etc/squid
--disable-linux-netfilter --disable-linux-tproxy --disable-epoll
--disable-internal-dns --disable-http-violations --disable-ident-lookups
--disable-kqueue --disable-wccp --disable-wccpv2
--enable-cachemgr-hostname=proxy.kablah.com
--enable-default-err-language=English --enable-err-languages=English
--enable-auth=basic --enable-basic-auth-helpers=PAM --disable-mempools
--with-cache-user=squid --enable-ipv6 --with-localhost-ipv6

If more info is needed or any suggestions/things to try let me know.

Thanks,
  greg
Received on Wed Sep 12 2007 - 02:41:18 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:05 MDT