Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Sep 2016 21:16:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212432] www/squid: Fix build with clang 3.9.0
Message-ID:  <bug-212432-13@https.bugs.freebsd.org/bugzilla/>

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

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

Created attachment 174441
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D174441&action=
=3Dedit
Adapted upstream revision 14776 to fix clang 3.9.0 and higher build

While testing the clang390-import branch, I ran into the following -Werror
warnings when building www/squid:

In file included from TcpAcceptor.cc:15:
In file included from ../../src/comm/AcceptLimiter.h:12:
In file included from ../../src/comm/TcpAcceptor.h:13:
In file included from ../../src/base/AsyncJob.h:12:
In file included from ../../src/base/AsyncCall.h:12:
../../src/base/InstanceId.h:28:27: error: instantiation of variable
'InstanceId<MasterXaction>::Last' required here, but no definition is avail=
able
[-Werror,-Wundefined-var-template]
    InstanceId(): value(++Last ? Last : ++Last) {}
                          ^
../../src/MasterXaction.h:36:7: note: in instantiation of member function
'InstanceId<MasterXaction>::InstanceId' requested here
class MasterXaction : public RefCountable
      ^
../../src/base/InstanceId.h:47:18: note: forward declaration of template en=
tity
is here
    static Value Last; ///< the last used ID value
                 ^
1 error generated.
*** [TcpAcceptor.lo] Error code 1

This has been fixed in upstream revision 14776 [1], by changing the
implementation of the InstanceId template class.  The upstream change does =
not
directly apply to squid 3.5.20, so I adapted it a little.

[1] http://bazaar.launchpad.net/~squid/squid/trunk/revision/14776

--=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-212432-13>