Project

General

Profile

Actions

Bug #50952

closed

ceph-16.2.4 compilation failure: invalid use of incomplete type in rgw

Added by chris denice almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

gcc --version
gcc (Mageia 11.1.1-0.20210522.1.mga9) 11.1.1 20210522

Could be some C++ standard fuzziness?

In file included from /home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.cc:4:
/home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.h: In member function 'bool ltstr_nocase::operator()(const string&, const string&) const':
/home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.h:18:23: error: invalid use of incomplete type 'const string' {aka 'const class std::__cxx11::basic_string<char>'}
   18 |     return strcasecmp(s1.c_str(), s2.c_str()) < 0;
      |                       ^~
In file included from /usr/include/c++/11/iosfwd:39,
                 from /usr/include/c++/11/string_view:40,
                 from /home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.h:10,
                 from /home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.cc:4:
/usr/include/c++/11/bits/stringfwd.h:74:11: note: declaration of 'std::string' {aka 'class std::__cxx11::basic_string<char>'}
   74 |     class basic_string;
      |           ^~~~~~~~~~~~
In file included from /home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.cc:4:
/home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.h:18:35: error: invalid use of incomplete type 'const string' {aka 'const class std::__cxx11::basic_string<char>'}
   18 |     return strcasecmp(s1.c_str(), s2.c_str()) < 0;
      |                                   ^~
In file included from /usr/include/c++/11/iosfwd:39,
                 from /usr/include/c++/11/string_view:40,
                 from /home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.h:10,
                 from /home/iurt/rpmbuild/BUILD/ceph-16.2.4/src/rgw/rgw_string.cc:4:
/usr/include/c++/11/bits/stringfwd.h:74:11: note: declaration of 'std::string' {aka 'class std::__cxx11::basic_string<char>'}
   74 |     class basic_string;
Actions #1

Updated by Neha Ojha almost 3 years ago

  • Project changed from Ceph to rgw
Actions #2

Updated by chris denice almost 3 years ago

I've fixed that one, it is a duplicate of 50924:

https://tracker.ceph.com/issues/50924

PS: Dunno how to tag it this way once opened.

Actions #3

Updated by Casey Bodley almost 3 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF