Created attachment 174441 [details] 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
Give me some time. I'll check it and try to convince upstream to backport it into 3.5 branch
Take.
Comment on attachment 174441 [details] Adapted upstream revision 14776 to fix clang 3.9.0 and higher build Feel free to commit it in case there is no news about official backporting.
Comment on attachment 174441 [details] Adapted upstream revision 14776 to fix clang 3.9.0 and higher build Please, follow https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212909 It includes all official patches including officially backported fix for clang 3.9. Close this one.
Closed in favor of bug 212909.