Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403755 - app-office/libreoffice-3.5.0.3 fails to build
Summary: app-office/libreoffice-3.5.0.3 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 405811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-15 02:58 UTC by Patrick Lauer
Modified: 2012-03-30 11:10 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-02-15 02:58:17 UTC
Compiling: extensions/source/propctrlr/formgeometryhandler.cxx
/usr/bin/xsltproc --nonet --stringparam uri \
        'vnd.sun.star.expand:$LO_LIB_DIR/libpcrlo.so' -o ../../unxlngx6.pro/misc/pcr.component \
        /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/solenv/bin/createcomponent.xslt pcr.component
Making:    pcr.srs
Making:    pcren-US.res
Compiling: rsc_pcr
Making:    pcr.lib
Making:    libpcrlo.so
Entering /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/extensions/util

extensions deliver
Module 'extensions' delivered successfully. 50 files copied, 10 files unchanged

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/fpicker/source/unx/kde4

 it seems that the error is inside 'fpicker', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/bin/sh
cd /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3
source ./Env.Host.sh
cd fpicker
rm -Rf /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/fpicker/unxlngx6.pro # optional module 'clean'
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level
make[1]: *** [build] Error 1
make[1]: Leaving directory `/mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3'
make: *** [source-env-and-recurse] Error 2
 * ERROR: app-office/libreoffice-3.5.0.3 failed (compile phase):


Portage 2.2.0_alpha86 (!../usr/portage/profiles/default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.14.1-r2, 3.2.2-vs2.3.2.6 x86_64)
=================================================================
System uname: Linux-3.2.2-vs2.3.2.6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
Timestamp of tree: Unknown
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo kde x11 qt Testing
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average=5 --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://gentoo.osuosl.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB de de_DE zh_CN"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/sdb1/build"
PORTDIR="/home/me/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/x11 /var/lib/layman/qt /home/me/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gdu gif gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber java javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms ldap libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs syslog taglib tcpd threads tidy tiff truetype udev unicode usb vlc vorbis wifi wmf wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xorg xpm xscreensaver xulrunner xv xvid 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_GB de de_DE zh_CN" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrick Lauer gentoo-dev 2012-02-15 02:58:55 UTC
=============
(1/1) Building module fpicker
=============
Entering /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/fpicker/inc

Entering /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/fpicker/source/unx/kde4

Compiling: fpicker/unxlngx6.pro/misc/fps_kde4.uno_version.c
Compiling: fpicker/source/unx/kde4/KDE4FilePicker.cxx
In file included from /usr/include/kcompletion.h:24:0,
                 from /usr/include/kcombobox.h:27,
                 from /usr/include/kfilefiltercombo.h:27,
                 from /mnt/sdb1/build/portage/app-office/libreoffice-3.5.0.3/work/libreoffice-core-3.5.0.3/fpicker/source/unx/kde4/KDE4FilePicker.cxx:67:
/usr/include/kglobalsettings.h:595:46: error: expected identifier before '(' token
/usr/include/kglobalsettings.h:595:46: error: expected '}' before '(' token
/usr/include/kglobalsettings.h:595:46: 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' [-fpermissive]
/usr/include/kglobalsettings.h:688:1: error: expected declaration before '}' token
dmake:  Error code 1, while making '../../../unxlngx6.pro/slo/KDE4FilePicker.obj'
Comment 2 Franz Trischberger 2012-02-15 13:23:15 UTC
I just built libreoffice-3.5.0.3 - no problems. I also have kde-USE-Flag enabled:

============================
* app-office/libreoffice
    ::gentoo                  3.3.4 3.4.3.2-r1 3.4.5.2 3.5.0.3(~)* (3.5.9999)K (9999-r2)K {:0}
    ::installed               3.5.0.3 {:0}
    app-office/libreoffice-3.5.0.3:0::installed (world)
    Description               LibreOffice, a full office productivity suite.
    Homepage                  http://www.libreoffice.org
    From repositories         gentoo
    Installed time            Wed Feb 15 14:03:47 CET 2012
    Installed using           paludis-0.70.2
    License                   LGPL-3
    Use flags                 (-aqua) (-binfilter) (branding) (dbus) (-debug) (-eds) (-gnome) (graphite) (gstreamer) (-gtk) (-gtk3) (java) (jemalloc) (kde) (-mysql) (-nsplugin) (-odk) (opengl) (pdfimport) (-postgres) (svg) (vba) (-webdav) (xmlsec) (-test) build_options: -trace
=============================

Which version of kde do you have installed? I am running 4.8.0.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-02-15 13:49:16 UTC
The bug is correct, it is for trunk series, patrick already has a patch that he will commit when he finishes testing it (i don;t want to do it as i can't test it with trunk kde).
Comment 4 Franz Trischberger 2012-02-15 16:03:26 UTC
Ah, OK. But that wasn't mentioned. I just browsed bugs and stumbled over this report. I wanted to wait with the update, as I was afraid it would not build (libreoffice really takes some time ;)) "...fails to build against kde-trunk" would have been clear.

This is not meant to be offensive, just wanted to mention it. If there is a patch, everything is fine, thanks!
Comment 5 Nikolaos Chatzidakis 2012-02-16 22:21:38 UTC
Had the same problem... Removing the "mysql" flag, somehow solved the problem... :S
Comment 6 Andreas Sturmlechner gentoo-dev 2012-02-25 19:39:32 UTC
*** Bug 405811 has been marked as a duplicate of this bug. ***
Comment 7 Andreas Sturmlechner gentoo-dev 2012-02-25 19:42:24 UTC
I'm gladly volunteering to test the patch. :)
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-07 10:34:13 UTC
I was slightly wrong as the patch aparently is already applied in 3.5.0.3.

So as I don't really want to install trunk version of KDE you guys will have to find out yourself which define is clashing this time.
Comment 9 BT 2012-03-09 00:24:00 UTC
It also fails with KDE 4.8.1.
Comment 10 fly_a320 2012-03-09 10:11:53 UTC
There is a double define in fpicker/source/unx/kde4/KDE4FilePicker.cxx ( SETTINGS_LOCALE is beeing defined in kde-4.8* (kglobalsettings.h), which was not in KDE-4.7* this collides with one inFilePicker.cxx )

in the toplevel build dir do this:

sed -i 's/#undef SETTINGS_MOUSE/&\n#undef SETTINGS_LOCALE/' fpicker/source/unx/kde4/KDE4FilePicker.cxx
Comment 11 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-09 10:44:25 UTC
Thats weird it should be already properly undefed in the file.

This is the code in the file:


//kde has an enum that uses this...OO does too
#define LO_SETTINGS_MOUSE SETTINGS_MOUSE
#undef SETTINGS_MOUSE
#define LO_SETTINGS_LOCALE SETTINGS_LOCALE
#undef SETTINGS_LOCALE

#include <kfiledialog.h>
#include <kwindowsystem.h>
#include <kapplication.h>
#include <kfilefiltercombo.h>

#include <qclipboard.h>
#include <QWidget>
#include <QCheckBox>
#include <QGridLayout>

#undef Region

#define SETTINGS_MOUSE LO_SETTINGS_MOUSE
#undef LO_SETTINGS_MOUSE
#define SETTINGS_LOCALE LO_SETTINGS_LOCALE
#undef LO_SETTINGS_LOCALE
Comment 12 fly_a320 2012-03-09 11:37:55 UTC
OK, my fault. I was having the same failure building OO-3.3.0. the sed worked for me in OpenOffice. I was not aware of the undefs in libreoffice.
Comment 13 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-09 11:45:47 UTC
(In reply to comment #12)
> OK, my fault. I was having the same failure building OO-3.3.0. the sed
> worked for me in OpenOffice. I was not aware of the undefs in libreoffice.

No prob.

Btw if you use openoffice wanna prep package for ooo-3.4? :P
Comment 14 Timo Breitner 2012-03-09 13:35:10 UTC
Had the same error after upgrading to kde 4.8.1 (no error with kde 4.8.0). Seems to be "yet another clash with macro name", upstream fix: http://cgit.freedesktop.org/libreoffice/core/commit/fpicker/source/unx/kde4/KDE4FilePicker.cxx?id=ee67c55260ec7723c39606955ccdbd3e2934935a. This patch works for me.
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-09 13:49:40 UTC
Commited to 3.5 branch and added to our 3.5.1 release.

Thanks for the spot I missed the commit from David.
Comment 16 Robert Cabrera 2012-03-28 14:57:10 UTC
(In reply to comment #15)
> Commited to 3.5 branch and added to our 3.5.1 release.
> 
> Thanks for the spot I missed the commit from David.

Tomas you need to add the "libreoffice-3.5.1-kde-4.8.1-namespace.patch" to the libreoffice-3.4.5.2.ebuild so that it too will install with KDE-4.8.1.

I've been unable to install libreoffice-3.5.1.2 because of bug 401507 so I'm stuck using 3.4.5.2.

Over the weekend when I synced my system curl was updated, which caused several apps including libreoffice to need recompiling. However it refused to build because of the above error. Then I found this bug report and added the above mentioned patch to libreoffice-3.4.5.2 in my overlay and it emerged without errors.

What I did was rename the patch to "libreoffice-kde-4.8.1-namespace.patch" (so it could be used by both libreoffice versions that need it.

Then I added to the ebuild the following:
	"${FILESDIR}/${PN}-java.patch"
	"${FILESDIR}/${PN}-kde48.patch"
     +++"${FILESDIR}/${PN}-kde-4.8.1-namespace.patch"
)

I hope this helps

Ciao
Comment 17 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-28 15:23:37 UTC
Done
Comment 18 Robert Cabrera 2012-03-30 10:53:33 UTC
(In reply to comment #17)
> Done

Almost, but not quite Tomáš. 

You did modify the ebuild for libreoffice-3.4.5.2 to use a patch named '${PN}-kde-4.8.1-namespace.patch' but haven't included any patches with that name in the files directory.

My suggestion is to rename the 'libreoffice-3.5.1-kde-4.8.1-namespace.patch' to 'libreoffice-4.8.1-namespace.patch'.

Then modify the ebuilds for BOTH libreoffice-3.4.5.2 and libreoffice-3.5.1.2 to use it.

You have already modified the libreoffice-3.4.5.2.ebuild accordingly.

Now you need to rename the patch, then make the following changes to the libreoffice-3.5.1.2.ebuild

PATCHES=(
	# this can't be upstreamed :(
	"${FILESDIR}/${PN}-system-pyuno.patch"
	"${FILESDIR}/${PN}-3.5-propagate-gb_FULLDEPS.patch"
	"${FILESDIR}/${PN}-3.5-junit.patch"
     ---"${FILESDIR}/libreoffice-3.5.1-kde-4.8.1-namespace.patch"
     +++"${FILESDIR}/${PN}-kde-4.8.1-namespace.patch"
)


This way you only need one patch to work for multiple versions of libreoffice ebuilds.

I hope this helps

Ciao
Comment 19 Tomáš Chvátal (RETIRED) gentoo-dev 2012-03-30 11:10:47 UTC
(In reply to comment #18)
> (In reply to comment #17)
> > Done
> 
> Almost, but not quite Tomáš. 
> 
> You did modify the ebuild for libreoffice-3.4.5.2 to use a patch named
> '${PN}-kde-4.8.1-namespace.patch' but haven't included any patches with that
> name in the files directory.
> 
> My suggestion is to rename the 'libreoffice-3.5.1-kde-4.8.1-namespace.patch'
> to 'libreoffice-4.8.1-namespace.patch'.
> 
> Then modify the ebuilds for BOTH libreoffice-3.4.5.2 and libreoffice-3.5.1.2
> to use it.
> 
> You have already modified the libreoffice-3.4.5.2.ebuild accordingly.
> 
> Now you need to rename the patch, then make the following changes to the
> libreoffice-3.5.1.2.ebuild
> 
> PATCHES=(
> 	# this can't be upstreamed :(
> 	"${FILESDIR}/${PN}-system-pyuno.patch"
> 	"${FILESDIR}/${PN}-3.5-propagate-gb_FULLDEPS.patch"
> 	"${FILESDIR}/${PN}-3.5-junit.patch"
>      ---"${FILESDIR}/libreoffice-3.5.1-kde-4.8.1-namespace.patch"
>      +++"${FILESDIR}/${PN}-kde-4.8.1-namespace.patch"
> )
> 
> 
> This way you only need one patch to work for multiple versions of
> libreoffice ebuilds.
> 
> I hope this helps
> 
> Ciao

Aah i did copy it and didnt cvs add the file :)

Anyway i will just use 3.5.1 in the name of the patch for the 3.4.5.2 and be done with it. Sorry for the fuzz.