[squid-users] error: #error .... is not 32-bit or 64-bit

From: Santosh Bhabal <santosh_at_antfarm.in>
Date: Mon, 1 Sep 2014 15:04:43 +0530

Hello Experts,

I am getting below error while compiling Squid 3.4.7 :

[root_at_localhost squid-3.4.7]# make all
Making all in compat
make[1]: Entering directory `/opt/squid-3.4.7/compat'
source='assert.cc' object='assert.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/sh ../cfgaux/depcomp \
        /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include
-I../libltdl -c -o assert.lo assert.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib
-I../src -I../include -I../libltdl -c assert.cc -o .libs/assert.o
In file included from ../compat/compat.h:51,
                 from ../include/squid.h:66,
                 from assert.cc:32:
../compat/types.h:134:2: error: #error size_t is not 32-bit or 64-bit
In file included from ../compat/compat.h:81,
                 from ../include/squid.h:66,
                 from assert.cc:32:
../compat/stdvarargs.h:31:2: error: #error XX **NO VARARGS ** XX
In file included from ../compat/compat.h:80,
                 from ../include/squid.h:66,
                 from assert.cc:32:
../compat/compat_shared.h:97: error: field 'ru_stime' has incomplete type
../compat/compat_shared.h:98: error: field 'ru_utime' has incomplete type
In file included from ../compat/compat_shared.h:219,
                 from ../compat/compat.h:80,
                 from ../include/squid.h:66,
                 from assert.cc:32:
../compat/strtoll.h:14: error: 'int64_t' does not name a type
assert.cc: In function 'void xassert(char*, char*, int)':
assert.cc:36: error: 'stderr' was not declared in this scope
assert.cc:36: error: 'fprintf' was not declared in this scope
assert.cc:37: error: 'abort' was not declared in this scope
make[1]: *** [assert.lo] Error 1
make[1]: Leaving directory `/opt/squid-3.4.7/compat'
make: *** [all-recursive] Error 1

Please help.

Regards
Santosh
Received on Mon Sep 01 2014 - 09:34:52 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 01 2014 - 12:00:05 MDT