On 10/10/2013 11:35 PM, Ken Moffat wrote:
> On Thu, Oct 10, 2013 at 11:09:09PM -0400, Casey Daniels wrote:
>> Hello,
>> I'm trying to compile Squid 3.3.9 from Source and I keep getting the
>> error
>>
>> "checking size of size_t ... configure error in '/sources/squid-3.3.9'
>>
>> Configure error: cannot compute size of (size_t).
>>
>> here is the top of my config.log I have the whole thing, its just huge
>> and I also piped the output of the ./configure command if something in
>> it will be a clue.
>>
> What you probably want is the _last_ error in config.log. More
> specifically, look at config.log in 'vim' or 'less' (you are on
> ubuntu, so perhaps you don't have vim installed) and search for
> 'cannot compute size' i.e.
>
> /cannot\ compute\ size
> - type it just like that, hopefully there is only one such report,
> but if there is more than one hit '/' again to find the next one.
>
> My guess is that you are missing some of the infrastructure.
> Google thinks that autotools might be needed for this - perhaps
> 'apt-get install build-essential' will do the necessary, not sure.
>
> https://help.ubuntu.com/community/CompilingEasyHowTo
>> This file contains any messages produced by compilers while
>> running configure, to aid debugging if configure makes a mistake.
>>
>> It was created by Squid Web Proxy configure 3.3.9, which was
>> generated by GNU Autoconf 2.68. Invocation command line was
>>
>> $ ./configure
>>
>> ## --------- ##
>> ## Platform. ##
>> ## --------- ##
>>
>> hostname = build-pc
>> uname -m = x86_64
>> uname -r = 3.8.0-31-generic
>> uname -s = Linux
>> uname -v = #46-Ubuntu SMP Tue Sep 10 20:03:44 UTC 2013
>>
> Please note that we aren't set up to assist people running other
> distributions, so I'm assuming that you are trying this as a first
> step to see if you like building from source, and that you will come
> over to the light side in due course ;-)
>
> Also, ubuntu are still supporting 3.8 kernels, but 3.8.0-31 is well
> out of date, their latest is 3.8.13.11 ( I noticed the patches on
> lkml a few hours ago ).
>
> ĸen
I'm actually trying to build it on a LFS box. I tried it in the chroot
environment. And it didn't work. (Thats what the Configure.log is from)
then I booted into LFS, it didn't work. I did however try it on the
Host system that I originally made LFS on and it did work. If at
possible I try to add packages to my LFS from the CHROOT environment
simply because I have access to web on the same computer and I can copy
and past the commands instead of typing them when following the BLFS
book. I love LFS and BLFS, just wish you guys had EVERY possible
package in there.
configure:5767: checking dependency style of g++
configure:5877: result: gcc3
configure:5902: checking build system type
configure:5916: result: x86_64-unknown-linux-gnu
configure:5936: checking host system type
configure:5949: result: x86_64-unknown-linux-gnu
configure:5976: checking simplified host os
configure:5985: result: linux (version )
configure:6451: checking if g++ supports C++0x features without
additional flags
configure:6488: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:15:21: error: expected identifier before 'sizeof'
static_assert(sizeof(int) <= sizeof(T), "not big enough");
^
conftest.cpp:15:21: error: expected ',' or '...' before 'sizeof'
conftest.cpp:15:63: error: ISO C++ forbids declaration of
'static_assert' with no type [-fpermissive]
static_assert(sizeof(int) <= sizeof(T), "not big enough");
^
conftest.cpp:18:29: error: '>>' should be '> >' within a nested template
argument list
typedef check<check<bool>> right_angle_brackets;
^
conftest.cpp:21:13: error: expected constructor, destructor, or type
conversion before '(' token
decltype(a) b;
^
conftest.cpp:25:15: error: expected unqualified-id before '&&' token
check_type&& cr = static_cast<check_type&&>(c);
^
configure:6488: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Squid Web Proxy"
| #define PACKAGE_TARNAME "squid"
| #define PACKAGE_VERSION "3.3.9"
| #define PACKAGE_STRING "Squid Web Proxy 3.3.9"
| #define PACKAGE_BUGREPORT "http://bugs.squid-cache.org/"
| #define PACKAGE_URL ""
| #define PACKAGE "squid"
| #define VERSION "3.3.9"
| /* end confdefs.h. */
|
| template <typename T>
| struct check
| {
| static_assert(sizeof(int) <= sizeof(T), "not big enough");
| };
|
| typedef check<check<bool>> right_angle_brackets;
|
| int a;
| decltype(a) b;
|
| typedef check<int> check_type;
| check_type c;
| check_type&& cr = static_cast<check_type&&>(c);
| int
| main ()
| {
|
| ;
| return 0;
| }
Here is the last little bit of the configure.log
#define HAVE_STRUCT_TM_TM_GMTOFF 1
#define HAVE_STRUCT_MALLINFO 1
#define HAVE_STRUCT_RUSAGE 1
#define HAVE_STRUCT_IPHDR_IP_HL 1
#define SIZEOF_VOID_P 0
#define SIZEOF_INT64_T 0
#define SIZEOF_LONG 0
configure: exit 77
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page