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

From: Santosh Bhabal <santosh_at_antfarm.in>
Date: Mon, 1 Sep 2014 18:23:03 +0530

CentOS release 6.3 (Final) x86_64

Regards
Santosh

On Mon, Sep 1, 2014 at 6:20 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 1/09/2014 9:34 p.m., Santosh Bhabal wrote:
>> 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
>
>
> Interesting errors. What operating system are you building on and are
> you cross-building for any particular other system?
>
> Amos
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJUBGuoAAoJELJo5wb/XPRjubUH/0c+c+shBlAmhehbcRJwjeaI
> Fscp5c7f7k8E4TAdoJqKhFVTSzkEp8MpRLv1OImpf5FsDF5ZZ9apXk87L7rr42Hi
> lNF/043MVYLsFMTzQX/u/cAVmw65HIVwxVpbrQwvFr9es0JpcZlTmQzb2getzPg4
> dQlAtbTjdqbc+T3Up9+lno8VDtOXtKf2tn48CX8BWiBVWzIL8qt70OMtVmsHLBma
> 8I2faZt7ks6I0yI0gsNhZyWEOo/rX3opLCp01unNKuyn5dJ7LP9v2uCoPik+2X4W
> yBxmeuLWV+pE3IyZUbAB4kCjlQzNhkIfAUMIq25ZFpRgOBw2R1yF1R8Y3X203ck=
> =6cz0
> -----END PGP SIGNATURE-----
Received on Mon Sep 01 2014 - 12:53:11 MDT

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