Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430612 - app-office/libreoffice-3.6.0.4 - In file included from .../work/libreoffice-core-3.6.0.4/avmedia/source/framework/mediacontrol.cxx:33:0: .../solver/unxlngx6.pro/inc/avmedia/mediaplayer.hxx:32:29: fatal error: sfx2/ctrlitem.h: No such file or directory
Summary: app-office/libreoffice-3.6.0.4 - In file included from .../work/libreoffice-c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard: Fixed-in: 3.6.2
Keywords:
: 430942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-09 15:12 UTC by Flo Gravo
Modified: 2012-08-24 13:16 UTC (History)
16 users (show)

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


Attachments
build.log (build.log,338.56 KB, text/plain)
2012-08-09 15:13 UTC, Flo Gravo
Details
emerge --info (emerge-info.txt,18.15 KB, text/plain)
2012-08-10 04:59 UTC, Alexandre Rostovtsev (RETIRED)
Details
fix-includes.patch (fix-includes.patch,389 bytes, patch)
2012-08-10 08:38 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
verbose build log (compressed) (libreoffice-3.6.0.4.build.log.gz,287.12 KB, application/x-gzip)
2012-08-10 15:53 UTC, Alexandre Rostovtsev (RETIRED)
Details
ACCEPT_KEYWORDS="amd64" system: emerge --info + verbose -j1 build.log (compressed) (emerge--info+build.log.gz,290.10 KB, application/x-gzip)
2012-08-12 20:07 UTC, Alexandre Rostovtsev (RETIRED)
Details
patch attempt nuber two (0001-Add-sf2_inc-to-avoid-missing-sfx2-ctrlitem.hxx-missi.patch,826 bytes, patch)
2012-08-13 18:59 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
patch number two, modified so it applies to 3.6.0.4 (Library_avmedia.mk.patch,262 bytes, patch)
2012-08-14 04:17 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
build.log (build.log,342.09 KB, text/plain)
2012-08-23 13:30 UTC, theodor
Details
buildfix.patch (0001-gbuild-also-in-libmerge-case-library-needs-to-depend.patch,1.00 KB, text/plain)
2012-08-24 05:55 UTC, Tomáš Chvátal (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flo Gravo 2012-08-09 15:12:12 UTC
Update to app-office/libreoffice-3.6.0.4 fails because of:

[ build CXX ] avmedia/source/framework/mediacontrol.cxx
In file included from /var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/avmedia/source/framework/mediacontrol.cxx:33:0:
/var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/solver/unxlngx6.pro/inc/avmedia/mediaplayer.hxx:32:29: fatal error: sfx2/ctrlitem.hxx: No such file or directory
compilation terminated.
make[2]: *** [/var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/workdir/unxlngx6.pro/CxxObject/avmedia/source/framework/mediacontrol.o] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -u world
Actual Results:  
ERROR: app-office/libreoffice-3.6.0.4 failed (compile phase)

Expected Results:  
Normal update
Comment 1 Flo Gravo 2012-08-09 15:13:22 UTC
Created attachment 320802 [details]
build.log
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-10 04:59:20 UTC
Created attachment 320834 [details]
emerge --info

Identical build error here; my emerge --info is attached.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-10 08:38:37 UTC
Created attachment 320848 [details, diff]
fix-includes.patch

Please try to apply this patch and tell me if it works (it should).
Comment 4 Vadim Dyadkin 2012-08-10 10:57:29 UTC
It helps, but another problem appears:
In file included from /var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/sfx2/inc/sfx2/module.hxx:35:0,
                 from /var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/sfx2/inc/sfx2/viewfrm.hxx:35,
                 from /var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/avmedia/source/framework/mediacontrol.cxx:39:
/var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/sfx2/inc/sfx2/imgdef.hxx:31:30: fatal error: svtools/imgdef.hxx: No such file or directory. Compilation failed

make[2]: *** [/var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/workdir/unxlngx6.pro/CxxObject/avmedia/source/framework/mediacontrol.o] Error 1
rm /var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/workdir/unxlngx6.pro/ExternalHeaders/Library/libm.so
make[2]: Exit from directory `/var/tmp/portage/app-office/libreoffice-3.6.0.4/work/libreoffice-core-3.6.0.4/tail_build'
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-10 11:04:59 UTC
Well I discussed with the gbuild guys and the include patch from me should not be needed, as it already states sfx bit lower in the deps, which actually manadates those includes to be there...

And given that it crashes further away again with include issue I think they are right.

So any ideas what edgy and experimental could cause this? (stable system as of now is capable of building current master branch)
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-10 15:53:17 UTC
Created attachment 320906 [details]
verbose build log (compressed)

I'm attaching a verbose build log that shows all the arguments that are being passed to g++. Maybe this will be helpful in debugging the problem.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-11 19:57:12 UTC
*** Bug 430942 has been marked as a duplicate of this bug. ***
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-12 19:24:29 UTC
(In reply to comment #5)
> So any ideas what edgy and experimental could cause this? (stable system as
> of now is capable of building current master branch)

I am now seeing the same build failure on a stable system, where ACCEPT_KEYWORDS="amd64", with the exception of only the following packages which are ~amd64:

libreoffice, libreoffice-l10n, boost, boost-build, libcdr, clucene, and libcmis
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-12 20:07:49 UTC
Created attachment 321150 [details]
ACCEPT_KEYWORDS="amd64" system: emerge --info + verbose -j1 build.log (compressed)
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-13 18:59:49 UTC
Created attachment 321232 [details, diff]
patch attempt nuber two

Please try this one. It should sort it out.
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-14 04:17:46 UTC
Created attachment 321272 [details, diff]
patch number two, modified so it applies to 3.6.0.4

(In reply to comment #10)
> Created attachment 321232 [details, diff] [details, diff]
> patch attempt nuber two
> 
> Please try this one. It should sort it out.

That patch fails to apply. I've modified the patch so it applies to 3.6.0.4, but unfortunately, even with the modified patch the build still fails with the same error in mediacontrol.cxx.
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-14 07:19:59 UTC
(In reply to comment #11)

> That patch fails to apply. I've modified the patch so it applies to 3.6.0.4,
> but unfortunately, even with the modified patch the build still fails with
> the same error in mediacontrol.cxx.

Whoops, totaly sorry about that, I am on master and there was addition of gstreamer-1.0 api recently, which changed things.

Anyway try to add the call to all the Library_... in the folder and see if that builds
Comment 13 Philipp Richter 2012-08-15 16:16:30 UTC
(In reply to comment #12)
> (In reply to comment #11)
> 
> > That patch fails to apply. I've modified the patch so it applies to 3.6.0.4,
> > but unfortunately, even with the modified patch the build still fails with
> > the same error in mediacontrol.cxx.
> 
> Whoops, totaly sorry about that, I am on master and there was addition of
> gstreamer-1.0 api recently, which changed things.
> 
> Anyway try to add the call to all the Library_... in the folder and see if
> that builds

I added the call to all Library_*.mk under avmedia/ but I still get the same error message. It's also the case for 3.6.9999.
I found this on the libreoffice mailing list: http://www.mail-archive.com/libreoffice@lists.freedesktop.org/msg32919.html
but I'm not sure if it can help in resolving the problem. An issue with clucene is possible?
Comment 14 theodor 2012-08-23 06:20:49 UTC
Libreoffice 3.6.0.4 still doesn't compile here. Any news on a possible fix?
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-23 09:00:16 UTC
As workaround you can disable gstreamer useflag.

I have problem that I am not able to reproduce this, which makes it hard to figure wtf is happening.
Comment 16 theodor 2012-08-23 09:45:43 UTC
Even without the gstreamer USE flag compiling libreoffice does not finish successfully.
Comment 17 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-23 11:47:36 UTC
(In reply to comment #16)
> Even without the gstreamer USE flag compiling libreoffice does not finish
> successfully.

Same crash or different?
Comment 18 theodor 2012-08-23 12:06:55 UTC
Same as in the first description:
[..]/solver/unxlngi6.pro/inc/avmedia/mediaplayer.hxx:32:29: fatal error: sfx2/ctrlitem.hxx: No such file or directory
Comment 19 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-23 12:17:27 UTC
(In reply to comment #18)
> Same as in the first description:
> [..]/solver/unxlngi6.pro/inc/avmedia/mediaplayer.hxx:32:29: fatal error:
> sfx2/ctrlitem.hxx: No such file or directory

Okey, that is damn weird, without gstreamer it should not even enter avmedia folder, would you mind pasting full log?
Comment 20 theodor 2012-08-23 13:29:08 UTC
app-office/libreoffice-3.6.0.4 [3.5.5.2] USE="branding cups dbus graphite gtk opengl svg vba xmlsec (-aqua) -binfilter -binfilterdebug -eds -gnome -gstreamer -java -jemalloc -kde -mysql -odk -postgres -test -webdav (-nlpsolver%) (-nsplugin%) (-pdfimport%)" LIBREOFFICE_EXTENSIONS="presenter-console%* presenter-minimizer%* -nlpsolver% -pdfimport% -scripting-beanshell% -scripting-javascript% -wiki-publisher%"

gcc: 4.7.1
binutils: 2.22-r1
clucene: 2.3.3.4-r3
Comment 21 theodor 2012-08-23 13:30:33 UTC
Created attachment 322016 [details]
build.log
Comment 22 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-23 21:46:56 UTC
As per discussion on ml i added --disable-mergelibs instead of --enable-mergelibs, please try sync your cvs and verify your ebuild has the change and try to emerge it once more, it should work.
Comment 23 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-24 05:55:18 UTC
Created attachment 322066 [details]
buildfix.patch

Matus nicely provided a build patch to make the mergedlibs work, so anyone willing to test this?

Rename the --disable-mergelibs back to --enable-mergelibs and apply this patch. I will try it myself in few hours...
Comment 24 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-24 05:56:39 UTC
For those wondering mergedlibs make build faster a lot.
Comment 25 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-24 08:34:07 UTC
Closing as fixed as the patch and the removal of the mergelibs works.

So in 3.6.1 and 3.6.0 the mergelib will be didsabled and starting with 3.6.2 it will be back again.

Sorry it took bit long.
Comment 26 theodor 2012-08-24 10:50:46 UTC
Why not apply the patch for 3.6.1 and enable mergelibs if it shortens the build time considerably?
Comment 27 Vadim Dyadkin 2012-08-24 13:16:40 UTC
Thanks, it works!
Now the bug 430670 appears :)