Re: [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 18:02:40 +0800

Hi,Amos,
   I have tried r13094, it seems that the DiskThreads module is disabled
as before. And cannot finished compile because ecap error.

Simon

attached info:

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.

In file included from Config.cc:5:
In file included from ../../../src/adaptation/ecap/Host.h:8:
In file included from /usr/local/include/libecap/host/host.h:7:
/usr/local/include/libecap/common/memory.h:13:12: error: no member named
'tr1' in namespace 'std'
using std::tr1::weak_ptr;
       ~~~~~^
/usr/local/include/libecap/common/memory.h:14:12: error: no member named
'tr1' in namespace 'std'
using std::tr1::shared_ptr;
       ~~~~~^
In file included from Config.cc:5:
In file included from ../../../src/adaptation/ecap/Host.h:8:
/usr/local/include/libecap/host/host.h:25:34: error: no template named
'weak_ptr'; did you mean 'std::weak_ptr'?
                 virtual void noteService(const
weak_ptr<adapter::Service> &s) = 0;
                                                ^~~~~~~~
                                                std::weak_ptr
/usr/include/c++/v1/tr1/memory:4983:24: note: 'std::weak_ptr' declared here
class _LIBCPP_TYPE_VIS weak_ptr
                        ^
In file included from Config.cc:5:
In file included from ../../../src/adaptation/ecap/Host.h:8:
/usr/local/include/libecap/host/host.h:32:11: error: no template named
'shared_ptr'; did you mean 'std::shared_ptr'?
                 virtual shared_ptr<Message> newRequest() const = 0;
                         ^~~~~~~~~~
                         std::shared_ptr
/usr/include/c++/v1/tr1/memory:3817:24: note: 'std::shared_ptr' declared
here
class _LIBCPP_TYPE_VIS shared_ptr
                        ^
In file included from Config.cc:5:
In file included from ../../../src/adaptation/ecap/Host.h:8:
/usr/local/include/libecap/host/host.h:33:11: error: no template named
'shared_ptr'; did you mean 'std::shared_ptr'?
                 virtual shared_ptr<Message> newResponse() const = 0;
                         ^~~~~~~~~~
                         std::shared_ptr
/usr/include/c++/v1/tr1/memory:3817:24: note: 'std::shared_ptr' declared
here
class _LIBCPP_TYPE_VIS shared_ptr
                        ^
In file included from Config.cc:5:
../../../src/adaptation/ecap/Host.h:22:45: error: no template named
'weak_ptr' in namespace 'libecap'; did you mean 'std::weak_ptr'?
     virtual void noteService(const
libecap::weak_ptr<libecap::adapter::Service> &s);
                                    ~~~~~~~~~^~~~~~~~
                                    std::weak_ptr
/usr/include/c++/v1/tr1/memory:4983:24: note: 'std::weak_ptr' declared here
class _LIBCPP_TYPE_VIS weak_ptr
                        ^
In file included from Config.cc:5:
../../../src/adaptation/ecap/Host.h:25:22: error: no template named
'shared_ptr' in namespace 'libecap'; did you mean 'std::shared_ptr'?
     typedef libecap::shared_ptr<libecap::Message> MessagePtr;
             ~~~~~~~~~^~~~~~~~~~
             std::shared_ptr
/usr/include/c++/v1/tr1/memory:3817:24: note: 'std::shared_ptr' declared
here
class _LIBCPP_TYPE_VIS shared_ptr
                        ^
In file included from Config.cc:6:
../../../src/adaptation/ecap/ServiceRep.h:28:22: error: no template
named 'shared_ptr' in namespace 'libecap'; did you mean 'std::shared_ptr'?
     typedef libecap::shared_ptr<libecap::adapter::Service> AdapterService;
             ~~~~~~~~~^~~~~~~~~~
             std::shared_ptr
/usr/include/c++/v1/tr1/memory:3817:24: note: 'std::shared_ptr' declared
here
class _LIBCPP_TYPE_VIS shared_ptr
                        ^
8 errors generated.
*** Error code 1

Stop.
make[4]: stopped in /root/kf/squid/squid/3.4/src/adaptation/ecap
*** Error code 1

Stop.
make[3]: stopped in /root/kf/squid/squid/3.4/src/adaptation
*** Error code 1

Stop.
make[2]: stopped in /root/kf/squid/squid/3.4/src
*** Error code 1

Stop.
make[1]: stopped in /root/kf/squid/squid/3.4/src
*** Error code 1

Stop.
make: stopped in /root/kf/squid/squid/3.4

于 14-2-18 17:12, Amos Jeffries 写道:
> On 18/02/2014 4:44 p.m., k simon wrote:
>> 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.
>
>
> I've now back-ported the fix from Squid-3.HEAD to 3.4.
>
> Please try again with a 3.4 update package r13094 or later when it
> becomes available in a few hours.
>
> Amos
>
Received on Tue Feb 18 2014 - 10:02:54 MST

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