Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2019 06:01:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240830] www/squid: Fix build with libc++ 9
Message-ID:  <bug-240830-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240830

            Bug ID: 240830
           Summary: www/squid: Fix build with libc++ 9
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: timp87@gmail.com
             Flags: maintainer-feedback?(timp87@gmail.com)
                CC: timp87@gmail.com

Created attachment 207835
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D207835&action=
=3Dedit
Fix squid build with libc++ 9

Because squid builds with -Werror, with libc++ 9 it errors out on deprecated
classes from <functional>:

libtool: compile:  c++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=3D\"/usr/local/etc/squid/squid.conf\"
-DDEFAULT_SQUID_DATA_DIR=3D\"/usr/local/etc/squid\"
-DDEFAULT_SQUID_CONFIG_DIR=3D\"/usr/local/etc/squid\" -I../.. -I../../inclu=
de
-I../../lib -I../../src -I../../include -I/usr/include -I/usr/include
-I../../libltdl -I/usr/include -I/usr/local/include -Werror -Qunused-argume=
nts
-Wno-deprecated-register -D_REENTRANT -I/usr/include -I/usr/include -O2 -pi=
pe
-fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -MT
InnerNode.lo -MD -MP -MF .deps/InnerNode.Tpo -c InnerNode.cc  -fPIC -DPIC -o
.libs/InnerNode.o
InnerNode.cc:24:52: error: 'mem_fun<void, ACL>' is deprecated
[-Werror,-Wdeprecated-declarations]
    std::for_each(nodes.begin(), nodes.end(),
std::mem_fun(&ACL::prepareForUse));
                                                   ^
/usr/include/c++/v1/functional:1148:1: note: 'mem_fun<void, ACL>' has been
explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/usr/include/c++/v1/__config:944:39: note: expanded from macro
'_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/usr/include/c++/v1/__config:933:48: note: expanded from macro
'_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 error generated.

To fix this, allow it to continue even though the warnings are shown.  Idea=
lly
upstream should replace usage of deprecated functionality with C++11
equivalents, but I am unsure whether that is an upstream goal...

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240830-7788>