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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to