Thanks for the info, Willem. I'm on it. BTW: it would be nice to have a Clang builder to find out similar issues as early as possible. Regards, Radek On Wed, Jun 14, 2017 at 10:49 AM, Willem Jan Withagen <wjw@xxxxxxxxxxx> wrote: > I guess that in Clang strlen is not evaluation to a constant. > > --WjW > > In file included from > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_keystone.cc:22: > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:171:29: error: > constexpr variable 'META_MAX_SIZE' must be initialized by a constant > expression > static constexpr size_t META_MAX_SIZE = \ > ^ > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:172:7: note: > non-constexpr function 'strlen' cannot be used in a constant expression > strlen("\r\nffffffffffffffff;chunk-signature=") + SIG_SIZE + > strlen("\r\n"); > ^ > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:175:29: error: > constexpr variable 'META_MIN_SIZE' must be initialized by a constant > expression > static constexpr size_t META_MIN_SIZE = \ > ^ > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:176:7: note: > non-constexpr function 'strlen' cannot be used in a constant expression > strlen("0;chunk-signature=") + SIG_SIZE + strlen("\r\n"); > ^ > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:204:41: error: > non-type template argument is not a constant expression > boost::container::static_vector<char, ChunkMeta::META_MAX_SIZE> > parsing_buf; > ^~~~~~~~~~~~~~~~~~~~~~~~ > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:204:41: note: > initializer of 'META_MAX_SIZE' is not a constant expression > /home/jenkins/workspace/ceph-master/src/rgw/rgw_auth_s3.h:171:29: note: > declared here > static constexpr size_t META_MAX_SIZE = \ > ^ > 3 errors generated. > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html