Search squid archive

Re: Is squid for OpenBSD 5.5 broken????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Speaking to the subject question ... no more than some other OS.

The code assumes a 32-bit time_t value. OpenBSD seems to have migrated
to a 64-bit or larger size.

There is a patch working its ways down to the stable branch now. For now
you can change that lines format macro to %lld or cast the time
parameters to (long int).

Amos

On 16/06/2014 2:00 a.m., Monah Baki wrote:
> Hi all,
> 
> Using ./configure --prefix=/usr/local/squid --with-filedescriptors=32768
> --enable-snmp --with-large-files
> 
> 
> I installed OpenBSD 5.4 on a vmware workstation and squid 3.4.5, works fine.
> 
> 
> However, OpenBSD 5.5 on both vmware workstation and on a SPARC64
> T5220, I get the following error running "make",
> 
> 
> po -c -o client_side.o client_side.cc && mv -f $depbase.Tpo $depbase.Po
> depbase=`echo client_side_reply.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;
> g++ -DHAVE_CONFIG_H
> -DDEFAULT_CONFIG_FILE=\"/usr/
> local/squid/etc/squid.conf\"
> -DDEFAULT_SQUID_DATA_DIR=\"/usr/local/squid/share\"
> -DDEFAULT_SQUID_CONFIG_DIR=\"/usr/local/squid/etc\"  -I.. -I../include
> -I../lib  -I../src -I../include   -I/usr/include/kerberosV
> -I/usr/include/kerberosV  -I../libltdl  -I../src -I../libltdl
> -I/usr/include/kerberosV  -I/usr/include/kerberosV
> -I/usr/include/kerberosV  -I/usr/include/kerberosV  -Wall
> -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
> -D_REENTRANT -g -O2 -MT client_side_reply.o -MD -MP -MF $depbase.Tpo
> -c -o client_side_reply.o client_side_reply.cc && mv -f $depbase.Tpo
> $depbase.Po
> cc1plus: warnings being treated as errors
> 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'
> *** Error 1 in src (Makefile:6970 'client_side_reply.o')
> *** Error 1 in src (Makefile:7116 'all-recursive')
> *** Error 1 in src (Makefile:6036 'all')
> *** Error 1 in /home/mbaki/squid-3.4.5 (Makefile:587 'all-recursive')
> 
> 
> 
> 
> 
> Thanks
> 





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux