[Bug 212432] www/squid: Fix build with clang 3.9.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 6 21:16:06 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212432
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 at FreeBSD.org
Reporter: dim at FreeBSD.org
CC: timp87 at gmail.com
Flags: maintainer-feedback?(timp87 at gmail.com)
CC: timp87 at gmail.com
Created attachment 174441
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=174441&action=edit
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 available
[-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 entity
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list