[Libreoffice-bugs] [Bug 135555] New: type 'struct Document' violates the C++ One Definition Rule

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 8 12:53:13 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135555

            Bug ID: 135555
           Summary: type 'struct Document' violates the C++ One Definition
                    Rule
           Product: LibreOffice Online
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: hillwood at opensuse.org

Created attachment 164047
  --> https://bugs.documentfoundation.org/attachment.cgi?id=164047&action=edit
libreoffice online 7.0.0.2 build log

I tried to build libreoffice online 7.0.0.2 on openSUSE Tumbleweed, but got a
fatal error:

  164s] kit/Kit.cpp:756:7: error: type 'struct Document' violates the C++ One
Definition Rule [-Werror=odr]
[  164s]   756 | class Document final : public DocumentManagerInterface
[  164s]       |       ^
[  164s] wsd/AdminModel.hpp:127:7: note: a type with different bases is defined
in another translation unit
[  164s]   127 | class Document
[  164s]       |       ^
[  164s] kit/Kit.cpp:796:13: error: type of '__dt_comp ' does not match
original declaration [-Werror=lto-type-mismatch]
[  164s]   796 |     virtual ~Document()
[  164s]       |             ^
[  164s] wsd/AdminModel.hpp:160:5: note: '__dt_comp ' was previously declared
here
[  164s]   160 |     ~Document()
[  164s]       |     ^
[  164s] lto1: all warnings being treated as errors
[  164s] lto-wrapper: fatal error: g++ returned 1 exit status
[  164s] compilation terminated.
[  164s]
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
error: lto-wrapper failed
[  164s] collect2: error: ld returned 1 exit status
[  164s] make[2]: *** [Makefile:1672: loolwsd_fuzzer] Error 1
[  164s] make[2]: Leaving directory
'/home/abuild/rpmbuild/BUILD/online-libreoffice-7.0.0.2'
[  164s] make[2]: *** Waiting for unfinished jobs....
[  165s] make[2]: Entering directory
'/home/abuild/rpmbuild/BUILD/online-libreoffice-7.0.0.2'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200808/28856758/attachment.htm>


More information about the Libreoffice-bugs mailing list