Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238539 - app-office/openoffice fails to build if you have kde:4.1 installed with -kdeprefix
Summary: app-office/openoffice fails to build if you have kde:4.1 installed with -kdep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 239363 239831 240600 242108 242152 242906 248924 269815 270157 270273 270801 270914 (view as bug list)
Depends on:
Blocks: CVE-2008-4937
  Show dependency tree
 
Reported: 2008-09-24 03:16 UTC by Hongjiu Zhang
Modified: 2010-11-11 23:30 UTC (History)
50 users (show)

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


Attachments
openoffice-3.0.0.ebuild.patch (openoffice-3.0.0.ebuild.patch,873 bytes, patch)
2008-10-16 14:27 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff
Patched ebuild (kde-workaround.patch,1.98 KB, patch)
2008-11-17 15:15 UTC, David Tardon
Details | Diff
The upstream workaround patch, sligtly modified (solenv.workaround-for-the-kde-mess.diff,8.80 KB, patch)
2008-11-17 15:19 UTC, David Tardon
Details | Diff
Output of ldd /usr/lib64/openoffice/basis-link/program/libvclplug_kdelx.so (ldd-output.txt,5.26 KB, text/plain)
2008-12-22 20:20 UTC, Toke Høiland-Jørgensen
Details
Shuffles linker options for linking apps in the same manner as previous version did for shared libraries (solenv.workaround-for-the-kde-mess.diff,17.14 KB, patch)
2008-12-26 12:20 UTC, David Tardon
Details | Diff
openoffice-3.1.0-build.log.gz (openoffice-3.1.0-build.log.gz,337.60 KB, application/gzip )
2009-05-22 13:29 UTC, keenblade
Details
build.log (build.log.gz,398.61 KB, application/octet-stream)
2009-05-24 10:01 UTC, Vasilis Lourdas
Details
Build log (3.1.0 with kde flag enabled) (build.log.gz,801.43 KB, text/plain)
2009-05-24 12:20 UTC, Mark Nowiasz
Details
build.log (build.log.gz,758.87 KB, application/octet-stream)
2009-05-24 13:25 UTC, Vasilis Lourdas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hongjiu Zhang 2008-09-24 03:16:33 UTC
Making: ../unxlngi6.pro/lib/libvclplug_kde680li.so
i686-pc-linux-gnu-g++ -Wl,-z,noexecstack -Wl,-z,combreloc -Wl,-z,defs -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,--hash-style=gnu -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../unxlngi6.pro/lib -L../lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/unxlngi6/lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/lib -L/var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/unxlngi6/lib -L/opt/sun-jdk-1.6.0.07/lib -L/opt/sun-jdk-1.6.0.07/jre/lib/i386 -L/opt/sun-jdk-1.6.0.07/jre/lib/i386/client -L/opt/sun-jdk-1.6.0.07/jre/lib/i386/native_threads -L/usr/lib -L/usr/lib/xulrunner-1.9/sdk/lib ../unxlngi6.pro/slo/vclplug_kde_dflt_version.o -o ../unxlngi6.pro/lib/libvclplug_kde680li.so ../unxlngi6.pro/slo/kdedata.o ../unxlngi6.pro/slo/salnativewidgets-kde.o -L/usr/kde/3.5/lib -L/usr/qt/3/lib -lkdeui -lkdecore -lqt-mt -lvclplug_gen680li -lvcl680li -lpsp680li -ltl680li -lvos3gcc3 -luno_sal -lX11 -lXext -ldl -lpthread -lm 
../unxlngi6.pro/slo/kdedata.o: In function `KDEXLib::Init()':
kdedata.cxx:(.text+0x656): 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+0x67d): undefined reference to `KAboutData::addAuthor(char const*, char const*, char const*, char const*)'
kdedata.cxx:(.text+0x8c7): undefined reference to `KCmdLineArgs::init(int, char**, KAboutData const*, bool)'
kdedata.cxx:(.text+0x8cc): undefined reference to `KApplication::disableAutoDcopRegistration()'
kdedata.cxx:(.text+0x8e7): undefined reference to `KApplication::KApplication(bool, bool)'
../unxlngi6.pro/slo/kdedata.o: In function `KApplication::metaObject() const':
kdedata.cxx:(.text._ZNK12KApplication10metaObjectEv[KApplication::metaObject() const]+0x14): undefined reference to `KApplication::staticMetaObject()'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0xc): undefined reference to `KApplication::className() const'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0x10): undefined reference to `KApplication::qt_cast(char const*)'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0x14): undefined reference to `KApplication::qt_invoke(int, QUObject*)'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0x18): undefined reference to `KApplication::qt_emit(int, QUObject*)'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0x1c): undefined reference to `KApplication::qt_property(int, int, QVariant*)'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0x78): undefined reference to `KApplication::virtual_hook(int, void*)'
../unxlngi6.pro/slo/kdedata.o:(.data.rel.ro._ZTV17VCLKDEApplication[vtable for VCLKDEApplication]+0x8c): undefined reference to `non-virtual thunk to KApplication::virtual_hook(int, void*)'
../unxlngi6.pro/slo/salnativewidgets-kde.o: In function `readColor(KConfig*, char const*)':
salnativewidgets-kde.cxx:(.text+0xcc2): undefined reference to `KConfigBase::readColorEntry(char const*, QColor const*) const'
../unxlngi6.pro/slo/salnativewidgets-kde.o: In function `KDESalFrame::UpdateSettings(AllSettings&)':
salnativewidgets-kde.cxx:(.text+0x10ff): undefined reference to `KConfigBase::setGroup(char const*)'
salnativewidgets-kde.cxx:(.text+0x1113): undefined reference to `KConfigBase::hasKey(char const*) const'
salnativewidgets-kde.cxx:(.text+0x115a): undefined reference to `KConfigBase::hasKey(char const*) const'
salnativewidgets-kde.cxx:(.text+0x11a4): undefined reference to `KConfigBase::hasKey(char const*) const'
salnativewidgets-kde.cxx:(.text+0x11ee): undefined reference to `KConfigBase::hasKey(char const*) const'
salnativewidgets-kde.cxx:(.text+0x1238): undefined reference to `KConfigBase::hasKey(char const*) const'
../unxlngi6.pro/slo/salnativewidgets-kde.o:salnativewidgets-kde.cxx:(.text+0x1282): more undefined references to `KConfigBase::hasKey(char const*) const' follow
../unxlngi6.pro/slo/salnativewidgets-kde.o: In function `KDESalFrame::UpdateSettings(AllSettings&)':
salnativewidgets-kde.cxx:(.text+0x12fd): undefined reference to `KConfigBase::readFontEntry(char const*, QFont const*) const'
salnativewidgets-kde.cxx:(.text+0x135a): undefined reference to `KConfigBase::setGroup(char const*)'
salnativewidgets-kde.cxx:(.text+0x136e): undefined reference to `KConfigBase::hasKey(char const*) const'
salnativewidgets-kde.cxx:(.text+0x138b): undefined reference to `KConfigBase::readEntryUntranslated(char const*, QString const&) const'
salnativewidgets-kde.cxx:(.text+0x18ad): undefined reference to `KMainWindow::KMainWindow(QWidget*, char const*, unsigned int)'
salnativewidgets-kde.cxx:(.text+0x18cc): undefined reference to `KMainWindow::createGUI(QString const&, bool)'
salnativewidgets-kde.cxx:(.text+0x1bc8): undefined reference to `KMainWindow::toolBar(char const*)'
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../unxlngi6.pro/lib/libvclplug_kde680li.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 5366:  Called die
 * The specific snippet of code:
 * make || die "Build failed"
 * The die message:
 * Build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-2.4.1/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.07"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

emerge --info
Portage 2.2_rc9 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-21-generic i686)
=================================================================
System uname: Linux-2.6.24-21-generic-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-glibc2.0
Timestamp of tree: Tue, 23 Sep 2008 10:16:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/shutdown /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://www.anheng.com.cn/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="af am ar as_IN az be be_BY bg bn bo br bs ca cs csb cy da de de_FR dz el en en_GB en_US en_ZA eo es es_AR es_ES es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu hy id is it ja ka kk km kn ko ku la lo lt lv mk ml ml_IN mn mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw se sh sh_YU si sk sl sq sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN uz uz@cyrillic ve vi wa xh zh zh_CN zh_HK zh_TW zu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/kde-testing /usr/portage/local"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread emacs emboss encode expat fam firefox fortran gdbm gif git gnutls gpm hal iconv ipv6 isdnlog java java6 jpeg kde kerberos latex ldap libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection samba sdl session spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vorbis win32codecs x86 xcomposite xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="af am ar as_IN az be be_BY bg bn bo br bs ca cs csb cy da de de_FR dz el en en_GB en_US en_ZA eo es es_AR es_ES es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu hy id is it ja ka kk km kn ko ku la lo lt lv mk ml ml_IN mn mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw se sh sh_YU si sk sl sq sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk ur_IN uz uz@cyrillic ve vi wa xh zh zh_CN zh_HK zh_TW zu" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

kde-base/kdelibs: 3.5.10 4.1.1-r4
Comment 1 Hongjiu Zhang 2008-09-27 15:11:21 UTC
I think it is because of installing KDE 4.1.1 without kdeprefix enabled.

The emerge works while kdelibs built with kdeprefix enabled.
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-09 15:24:56 UTC
*** Bug 239363 has been marked as a duplicate of this bug. ***
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-09 15:25:14 UTC
*** Bug 240600 has been marked as a duplicate of this bug. ***
Comment 4 Michał Kudła 2008-10-13 22:17:53 UTC
I have problem with OpenOffice 3.0.0 and KDE 4.1.2 without kdeprefix
http://bugs.gentoo.org/show_bug.cgi?id=238642#c17

I trying with USE=" .. -kdeprefix ..." and have a problems with vcl module


laptok ~ # emerge -av openoffice

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] app-office/openoffice-3.0.0 [2.4.1] USE="cups dbus gstreamer
gtk java kde ldap nsplugin%* odk opengl pam -binfilter -debug -eds -gnome -mono
(-firefox%*) (-seamonkey%) (-xulrunner%*)" LINGUAS="pl -af -ar -as_IN -be_BY
-bg -bn -br -bs -ca -cs -cy -da -de -dz -el -en -en_GB -en_US -en_ZA -eo -es
-et -fa -fi -fr -ga -gl -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -ku -lt -lv
-mk -ml_IN -mr_IN -nb -ne -nl -nn -nr -ns -or_IN -pa_IN -pt -pt_BR -ru -rw -sh
-sk -sl -sr -ss -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER-tn -tr -ts -uk
-ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

[...]

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/32693
make: *** [stamp/build] Error 1
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-14 06:04:50 UTC
*** Bug 239831 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-14 08:36:22 UTC
As I don't use KDE myself: Is this happening with KDE-packages from the tree or from an overlay?
Comment 7 Thomas Stein 2008-10-14 08:41:15 UTC
It happens with the kde-4.1.2 from the tree on my machine.
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-14 09:30:45 UTC
Adding KDE-herd for advice, please take a look
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-10-14 20:57:15 UTC
kdelibs:4.1 and kdepimlibs:4.1 are the particular packages that cause the openoffice build to fail. Unmerging them will allow the build to complete. Until this problem is resolved, I suggest that the openoffice ebuild dies when either of these packages are detected with USE="-kdeprefix"
Comment 10 Alexey Shvetsov archtester gentoo-dev 2008-10-14 21:25:05 UTC
(In reply to comment #9)
> kdelibs:4.1 and kdepimlibs:4.1 are the particular packages that cause the
> openoffice build to fail. Unmerging them will allow the build to complete.
> Until this problem is resolved, I suggest that the openoffice ebuild dies when
> either of these packages are detected with USE="-kdeprefix"
> 

openoffice *will* build if you disable use kde for it 
Comment 11 Peter Alfredsen (RETIRED) gentoo-dev 2008-10-14 22:00:17 UTC
*** Bug 242108 has been marked as a duplicate of this bug. ***
Comment 12 Serkan Kaba (RETIRED) gentoo-dev 2008-10-15 12:20:05 UTC
*** Bug 242152 has been marked as a duplicate of this bug. ***
Comment 13 Michał Kudła 2008-10-16 04:48:19 UTC
with USE flag -kde, openoffice-3.0.0 compiled :)
Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 12:24:23 UTC
@KDE-herd: Again the request for some input / help here. The problem is that the KDE 4.1 install seems to interfere in some ways. (OOo doesn't use KDE4 at all atm).

Unless there is some quick workaround / response to that I'm going to unmask OOo 3.0 with a simple warning about the build breakage soonish.
Comment 15 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-10-16 14:27:09 UTC
Created attachment 168670 [details, diff]
openoffice-3.0.0.ebuild.patch

Suggested patch for openoffice-3.0.0 ebuild, this will make emerge die in the beginning and not halfway through the build.
Comment 16 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 20:01:21 UTC
(In reply to comment #15)
> Created an attachment (id=168670) [edit]
> openoffice-3.0.0.ebuild.patch
> 
> Suggested patch for openoffice-3.0.0 ebuild, this will make emerge die in the
> beginning and not halfway through the build.
> 

Thanks for the patch, this is in now, indeed better than just failing
Comment 17 Erik Boritsch 2008-10-17 01:13:47 UTC
That's weird… I have kdeprefix flag globally enabled yet I am unable to compile openoffice. Same error about vcl module. kdelibs-3.5.9-r4 is installed too. It is an amd64-system. enabled USE flags for openoffice: "cups dbus gstreamer gtk java kde ldap linguas_en opengl pam".
Comment 18 Erik Boritsch 2008-10-17 02:04:31 UTC
hmm, even if I unmerge kdelibs:4.1 and kdepimlibs:4.1 openoffice still fails on vcl with kde USE flag. I guess there might be some stale kde files somewhere as I did try to compile kde without kdepath once.
Comment 19 Gregg Casillo 2008-10-17 19:52:07 UTC
I am having this issue with openoffice-3.0.0, but I am running kde-3.5.10 and gcc-4.3.2. It reports that module "sc" needs to be rebuilt.

Portage 2.2_rc12 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Fri, 17 Oct 2008 16:45:03 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.4.8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/nfs_portage/distfiles"
FEATURES="ccache distcc distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://ftp.twaren.net/Linux/Gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j7"
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/nfs_portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amarok amd64 asf audiofile avi bash-completion berkdb bzip2 cdr cli cracklib crypt ctype cups dirac dlloader dri dts dv dvd dvdr dvdread encode ffmpeg flac foomaticdb fortran frontendonly ftp g77 gdbm gif iconv imap imlib innodb ip4100 joystick jpeg kde kdeenablefinal kdexdeltas lcms libg++ libwww live lm_sensors logrotate mad maildir matroska midi mime mmx mmxext mng mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp pcre pdf perl png python qt qt3 quicktime readline samba sdl session smp speex spl sse sse2 ssl ssse3 subversion svg sysfs syslog taglib tcpd theora tiff transcode truetype unicode usb v4l vhosts vorbis x264 xine xinerama xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 20 Erik Boritsch 2008-10-18 18:03:52 UTC
This bug might be related with http://bugs.gentoo.org/show_bug.cgi?id=237556
Comment 21 Patrizio Bassi 2008-10-19 10:22:49 UTC
the problem doesn't seem to be the prefix but the other bug 237556 as mentioned 
Comment 22 Mike Auty (RETIRED) gentoo-dev 2008-10-20 18:51:59 UTC
*** Bug 242906 has been marked as a duplicate of this bug. ***
Comment 23 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-10-22 21:28:38 UTC
(In reply to comment #14)
> @KDE-herd: Again the request for some input / help here. The problem is that
> the KDE 4.1 install seems to interfere in some ways. (OOo doesn't use KDE4 at
> all atm).
> 
> Unless there is some quick workaround / response to that I'm going to unmask
> OOo 3.0 with a simple warning about the build breakage soonish.
> 

Andreas,

sorry for taking so long to report back. I've been busy and haven't followed bugs for the past week. Other KDE members have been very busy as well.
OOo3.0 was having problems with KDE-4.1.2 built with -kdeprefix, but the latest updates to kdelibs and kdebase-startkde (3.5.10 and 4.1.2) should have fix it.

Users with KDE-3.5.9 should still be affected by this bug. I believe the preferred solution is to ask for 3.5.10 to be marked stable.
Comment 24 Fabio Coatti 2008-10-22 22:41:04 UTC
I've just tried to build oo after a sync, but the problem is still there. (~amd64). I've latest ~ packages installed (4.1.2 and 3.5.10).
From latest comment it seems that it should build fine, or am I missing something? (the error is exactly the same as reported before)
Comment 25 Soren Harward 2008-10-28 15:08:14 UTC
I think I've figured out the root of the problem.  OOO uses the KDE3.5 API exclusively; it doesn't support KDE4 at all.  You can tell by the "undefined reference to KApplication::KApplication(bool, bool)" error in the compile output of comment #1.  This is the function signature for the KApplication ctor in KDE3.5, but not in KDE4 (cf http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKApplication.html and http://api.kde.org/4.1-api/kdelibs-apidocs/kdeui/html/classKApplication.html).

Even if you have the kdelibs-3.5 installed on a machine that runs KDE4, the OOO build process looks for libkdecore in /usr/lib before it looks for it in /usr/kde/3.5/lib.  So the linker finds the KDE4 version of libkdecore in /usr/lib before it finds the KDE3.5 version of libkdecore in /usr/kde/3.5/lib, tries to link against it, and fails.

I've filed a bug upstream to tell them to fix their linker options: http://www.openoffice.org/issues/show_bug.cgi?id=95552

I would recommend changing this bug to CANTFIX because the USE flag filter is the best we can do until upstream either ports OOO to the KDE4 API, or fixes their build system.
Comment 26 Toke Høiland-Jørgensen 2008-11-17 14:20:06 UTC
There's a workaround at the upstream bug report. Is it possible to get this included in an -r1 ebuild or something similar?
Comment 27 David Tardon 2008-11-17 15:13:37 UTC
(In reply to comment #26)
> There's a workaround at the upstream bug report. Is it possible to get this
> included in an -r1 ebuild or something similar?
> 

I'm not so comfortable with go-oo build system, so it took me a while to 'insert' the patch into it; I also wanted to ensure it really builds and runs before posting anything here.
Comment 28 David Tardon 2008-11-17 15:15:51 UTC
Created attachment 172085 [details, diff]
Patched ebuild
Comment 29 David Tardon 2008-11-17 15:19:17 UTC
Created attachment 172087 [details, diff]
The upstream workaround patch, sligtly modified

The go-oo build system seems to require .diff extension for patches. Also, it have to be applicable with -p0 . (If there is any possibility to change that, I'd be glad to know it.)
Comment 30 Toke Høiland-Jørgensen 2008-11-17 22:09:56 UTC
I've applied the patch and succesfully compiled OOo-3.0 on amd64. Thanks! :)
Comment 31 Michel Lang 2008-11-26 20:16:32 UTC
Can we push the updated ebuild into the tree? Maybe as unstable, so that not everybody not using kde-4 has to rebuild oder manually mask it.

OOo-3.0.1 will be released on January 15th, so there are nearly 2 months users could benefit of this.
Comment 32 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-27 16:35:20 UTC
*** Bug 248924 has been marked as a duplicate of this bug. ***
Comment 33 Toke Høiland-Jørgensen 2008-12-01 21:04:12 UTC
I don't know if it is related to this, but I suspect it could be: I just discovered that my version of openoffice 3.0 built with the modified ebuild from this bug hangs whenever I try to access a file selection menu (that is, open, save as, export as pdf)...
Comment 34 David Tardon 2008-12-22 14:35:42 UTC
(In reply to comment #33)
> I don't know if it is related to this, but I suspect it could be: I just
> discovered that my version of openoffice 3.0 built with the modified ebuild
> from this bug hangs whenever I try to access a file selection menu (that is,
> open, save as, export as pdf)...
> 

I guess KDE4 libraries are being picked up at runtime. In that case, starting writer as

  LD_LIBRARY_PATH=/usr/kde/3.5/lib64 oowriter

should 'fix' the problem. Can you confirm that? If it did not work, could you attach result of

  ldd /usr/lib64/openoffice/basis-link/program/libvclplug_kdelx.so

here?
Comment 35 Toke Høiland-Jørgensen 2008-12-22 20:20:31 UTC
Created attachment 176168 [details]
Output of ldd /usr/lib64/openoffice/basis-link/program/libvclplug_kdelx.so

Running with LD_LIBRARY_PATH set makes no difference -- i still get crashes when trying to access theh file selector dialogs.

I've attached the ldd output as requested.
Comment 36 David Tardon 2008-12-24 10:36:04 UTC
Sigh, the native KDE filepicker is implemented as an application, but my patch only affects building of shared libraries. Result of it is the filepicker still uses KDE4/Qt4 libraries.
Comment 37 David Tardon 2008-12-26 12:20:03 UTC
Created attachment 176433 [details, diff]
Shuffles linker options for linking apps in the same manner as previous version did for shared libraries
Comment 38 David Tardon 2008-12-26 12:28:16 UTC
->Toke: Could you try the new patch? Ebuild stays the same as before.
Comment 39 Toke Høiland-Jørgensen 2008-12-27 13:29:49 UTC
The new patch seems to have solved it. Open/save-dialogs work without crashing now, and I can succesfully both open and save documents. :)
Comment 40 Patrizio Bassi 2008-12-28 16:11:17 UTC
any hope to have in portage asap?
Comment 41 John Herdy 2008-12-29 14:03:15 UTC
add security to cc, because this bug is preventing ~kde users access to a non-vulnerable version of openoffice, see bug #235824, glsa 200812-13
Comment 42 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-12-30 13:19:45 UTC
The old patch allowed openoffice to build here. I haven't been using it, so I can't comment about runtime issues, but given comment #39, it would seem the new patch fixed those issues.
I'm currently building it with the new patch. I'll let you know if it runs well here.
Comment 43 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-09 10:45:30 UTC
After some testing that it doesn't interfere with non-kde builds I've put the proposed patch in portage now. Thanks to everyone here for working this out, especially to David for the patch.
Comment 44 Serkan Kaba (RETIRED) gentoo-dev 2009-05-18 06:14:58 UTC
*** Bug 270157 has been marked as a duplicate of this bug. ***
Comment 45 Mark Nowiasz 2009-05-18 06:23:26 UTC
(In reply to comment #44)
> *** Bug 270157 has been marked as a duplicate of this bug. ***

Well, could you please reopen the bug? 3.1.0 doesn't work with the kde flag enabled.

Comment 46 Sebastian Luther (few) 2009-05-18 12:18:55 UTC
Reopening as requested.
Comment 47 Serkan Kaba (RETIRED) gentoo-dev 2009-05-18 12:35:50 UTC
*** Bug 270273 has been marked as a duplicate of this bug. ***
Comment 48 Vasco Figueira 2009-05-18 12:59:15 UTC
Confirm 3.1.0 with kde fails. Builds with -kde. Care for config?
Comment 49 Anton S. Ustyuzhanin 2009-05-18 17:46:16 UTC
(In reply to comment #48)
> Confirm 3.1.0 with kde fails. Builds with -kde. Care for config?

same here.
Comment 50 Sebastian Wiesner 2009-05-19 16:50:27 UTC
(In reply to comment #49)
> > Confirm 3.1.0 with kde fails. Builds with -kde. Care for config?


Same here.
Comment 51 Mieszko Ślusarczyk 2009-05-19 21:34:01 UTC
*** Bug 269815 has been marked as a duplicate of this bug. ***
Comment 52 Thomas Benn 2009-05-21 19:54:30 UTC
Same here. I run AMD64 with ~amd64 as accepted_keyword and KDE in the resulting version.

OO fails to build at the vcl module. Any further info needed?
Comment 53 keenblade 2009-05-22 13:29:56 UTC
Created attachment 192111 [details]
openoffice-3.1.0-build.log.gz

Emerge failure log of openoffice-3.1.0 using following command:
"LC_ALL=C MAKEOPTS="-j1" emerge -v1 openoffice"
Up to date ~x86_64 arch here.
Comment 54 Zac Medico gentoo-dev 2009-05-24 04:01:30 UTC
*** Bug 270914 has been marked as a duplicate of this bug. ***
Comment 55 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-24 08:17:38 UTC
*** Bug 270801 has been marked as a duplicate of this bug. ***
Comment 56 Vasilis Lourdas 2009-05-24 08:36:28 UTC
Will Openoffice 3.1.0 build without the kde USE flag?
Comment 57 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-24 08:47:22 UTC
I've just reenabled the old patch in our build, hope this solves your building problems. Please give the mirrors some time to catch up and then try again.

Still clueless, why this bug suddenly reappeared, 3.0.1 seemed to work fine without the patch...
Comment 58 Mark Nowiasz 2009-05-24 09:40:42 UTC
(In reply to comment #56)
> Will Openoffice 3.1.0 build without the kde USE flag?

Yes (at least today, a couple of days ago it didn't build at all) 
Comment 59 Vasilis Lourdas 2009-05-24 10:01:39 UTC
Created attachment 192278 [details]
build.log

(In reply to comment #57)
> I've just reenabled the old patch in our build, hope this solves your building
> problems. Please give the mirrors some time to catch up and then try again.
> 
> Still clueless, why this bug suddenly reappeared, 3.0.1 seemed to work fine
> without the patch...

I grabbed the updated ebuild directly from the CVS and tried to build. It again fails. Attached is the build.log.
Comment 60 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-24 10:51:24 UTC
(In reply to comment #59)
> I grabbed the updated ebuild directly from the CVS and tried to build. It again
> fails. Attached is the build.log.

Your build log does not show any signs of the patch being applied, so I don't think you really did build the most recent version...
Comment 61 Vasilis Lourdas 2009-05-24 11:04:31 UTC
(In reply to comment #60)
> Your build log does not show any signs of the patch being applied, so I don't
> think you really did build the most recent version...

Ok, trying again. I emerged sync just now and it seems that the new version is now there.

Will report back.
Comment 62 Mark Nowiasz 2009-05-24 11:51:48 UTC
(In reply to comment #61)
> (In reply to comment #60)
> > Your build log does not show any signs of the patch being applied, so I don't
> > think you really did build the most recent version...
> 
> Ok, trying again. I emerged sync just now and it seems that the new version is
> now there.
> 
> Will report back.

Tried that - unfortunately, didn't work at all (attaching build log).

Comment 63 Mark Nowiasz 2009-05-24 12:20:09 UTC
Created attachment 192293 [details]
Build log (3.1.0 with kde flag enabled)

Build log (3.1.0 with kde flag enabled)
Comment 64 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-24 12:26:34 UTC
(In reply to comment #62)
> 
> Tried that - unfortunately, didn't work at all (attaching build log).
> 

Well if you look at the build log - that is not the same bug anymore, please open a seperate report about it (but from a quick look: Such sort of OpenGL-related problems are normally a user configuration problem in respect to graphics drivers...)

Anyway: Out of the scope of this bug.
Comment 65 Mark Nowiasz 2009-05-24 12:38:23 UTC
(In reply to comment #64)

> Anyway: Out of the scope of this bug.

Are you absolutely sure? You see, compiling openoffice 3.1.0 with -kde did work fine, only after enabling kde (and using emerge --newuse) the opengl bug occurred. 

Comment 66 Vasilis Lourdas 2009-05-24 13:25:03 UTC
Created attachment 192300 [details]
build.log

Failed here too. Attached build.log.

It might be the same OpenGL error...
Comment 67 Rafael 2009-05-25 01:48:56 UTC
(In reply to comment #66)
> Created an attachment (id=192300) [edit]
> build.log
> 
> Failed here too. Attached build.log.
> 
> It might be the same OpenGL error...
> 

(In reply to comment #66)
> Created an attachment (id=192300) [edit]
> build.log
> 
> Failed here too. Attached build.log.
> 
> It might be the same OpenGL error...
> 

I've created a bug for the opengl error. It happens with USE="-kde" also.
See bug 271152
Comment 68 Zac Medico gentoo-dev 2009-05-25 05:45:08 UTC
(In reply to comment #57)
> I've just reenabled the old patch in our build, hope this solves your building
> problems. Please give the mirrors some time to catch up and then try again.

Thanks, it works for me with the patch (solves the error about vcl).

> Still clueless, why this bug suddenly reappeared, 3.0.1 seemed to work fine
> without the patch...

Without the patch, 3.0.1 failed with an error similar to the vcl one, but it was about soltools instead of vcl.
Comment 69 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-25 06:17:14 UTC
(In reply to comment #68)
> Without the patch, 3.0.1 failed with an error similar to the vcl one, but it
> was about soltools instead of vcl.

Still this obviously was triggered by some recent changes in the Gentoo KDE stuff as it worked for months before getting broken again...
Comment 70 Thomas Benn 2009-05-26 05:06:29 UTC
Mine still fails, but this time with:

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

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans

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


Is this a new bug now? To me it appears the only difference being that its the slideshow module now..
Comment 71 Rafael 2009-05-26 05:31:21 UTC
(In reply to comment #70)
> Mine still fails, but this time with:
> 
> 1 module(s):
>         slideshow
> need(s) to be rebuilt
> 
> Reason(s):
> 
> ERROR: error 65280 occurred while making
> /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans
> 
> Attention: if you build and deliver the above module(s) you may prolongue your
> the build issuing command "build --from slideshow"
> 
> 
> Is this a new bug now? To me it appears the only difference being that its the
> slideshow module now..
> 

Yes. It seems to be a different bug. It also happens if you don't have installed any package with the "kdeprefix" use flag. And it's unrelated to the "kde" use flag too. See bug 271152 for this issue.

Comment 72 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-26 05:55:16 UTC
So, the original kde-related bug seems to be fixed again, so closing.
Comment 73 Vasco Figueira 2009-05-26 09:35:19 UTC
(In reply to comment #71)
> Yes. It seems to be a different bug. It also happens if you don't have
> installed any package with the "kdeprefix" use flag. And it's unrelated to the
> "kde" use flag too. See bug 271152 for this issue.

I admit it's not the same bug, but it seems related to kde. I have no kdeprefix-ed package and my build failed at vcl module with +kde. With -kde it build fine.

Bug #271152 seems unrelated to me.
Comment 74 Billy DeVincentis 2009-05-26 12:23:58 UTC
I got the same slideshow error
Comment 75 Malcolm MacLeod 2010-03-07 06:59:17 UTC
I am getting the same problem now for openoffice 3.2
Comment 76 Jeremy Murphy 2010-10-04 04:53:57 UTC
Argh!  This bug is back!  Did someone accidentally revert whatever patch was in place to fix this issue?  Could this bug please be confirmed and re-opened?  Thanks.
Comment 77 Ed Tomlinson 2010-11-11 23:30:44 UTC
(In reply to comment #76)
> Argh!  This bug is back!  Did someone accidentally revert whatever patch was in
> place to fix this issue?  Could this bug please be confirmed and re-opened? 
> Thanks.

Its happening here too.