[squid-users] squid-3.4.3-20140203-r13087 can not compile on freebsd 10-stable

From: k simon <chio1990_at_gmail.com>
Date: Tue, 18 Feb 2014 11:44:20 +0800

Hi,List,
  The squid-3.4.3-20140203-r13087 can not compile on freebsd 10-stable.
  When issue "./configure",it report "configure: Native pthreads
support disabled. DiskThreads module automaticaly disabled."
  And compile can not finished, it report
"/usr/include/c++/v1/cstdio:139:9: error: no member named
'ERROR_sprintf_UNSAFE_IN_SQUID' in the global namespace using ::sprintf;".
  It seems that aufs cannot work on freebsd10. And I found some
discussions by freebsd guys.

http://freebsd.1045724.n5.nabble.com/Re-Squid-aufs-crashes-under-10-0-tp5883849.html
http://freebsd.1045724.n5.nabble.com/Re-ports-184993-www-squid33-fails-to-build-on-stable-10-without-AUFS-or-why-AUFS-doesn-t-work-tp5885658.html

Simon

attached info:

configure: cbdata debugging enabled: no
configure: xmalloc stats display: no
configure: With 63 aufs threads
checking for library containing shm_open... none required
checking for DiskIO modules to be enabled... AIO Blocking DiskDaemon
DiskThreads IpcIo Mmapped
checking aio.h usability... yes
checking aio.h presence... yes
checking for aio.h... yes
checking for aio_read in -lrt... yes
configure: Native POSIX AIO support detected.
configure: Enabling AIO DiskIO module
configure: Enabling Blocking DiskIO module
configure: Enabling DiskDaemon DiskIO module
configure: pthread library requires FreeBSD 7 or later
configure: Native pthreads support disabled. DiskThreads module
automaticaly disabled.
configure: Enabling IpcIo DiskIO module
configure: Enabling Mmapped DiskIO module
configure: IO Modules built: AIO Blocking DiskDaemon IpcIo Mmapped
configure: Store modules built: aufs diskd rock ufs
configure: Removal policies to build: lru heap
configure: Disabling ESI processor

Making all in base
/bin/sh ../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I/usr/include -I/usr/include -I../../libltdl -I/usr/include
-I/usr/include -g -O2 -march=native -std=c++0x -I/usr/local/include -MT
AsyncCall.lo -MD -MP -MF .deps/AsyncCall.Tpo -c -o AsyncCall.lo AsyncCall.cc
libtool: compile: c++ -DHAVE_CONFIG_H -I../.. -I../../include
-I../../lib -I../../src -I../../include -I/usr/include -I/usr/include
-I../../libltdl -I/usr/include -I/usr/include -g -O2 -march=native
-std=c++0x -I/usr/local/include -MT AsyncCall.lo -MD -MP -MF
.deps/AsyncCall.Tpo -c AsyncCall.cc -o AsyncCall.o
In file included from AsyncCall.cc:2:
In file included from ./AsyncCall.h:6:
In file included from ./RefCount.h:40:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:432:
/usr/include/c++/v1/cstdio:139:9: error: no member named
'ERROR_sprintf_UNSAFE_IN_SQUID' in the global namespace
using ::sprintf;
      ~~^
../../compat/unsafe.h:10:17: note: expanded from macro 'sprintf'
#define sprintf ERROR_sprintf_UNSAFE_IN_SQUID
                ^
1 error generated.
*** Error code 1

Stop.
make[3]: stopped in /root/kf/squid-3.4.3-20140203-r13087/src/base
*** Error code 1

Stop.
make[2]: stopped in /root/kf/squid-3.4.3-20140203-r13087/src
*** Error code 1

Stop.
make[1]: stopped in /root/kf/squid-3.4.3-20140203-r13087/src
*** Error code 1

Stop.
Received on Tue Feb 18 2014 - 03:44:29 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 18 2014 - 12:00:06 MST