On 2014-06-15, monahb...@gmail.com <monahb...@gmail.com> wrote: > Thanks Rodrigo. > The VMWare install is 32 bit, it's only on the sparc64 that it is 64bit. > Will read up on the time_t
This is related to the storage type used for time values. OpenBSD now uses 64 bit time_t and tv_sec on all architectures (32-bit *and* 64-bit arches). > client_side_reply.cc: In member function 'void > clientReplyContext::buildReplyHeader()': > client_side_reply.cc:1326: warning: format '%ld' expects type 'long > int', but argument 4 has type 'long long int' What's the reason why you don't just use the port/package? Anyway, see the patches in the port, specifically this: --- src/client_side_reply.cc.orig Tue May 6 04:30:25 2014 +++ src/client_side_reply.cc Wed May 7 20:14:52 2014 @@ -1347,7 +1347,7 @@ clientReplyContext::buildReplyHeader() if (http->storeEntry()->timestamp <= squid_curtime) { // put X-Cache-Age: instead of Age: char age[64]; - snprintf(age, sizeof(age), "%ld", (long int) squid_curtime - http->storeEntry()->timestamp); + snprintf(age, sizeof(age), "%lld", (long long) squid_curtime - http->storeEntry()->timestamp); hdr->putExt("X-Cache-Age", age); } } else if (http->storeEntry()->timestamp <= squid_curtime) {