http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59775
--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to David Kredba from comment #10) > After your patch applied it not segfaults any more. > Unfortunately it not builds too, link of one module fails: > > [build MOD] swext > S=/var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2 > && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p > $W/Module/ & touch $W/Module/swext > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > workdir/unxlngx6.pro/CxxObject/sc/source/filter/oox/workbookhelper.o: In > function `~egmentProgressBar': > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > include/oox/helper/progressbar.hxx:110: undefined reference to > `oox::ISegmentProgresBar::~ISegmentProgressBar()' > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > include/oox/helper/progressbar.hxx:110: undefined reference to > `oox::ISegmentProgresBar::~ISegmentProgressBar()' > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > include/oox/helper/progressbar.hxx:110: undefined reference to > `oox::ISegmentProgresBar::~ISegmentProgressBar()' > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > workdir/unxlngx6.pro/CxxObject/sc/source/filter/oox/workbookhelper.o: In > function `ox::SegmentProgressBar::~SegmentProgressBar()': > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > include/oox/helper/progressbar.hxx:110: undefined reference to > `oox::ISegmentProgresBar::~ISegmentProgressBar()' > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > workdir/unxlngx6.pro/CxxObject/sc/source/filter/oox/workbookhelper.o: In > function `~egmentProgressBar': > /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/ > include/oox/helper/progressbar.hxx:110: undefined reference to > `oox::ISegmentProgresBar::~ISegmentProgressBar()' > collect2: error: ld returned 1 exit status > > Can this be anyhow related to your patch? Or GCC at all? No. I ran into exactly the same issue a while ago. "$W/CxxObject/oox/source/helper/progressbar.o" is missing in the list of object files when linking. This is a libreoffice bug.