Bug 1181873

Summary: GCC 11: libwpd package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Christophe Marin <christophe>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1181859    

Description Martin Liška 2021-02-06 11:13:49 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/libwpd/standard/x86_64

with:
[  107s] libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../inc -I/usr/include/librevenge-0.0 -DNDEBUG -DLIBWPD_BUILD=1 -fvisibility=hidden -DLIBWPD_VISIBILITY -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fvisibility-inlines-hidden -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -c WPXContentListener.cpp  -fPIC -DPIC -o .libs/WPXContentListener.o
[  107s] In file included from WPXContentListener.h:29,
[  107s]                  from WPXContentListener.cpp:26:
[  107s] WPXTable.h:56:30: error: expected ';' at end of member declaration
[  107s]    56 |         const WPXTableCell  *getCell(size_t i, size_t j)
[  107s]       |                              ^~~~~~~
[  107s]       |                                     ;
[  107s] WPXTable.h:56:44: error: expected ')' before 'i'
[  107s]    56 |         const WPXTableCell  *getCell(size_t i, size_t j)
[  107s]       |                                     ~      ^~
[  107s]       |                                            )
[  107s] WPXTable.h:49:7: warning: 'class WPXTable' has pointer data members [-Weffc++]
[  107s]    49 | class WPXTable
[  107s]       |       ^~~~~~~~
[  107s] WPXTable.h:49:7: warning:   but does not declare 'WPXTable(const WPXTable&)' [-Weffc++]
[  107s] WPXTable.h:49:7: warning:   or 'operator=(const WPXTable&)' [-Weffc++]
[  107s] WPXTable.h:56:30: note: pointer member 'WPXTable::getCell' declared here
[  107s]    56 |         const WPXTableCell  *getCell(size_t i, size_t j)
[  107s]       |                              ^~~~~~~
[  107s] WPXTable.h: In constructor 'WPXTable::WPXTable()':
[  107s] WPXTable.h:52:9: warning: 'WPXTable::getCell' should be initialized in the member initialization list [-Weffc++]
[  107s]    52 |         WPXTable() : m_tableRows() {}
[  107s]       |         ^~~~~~~~
[  107s] /bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..    -I../../inc -I/usr/include/librevenge-0.0  -DNDEBUG -DLIBWPD_BUILD=1 -fvisibility=hidden -DLIBWPD_VISIBILITY -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fvisibility-inlines-hidden -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -c -o WPXEncryption.lo WPXEncryption.cpp
Comment 1 Martin Liška 2021-02-26 13:58:40 UTC
May I please ping this?
Comment 2 Christophe Marin 2021-03-10 22:33:09 UTC
working on this
Comment 3 Christophe Marin 2021-03-10 22:46:32 UTC
https://build.opensuse.org/request/show/878236
Comment 4 Christophe Marin 2021-03-14 20:13:50 UTC
Fixed in devel project.