Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can not emerge libreoffice-4.0.0.3
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
popsUlfr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2011
Posts: 80

PostPosted: Sat Feb 23, 2013 2:35 pm    Post subject: [SOLVED] Can not emerge libreoffice-4.0.0.3 Reply with quote

Hello everybody,

I get some problems emerging app-office/libreoffice-4.0.0.3 in a kde environment. These are the use flags:
Code:
[ebuild     U  ] app-office/libreoffice-4.0.0.3 [3.6.4.3] USE="bluetooth%* branding cups dbus gstreamer java jemalloc kde mysql opengl postgres telepathy%* vba webdav (-aqua) -debug% -eds -gnome -gtk -gtk3% -odk {-test} (-binfilter%) (-binfilterdebug%)" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher (-pdfimport%*) (-presenter-console%*)" PYTHON_SINGLE_TARGET="python2_7%* (-python3_3)" PYTHON_TARGETS="python2_7%* (-python3_3)"


It complained about missing "gtk/gtk.h" so I added the output of
Code:
pkg-config --cflags gtk+-3.0

and
Code:
pkg-config --libs gtk+-3.0

to my CFLAGS and LDFLAGS respectively in my
Code:
/etc/portage/env/app-office/libreoffice


Which looks like that afterwards
Code:

CFLAGS="${CFLAGS} -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${LDFLAGS} -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0"


This allows the build process to go somewhat further but ultimately fails with
Code:

[build XCU] driver_mork/en-US/org/openoffice/Office/DataAccess/Drivers.xcu
/var/notmpfs/portage/app-office/libreoffice-4.0.0.3/work/libreoffice-4.0.0.3/workdir/unxlngx6.pro/CObject/tubes/source/approver.o: In function `dialog_response_cb':
approver.c:(.text+0x7b): undefined reference to `gtk_dialog_get_type'
approver.c:(.text+0x96): undefined reference to `gtk_dialog_set_response_sensitive'
approver.c:(.text+0xb0): undefined reference to `gtk_dialog_set_response_sensitive'
approver.c:(.text+0xda): undefined reference to `gtk_widget_destroy'
/var/notmpfs/portage/app-office/libreoffice-4.0.0.3/work/libreoffice-4.0.0.3/workdir/unxlngx6.pro/CObject/tubes/source/approver.o: In function `handle_with_cb':
approver.c:(.text+0x189): undefined reference to `gtk_message_dialog_get_type'
approver.c:(.text+0x1e5): undefined reference to `gtk_message_dialog_format_secondary_markup'
approver.c:(.text+0x204): undefined reference to `gtk_widget_get_type'
approver.c:(.text+0x217): undefined reference to `gtk_widget_destroy'
/var/notmpfs/portage/app-office/libreoffice-4.0.0.3/work/libreoffice-4.0.0.3/workdir/unxlngx6.pro/CObject/tubes/source/S=/var/notmpfs/portage/app-office/libreoffice-4.0.0.3/work/libreoffice-4.0.0.3 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/XcuResTarget/driver_mork/en-US/org/openoffice/Office/DataAccess/ && xsltproc --nonet -o $W/XcuResTarget/driver_mork/en-US/org/openoffice/Office/DataAccess/Drivers.xcu --stringparam xcs $O/xml/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs --stringparam schemaRoot $O/xml/registry/schema --stringparam locale en-US --path $O/xml/registry $O/xml/processing/alllang.xsl $S/connectivity/registry/mork/org/openoffice/Office/DataAccess/Drivers.xcu
approver.o: In function `add_dispatch_operation_cb':
approver.c:(.text+0x337): undefined reference to `gtk_message_dialog_new_with_markup'
approver.c:(.text+0x34f): undefined reference to `gtk_image_new_from_file'
approver.c:(.text+0x357): undefined reference to `gtk_message_dialog_get_type'
approver.c:(.text+0x36d): undefined reference to `gtk_message_dialog_set_image'
approver.c:(.text+0x372): undefined reference to `gtk_dialog_get_type'
approver.c:(.text+0x3a3): undefined reference to `gtk_dialog_add_buttons'
approver.c:(.text+0x400): undefined reference to `gtk_window_get_type'
approver.c:(.text+0x415): undefined reference to `gtk_window_set_skip_taskbar_hint'
approver.c:(.text+0x429): undefined reference to `gtk_widget_show_all'
/var/notmpfs/portage/app-office/libreoffice-4.0.0.3/work/libreoffice-4.0.0.3/workdir/unxlngx6.pro/CObject/tubes/source/approver.o: In function `main':
approver.c:(.text.startup+0x23): undefined reference to `gtk_init'
collect2: error: ld returned 1 exit status
[build XCU] connectivity/registry/mork/org/openoffice/Office/DataAccess/Drivers-mork.xcu
make[2]: *** [/var/notmpfs/portage/app-office/libreoffice-4.0.0.3/work/libreoffice-4.0.0.3/workdir/unxlngx6.pro/LinkTarget/Executable/liboapprover] Error 1


Which is weird no? Since I appended the needed ld flags...

My 'emerge --info' output:
Code:

Portage 2.2.0_alpha163 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.7.6-zen x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.6-zen-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8157508 total,   3325576 free
KiB Swap:    2104476 total,   2015540 free
Timestamp of tree: Sat, 23 Feb 2013 10:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: sabayon multimedia steam-overlay gentoo local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 Oracle-BCLA-JavaSE PUEL AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=corei7-avx -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=corei7-avx -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--noconfmem --quiet=n --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sabayon /var/lib/layman/multimedia /var/lib/layman/steam-overlay /usr/portage /usr/local/portage"
SYNC="rsync://rsync1.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns adplug ads alsa amd64 amr archive audit avahi avx berkdb bidi bluetooth bluray branding bzip2 cairo caps cdda cddb cdio cdr cli consolekit cracklib crypt cue cups curl cxx dbus declarative development dga dirac dmx dri dts dv dvd dvdr egl emboss encode exif expat fam ffmpeg fftw firefox flac fluidsynth fontconfig fortran gdbm gif gimp gme gmp gnutls gphoto2 gpm gsm gstreamer http iconv icu idn ieee1394 ipv6 jack javascript jpeg jpeg2k kate kde kipi ladspa lame lash lcms ldap libass libnotify libproxy libsamplerate lm_sensors lua lzma mad matroska midi mmx mmxext mng modplug modules mp3 mp4 mpeg mtp mudflap multilib multilib_abi_amd64 musepack mysql ncurses network networkmanager nls nodep nptl nsplugin nvidia ogg openal opengl openmp openssl openvg opus pam pango pcre pdf phonon plasma png policykit portaudio postgres postscript ppds projectm pulseaudio qt3support qt4 quota raw readline rtsp samba scanner schroedinger sdl semantic-desktop session smp sndfile speex spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg syslog systemd taglib tcpd theora threads tiff truetype twolame udev udisks unicode upnp upower usb v4l vaapi vcd vdpau vorbis vpx wavpack webkit webp wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xinetd xml xorg xosd xpm xscreensaver xv xvid xvmc zeroconf zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump" CAMERAS="*" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="*" LINGUAS="en_GB en_US en de fr" LIRC_DEVICES="userspace" NETBEANS_MODULES="*" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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, USE_PYTHON



I suspect there's something broken either in the ebuild or on my system because I shouldn't have had to add these flags myself in the first place :/

Does anyone know how to fix this?


Last edited by popsUlfr on Sun Mar 03, 2013 2:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Fri Mar 01, 2013 10:53 pm    Post subject: Reply with quote

What is the output of:
Code:
emerge -pv gtk+

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
popsUlfr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2011
Posts: 80

PostPosted: Sat Mar 02, 2013 10:14 am    Post subject: Reply with quote

eyoung100 wrote:
What is the output of:
Code:
emerge -pv gtk+


Hi, here's the output:
Code:

[ebuild   R    ] x11-libs/gtk+-3.6.3-r2:3  USE="X cups introspection xinerama (-aqua) -colord -debug (-egl) -examples (-packagekit) {-test} -vim-syntax (-wayland)" 0 kB


and
Code:
emerge -pv gtk+:2

gives
Code:
[ebuild   R    ] x11-libs/gtk+-2.24.16:2  USE="cups introspection xinerama (-aqua) -debug -examples {-test} -vim-syntax" 0 kB


I recreated my system from a fresh stage3 and I'm still encountering this error.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Sat Mar 02, 2013 11:03 pm    Post subject: Reply with quote

Remove the /etc/portage/env/app-office/libreoffice file then modify
Code:
/etc/portage/package.use
adding:
either gtk or gtk3:
This concerns me:
[ebuild U ] app-office/libreoffice-4.0.0.3 [3.6.4.3] USE="bluetooth%* branding cups dbus gstreamer java jemalloc kde mysql opengl postgres telepathy%* vba webdav (-aqua) -debug% -eds -gnome -gtk -gtk3% -odk {-test} (-binfilter%) (-binfilterdebug%)" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher (-pdfimport%*) (-presenter-console%*)" PYTHON_SINGLE_TARGET="python2_7%* (-python3_3)" PYTHON_TARGETS="python2_7%* (-python3_3)"

If adding either flag produces a successful build we need to file a build bug.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
popsUlfr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2011
Posts: 80

PostPosted: Sun Mar 03, 2013 1:08 pm    Post subject: Reply with quote

eyoung100 wrote:
Remove the /etc/portage/env/app-office/libreoffice file then modify
Code:
/etc/portage/package.use
adding:
either gtk or gtk3:
This concerns me:
[ebuild U ] app-office/libreoffice-4.0.0.3 [3.6.4.3] USE="bluetooth%* branding cups dbus gstreamer java jemalloc kde mysql opengl postgres telepathy%* vba webdav (-aqua) -debug% -eds -gnome -gtk -gtk3% -odk {-test} (-binfilter%) (-binfilterdebug%)" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher (-pdfimport%*) (-presenter-console%*)" PYTHON_SINGLE_TARGET="python2_7%* (-python3_3)" PYTHON_TARGETS="python2_7%* (-python3_3)"

If adding either flag produces a successful build we need to file a build bug.


Yep, good call on the gtk useflags. Before recreating my system I tried with the gtk3 use flag enabled (sorry I completely forgot to mention it) but got the same results in the end. I'm testing both again (I mean once with gtk -gtk3 and once with -gtk gtk3) right now.

EDIT: Alright using gtk -gtk3 makes it compile succesfully! YEAH! -gtk gtk3 does not. So... does this mean that the gtk useflag must always be enabled in libreoffice for it to compile successfully?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Mar 04, 2013 8:49 pm    Post subject: Reply with quote

popsUlfr wrote:
EDIT: Alright using gtk -gtk3 makes it compile succesfully! YEAH! -gtk gtk3 does not. So... does this mean that the gtk useflag must always be enabled in libreoffice for it to compile successfully?


That is Correct, which is why we need to now file a bug telling the gentoo maintainer of LibreOffice that the GTK flag is REQUIRED, not optional, unless he knows of a fix.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum