Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397775 - app-office/libreoffice-3.4.5.2, 3.4.99.2 fails to build with kde-4.7.97
Summary: app-office/libreoffice-3.4.5.2, 3.4.99.2 fails to build with kde-4.7.97
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 16:51 UTC by Andreas K. Hüttel
Modified: 2012-01-08 14:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
full build log, compressed (libreoffice-3.4.5.2:20120105-142914.log.gz,534.09 KB, application/x-gzip)
2012-01-05 16:54 UTC, Andreas K. Hüttel
Details
emerge --info (emerge-info.txt,14.13 KB, text/plain)
2012-01-05 16:54 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2012-01-05 16:51:32 UTC
Compiling: fpicker/source/unx/kde4/KDE4FilePicker.cxx
/usr/bin/moc KDE4FilePicker.hxx -o ../../../unxlngx6.pro/misc/KDE4FilePicker.moc.cxx
Compiling: fpicker/source/unx/kde4/KDE4FPEntry.cxx
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH
}} xsltproc --nonet --stringparam uri \
        'vnd.sun.star.expand:$OOO_BASE_DIR/program/fps_kde4.uno.so' -o ../../../unxlngx6.pro/misc/fps_kde4.component \
        /var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/solenv/bin/createcomponent.xslt fps_kde4.component
KDE4FilePicker.hxx:0: Note: No relevant classes found. No output generated.
In file included from /var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/fpicker/source/unx/kde4/KDE4FPEntry.cxx:35:0:
/var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/solver/340/unxlngx6.pro/inc/cppuhelper/compbase_ex.hxx:55:27: warning: 'virtual void cppu
::WeakComponentImplHelperBase::disposing()' was hidden
/var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/fpicker/source/unx/kde4/KDE4FilePicker.hxx:152:27: warning:   by 'virtual void KDE4FilePi
cker::disposing(const com::sun::star::lang::EventObject&)'
In file included from /var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/fpicker/source/unx/kde4/KDE4FilePicker.cxx:52:0:
/var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/solver/340/unxlngx6.pro/inc/cppuhelper/compbase_ex.hxx:55:27: warning: 'virtual void cppu
::WeakComponentImplHelperBase::disposing()' was hidden
/var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/fpicker/source/unx/kde4/KDE4FilePicker.hxx:152:27: warning:   by 'virtual void KDE4FilePi
cker::disposing(const com::sun::star::lang::EventObject&)'
In file included from /usr/include/kcompletion.h:24:0,
                 from /usr/include/kcombobox.h:27,
                 from /usr/include/kfilefiltercombo.h:27,
                 from /var/tmp/portage/app-office/libreoffice-3.4.5.2/work/libreoffice-bootstrap-3.4.5.2/fpicker/source/unx/kde4/KDE4FilePicker.cxx:64:
/usr/include/kglobalsettings.h:595:29: error: expected identifier before '(' token
/usr/include/kglobalsettings.h:595:29: error: expected '}' before '(' token
/usr/include/kglobalsettings.h:595:29: error: expected ')' before numeric constant
/usr/include/kglobalsettings.h:597:1: error: expected unqualified-id before 'protected'
/usr/include/kglobalsettings.h:679:1: error: expected unqualified-id before 'private'
/usr/include/kglobalsettings.h:682:21: error: expected unqualified-id before ')' token
/usr/include/kglobalsettings.h:685:20: error: uninitialized const 'd'
/usr/include/kglobalsettings.h:688:1: error: expected declaration before '}' token
dmake:  Error code 1, while making '../../../unxlngx6.pro/slo/KDE4FilePicker.obj'
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-01-05 16:54:17 UTC
Created attachment 298021 [details]
full build log, compressed
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2012-01-05 16:54:40 UTC
Created attachment 298023 [details]
emerge --info
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2012-01-05 17:05:26 UTC
3.4.4.2-r1 built fine with kde-4.7.95
3.4.5.2 fails to build with kde-4.7.97

the subdirectory "fpicker" is idencical in 3.4.4.2-r1 and 3.4.5.2 :(
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2012-01-07 23:18:09 UTC
Same problem with 3.4.99.2
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2012-01-08 13:26:56 UTC
After some analysis...

In KDE-4.8, a new value was introduced in the enum SettingsCategory in kglobalsettings.h, SETTINGS_LOCALE. (Commit 7bc79dbe by Lamarque V. Souza in kdelibs/kdeui/kernel/kglobalsettings.h, line 595 now).
    590     /**
    591      * Valid values for the settingsChanged signal
    592      */
    593     enum SettingsCategory { SETTINGS_MOUSE, SETTINGS_COMPLETION, SETTINGS_PATHS,
    594                             SETTINGS_POPUPMENU, SETTINGS_QT, SETTINGS_SHORTCUTS,
    595                             SETTINGS_LOCALE };

Unfortunately, libreoffice already #defines SETTINGS_LOCALE, namely in vcl/inc/vcl/settings.hxx, line 1160:
   1160 #define SETTINGS_LOCALE             ((sal_uLong)0x00000200)

And KFilePicker.cxx includes vcl/svapp.hxx which includes vcl/settings.hxx... bang.

No idea how exactly to solve this, but someone familiar with the code should be able to do it quickly now... :o)
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2012-01-08 13:33:52 UTC
I should really read my backlog... Thanks Luboš!

http://cgit.freedesktop.org/libreoffice/core/commit/?id=0d7e2108425da1f81c20a605145679168486df59
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-01-08 14:29:31 UTC
+  08 Jan 2012; Andreas K. Huettel <dilfridge@gentoo.org>
+  +files/libreoffice-kde48.patch, libreoffice-3.4.5.2.ebuild,
+  libreoffice-3.4.99.2.ebuild:
+  Fix build with kde-4.8, bug 397775
+