Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248924 - app-office/openoffice-2.4.1 + kde-4.1 - undefined references
Summary: app-office/openoffice-2.4.1 + kde-4.1 - undefined references
Status: RESOLVED DUPLICATE of bug 238539
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 17:59 UTC by Lars
Modified: 2008-11-27 16:35 UTC (History)
0 users

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


Attachments
ebuild environment (environment,232.83 KB, text/plain)
2008-11-26 18:03 UTC, Lars
Details
A shortened version of the build log. (OOo_build.log,19.52 KB, text/plain)
2008-11-26 18:14 UTC, Lars
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2008-11-26 17:59:24 UTC
The problem appeared, after I uninstalled all kde related stuff, to get rid of
kde-testing ebuilds, and reinstalled it again from portage tree. Of course I
did 
emerge -uND @system @world
emerge --depclean
revdep-rebuild
before trying to compile app-office/openoffice-2.4.1.





Reproducible: Always

Steps to Reproduce:
1. Cleaned up and prepared my system according to Gentoo KDE 4.1 Guide [http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml]

2. emerge --depclean

3. layman -d kde-testing

4. emerge -av @kdeaccessibility-4.1 @kdeadmin-4.1 @kdegraphics-4.1 @kdeartwork-4.1 @kdemultimedia-4.1 @kdenetwork-4.1 @kdepim-4.1 @kdetoys-4.1 @kdeutils-4.1

5. emerge -uND @system @world

6. emerge --depclean

7. revdep-rebuild

8. emerge -av openoffice (I masked openoffice-3 because I compiled kde without USE='kdeprefix' and OOo-3 won't compile)
Actual Results:  
Build of app-office/openoffice-2.4.1 failed.

Expected Results:  
Build succeeds.

I had similar problems with kdesvn-0.14.4/1.0.1/1.0.4 (Bug 248875), kdirstat-2.5.3-r1 (Bug 248883).

This is an excerpt from the build log containing the topmost build error:

-----------------------------
dummy file to keep the dependencies for later use.
------------------------------
Making: ../unxlngx6.pro/lib/libvclplug_kde680lx.so
x86_64-pc-linux-gnu-g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../unxlngx6.pro/lib -L../lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/unxlngx6/lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngx6.pro/lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/unxlngx6/lib -L/opt/sun-jdk-1.6.0.10/lib64 -L/opt/sun-jdk-1.6.0.10/jre/lib/amd64 -L/opt/sun-jdk-1.6.0.10/jre/lib/amd64/server -L/opt/sun-jdk-1.6.0.10/jre/lib/amd64/native_threads -L/usr/lib64 -L/usr/lib64/xulrunner-1.9/sdk/lib ../unxlngx6.pro/slo/vclplug_kde_dflt_version.o -o ../unxlngx6.pro/lib/libvclplug_kde680lx.so ../unxlngx6.pro/slo/kdedata.o ../unxlngx6.pro/slo/salnativewidgets-kde.o -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -lkdeui -lkdecore -lqt-mt -lvclplug_gen680lx -lvcl680lx -lpsp680lx -ltl680lx -lvos3gcc3 -luno_sal -lX11 -lXext -ldl -lpthread -lm
../unxlngx6.pro/slo/kdedata.o: In function `KDEXLib::Init()':
kdedata.cxx:(.text+0x403): undefined reference to `KAboutData::KAboutData(char const*, char const*, char const*, char const*, int, char const*, char const*, char const*, char const*)'
kdedata.cxx:(.text+0x429): undefined reference to `KAboutData::addAuthor(char const*, char const*, char const*, char const*)'
kdedata.cxx:(.text+0x5aa): undefined reference to `KCmdLineArgs::init(int, char**, KAboutData const*, bool)'
kdedata.cxx:(.text+0x5af): undefined reference to `KApplication::disableAutoDcopRegistration()'
kdedata.cxx:(.text+0x5ce): undefined reference to `KApplication::KApplication(bool, bool)'
../unxlngx6.pro/slo/kdedata.o: In function `KApplication::metaObject() const':
kdedata.cxx:(.text._ZNK12KApplication10metaObjectEv[KApplication::metaObject() const]+0x1): undefined reference to `KApplication::staticMetaObject()'



This is the relevant part of the call stack:

dmake:  Error code 1, while making '../unxlngx6.pro/lib/libvclplug_kde680lx.so'
---* tg_merge.mk *---
ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/vcl/util
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.4.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5490:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
Comment 1 Lars 2008-11-26 18:03:52 UTC
Created attachment 173492 [details]
ebuild environment

I tried to also post the build log, but it's too large.
Comment 2 Lars 2008-11-26 18:14:12 UTC
Created attachment 173495 [details]
A shortened version of the build log.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-11-26 18:15:08 UTC
That is the same problem as in bug 238539. The check in attachment 168670 [details, diff] was only added to openoffice-3.0.0.ebuild but the issue applies to 2.4.1 as well.
Comment 4 Lars 2008-11-26 20:29:56 UTC
So I can't install OOo? But I had it installed before. I just uninstalled it, because revdep-rebuild complained after I unmerged kde. 
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-11-26 22:32:49 UTC
Workarounds to this problem include temporarily uninstalling kdelibs:4.1 and kdepimlibs:4.1 or using the modified ebuild and patch from bug 239539 comment 28.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-11-26 22:33:50 UTC
Whoops, I meant bug 238539 comment 28.
Comment 7 Lars 2008-11-26 23:13:03 UTC
(In reply to comment #5)
> Workarounds to this problem include ... using the modified ebuild and patch from bug 238539 comment 28.

I tried this but now I run into another problem:

Running processes: 0
deliver -- version: 1.130
Module 'scp2' delivered successfully. 83 files copied, 4 files unchanged

1 module(s): 
        vcl
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/vcl/util

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from vcl"

rmdir /tmp/14771
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-3.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5503:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed

Comment 8 Lars 2008-11-27 08:04:32 UTC
(In reply to comment #5)
> Workarounds to this problem include temporarily uninstalling kdelibs:4.1 and
> kdepimlibs:4.1

Finally I installed the patched openoffice-3 after temporarily uninstalling kdelibs:4.1 and kdepimlibs:4.1.
For those who don't know how to apply a patch (like myself before having done this just now):
Download attachment 172085 [details, diff] (see Bug 238539 comment 28) to 
/usr/portage/app-office/openoffice/
and attachment 172087 [details, diff] (Bug 238539 comment 29) to
/usr/portage/app-office/openoffice/files/
Change to /usr/portage/app-office/openoffice and apply the kde-workaround.patch to the ebuild:
patch -p0 kde-workaround.patch openoffice-3.0.0.ebuild
(I'm not sure whether the -p0 parameter has to be set, correct me if I'm wrong.)
Now uninstall  kdelibs:4.1 and kdepimlibs:4.1, install openoffice and install the libs again:
emerge -Cav kdelibs:4.1 kdepimlibs:4.1
emerge -av openoffice
emerge -1av kdelibs:4.1 kdepimlibs:4.1

That's it.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-27 16:35:20 UTC

*** This bug has been marked as a duplicate of bug 238539 ***