Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451658 - app-office/libreoffice-4.0.0.1 USE=telepathy - /work/libreoffice-4.0.0.1/tubes/source/approver.c:32:21: error fatal: gtk/gtk.h: No existe el fichero o el directorio
Summary: app-office/libreoffice-4.0.0.1 USE=telepathy - /work/libreoffice-4.0.0.1/tube...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-13 11:07 UTC by cruzki
Modified: 2013-01-27 08:21 UTC (History)
3 users (show)

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


Attachments
build.log.zip (build.log.zip,162.20 KB, application/x-zip)
2013-01-16 13:24 UTC, cruzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cruzki 2013-01-13 11:07:16 UTC
When trying to compile libreoffice-4.0.0.1 with USEFALGS:

[ebuild     U ] app-office/libreoffice-4.0.0.1 [3.6.4.3] USE="branding cups dbus java jemalloc kde telepathy%* (-aqua) -bluetooth% -debug% -eds -gnome -gstreamer -gtk -gtk3% -mysql -nsplugin% -odk -opengl -postgres {-test} -vba -webdav (-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)" 

I have the following error (sorry for the spanish, it is a does not find a file or directory error):

[build C  ] tubes/source/approver.c
S=/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CObject/tubes/source/ $W/Dep/CObject/tubes/source/ && cd /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1 &&  x86_64-pc-linux-gnu-gcc -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_KDE4 -DENABLE_TELEPATHY -DGCC -DHAVE_GCC_BUILTIN_ATOMIC -DHAVE_THREADSAFE_STATICS -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=400 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DRTL_USING   -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wendif-labels -Wextra -fmessage-length=0 -fno-common -pipe  -DLIBO_MERGELIBS -fPIC -Wdeclaration-after-statement -Wshadow   -march=native -O2 -pipe   -c $S/tubes/source/approver.c -o $W/CObject/tubes/source/approver.o  -I$S/tubes/source/ -I$S/tubes/inc  -I$O/inc/external -I$O/inc -I$S/solenv/inc  -I/usr/lib64/icedtea7/include -I/usr/lib64/icedtea7/include/linux -I/usr/lib64/icedtea7/include/native_threads/include      -pthread -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     
[build PKG] tubes_ui
/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/tubes/source/approver.c:32:21: error fatal: gtk/gtk.h: No existe el fichero o el directorio
compilación terminada.
make[2]: *** [/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CObject/tubes/source/approver.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
rm /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/line.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/ExternalHeaders/StaticLibrary/libxmlsec1-nss.a /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_fi.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_he.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char_in.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/sent.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word_fi.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/ExternalHeaders/StaticLibrary/libxmlsec1.a /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_he.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/sent.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/line.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_fi.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word_fi.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char_in.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_he.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_he.brk /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_hu.brk
make[2]: se sale del directorio `/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/tail_build'

-----------------------------------------------------------------------
        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 512 occurred while making /home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1/tail_build/prj

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

-----------------------------------------------------------------------
To rebuild a specific module:

make tail_build.clean # not recommended, this will re-build almost everything
make tail_build

when the problem is isolated and fixed, re-run 'make'
make[1]: *** [build-packimages] Error 1
make[1]: se sale del directorio `/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1'
make: *** [build] Error 2
 * ERROR: app-office/libreoffice-4.0.0.1 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 6832:  Called die
 * The specific snippet of code:
 *       make build || die
 * 
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-4.0.0.1'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-4.0.0.1'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-7  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea7"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/home/portage/portage/app-office/libreoffice-4.0.0.1/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/portage/app-office/libreoffice-4.0.0.1/temp/environment'.
 * Working directory: '/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1'
 * S: '/home/portage/portage/app-office/libreoffice-4.0.0.1/work/libreoffice-4.0.0.1'

My emerge --info

Portage 2.2.0_alpha151 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.8.0-rc3 x86_64)
=================================================================
System uname: Linux-3.8.0-rc3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.2
Timestamp of tree: Sat, 12 Jan 2013 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3
dev-util/cmake:           2.8.10.2-r2::kde
dev-util/pkgconfig:       0.27.1
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.11.6, 1.12.6
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: gentoo betagarden x11 seden roslin science kde maggu2810-overlay pcsx2 hasufell local-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/home/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs 2 --load-average 2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="es_ES"
LC_ALL="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j2"
PKGDIR="/home/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="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/betagarden /usr/local/portage/layman/x11 /usr/local/portage/layman/seden /usr/local/portage/layman/roslin /usr/local/portage/layman/science /usr/local/portage/layman/kde /usr/local/portage/layman/maggu2810-overlay /usr/local/portage/layman/pcsx2-overlay /usr/local/portage/layman/hasufell /usr/local/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acpi alsa amd64 avi bluetooth branding bzip2 cairo cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri emboss encode exif ffmpeg flac ftp gif git gmp gpm gstreamer iconv icq icu jemalloc jpeg kde kipi lame laptop latex lcms lm_sensors lzma matroska mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack ncurses networkmanager nls nptl nsl ogg oggvorbis opengl openmp pam pango pcre pdf phonon png policykit postscript ppds pppd private-headers qt3support qt4 readline sane scanner semantic-desktop session smp spell sse sse2 sse3 ssl ssse3 startup-notification svg symlink tcpd theora threads tiff truetype type1 udev udisks unicode upower usb v4l2 vorbis x264 xcb xcomposite xinerama xml xscreensaver 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="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="karbon krita stage words sheets" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics xwiimote" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="es es_ES" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Recompiling gtk+ does not solv the problem.

Thanks in advance.

Reproducible: Always

Steps to Reproduce:
1. Trying to compile libreoffice-4.0.0.1
2.
3.
Comment 1 cruzki 2013-01-14 10:01:35 UTC
Interestingly, I have been able to compile libreoffice with this USEFLAGS:

[ebuild   R   ] app-office/libreoffice-4.0.0.1  USE="branding cups dbus java jemalloc kde (-aqua) -bluetooth -debug -eds -gnome -gstreamer -gtk -gtk3 -mysql -nsplugin -odk -opengl -postgres -telepathy {-test} -vba -webdav" LIBREOFFICE_EXTENSIONS="-nlpsolver -presenter-minimizer -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python2_7 (-python3_3)" PYTHON_TARGETS="python2_7 (-python3_3)" 

So the problem is related to the telepathy code.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-15 12:56:34 UTC
Please attach the complete build log in English, you can do this by putting LC_ALL=C in front of the emerge command.
Comment 3 cruzki 2013-01-16 13:24:41 UTC
Created attachment 335818 [details]
build.log.zip
Comment 4 Emmanuel 2013-01-26 23:15:26 UTC
I had the same problem with these options :
 - relevant parts of make.conf
CFLAGS="-O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
LINGUAS="fr"

which gives the following options related to libreOffice :
# emerge -pv libreoffice

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

Calculating dependencies... done!
[ebuild   R   ~] app-office/libreoffice-4.0.0.2  USE="branding cups dbus gstreamer java kde mysql odk opengl postgres telepathy vba webdav (-aqua) -bluetooth -debug -eds -gnome -gtk -gtk3 -jemalloc {-test}" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher" PYTHON_SINGLE_TARGET="python2_7 (-python3_3)" PYTHON_TARGETS="python2_7 (-python3_3)"

When building, the error occured : it seems that the building system "forgot" that some source files need to be linked to gtk-3 and others libs, even if i build only for KDE (i did not tried to activate gtk3 use flag, it may help).

Proposed help to continue compile process :
I had to run the commands ran by the makefile with modifications to add correct links, essentialy gtk-3 : i ran these command after each of the 4 encountered errors caused by 2 source files (one error during compilation and one during linking)

 - first error : approver.c does not find gtk/gtk.h, adding -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 to compile command allows to compile, (you need to have these libraries on your system)
The command becomes:
S=/var/tmp/portage/app-office/libreoffice-4.0.0.2/work/libreoffice-4.0.0.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CObject/tubes/source/ $W/Dep/CObject/tubes/source/ && cd /var/tmp/portage/app-office/libreoffice-4.0.0.2/work/libreoffice-4.0.0.2 &&  x86_64-pc-linux-gnu-gcc -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_KDE4 -DENABLE_TELEPATHY -DGCC -DHAVE_GCC_BUILTIN_ATOMIC -DHAVE_THREADSAFE_STATICS -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=400 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DRTL_USING   -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wendif-labels -Wextra -fmessage-length=0 -fno-common -pipe  -DLIBO_MERGELIBS -fPIC -Wdeclaration-after-statement -Wshadow   -O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -fomit-frame-pointer   -c $S/tubes/source/approver.c -o $W/CObject/tubes/source/approver.o  -I$S/tubes/source/ -I$S/tubes/inc  -I$O/inc/external -I$O/inc -I$S/solenv/inc  -I/opt/icedtea-bin-6.1.11.5/include -I/opt/icedtea-bin-6.1.11.5/include/linux -I/opt/icedtea-bin-6.1.11.5/include/native_threads/include -I$S/config       -pthread -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0

 - second error : to link the compiled file (opprover.o), -lgtk-3 is needed and the command becomes
S=/var/tmp/portage/app-office/libreoffice-4.0.0.2/work/libreoffice-4.0.0.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/LinkTarget/Executable/ && x86_64-pc-linux-gnu-g++     -Wl,-z,origin '-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib' -Wl,-rpath-link,$O/lib -Wl,-z,defs  -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc  -L$S/solenv/unxlngx6/lib -L$O/lib -L$S/solenv/unxlngx6/lib  -Wl,--hash-style=gnu  -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-Bsymbolic-functions  -Wl,-O1 -Wl,--as-needed   $W/CObject/tubes/source/approver.o      -Wl,--start-group  -Wl,--end-group -Wl,--no-as-needed    -pthread -ltelepathy-glib -lgthread-2.0 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lgtk-3   -o $W/LinkTarget/Executable/liboapprover

 - third error : same problem for conference.cxx, the command becomes :
S=/var/tmp/portage/app-office/libreoffice-4.0.0.2/work/libreoffice-4.0.0.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CxxObject/tubes/source/ $W/Dep/CxxObject/tubes/source/ && cd /var/tmp/portage/app-office/libreoffice-4.0.0.2/work/libreoffice-4.0.0.2 &&  x86_64-pc-linux-gnu-g++ -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_KDE4 -DENABLE_TELEPATHY -DGCC -DHAVE_GCC_BUILTIN_ATOMIC -DHAVE_THREADSAFE_STATICS -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=400 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DRTL_USING   -DTUBES_DLLIMPLEMENTATION   -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wendif-labels -Wextra -fmessage-length=0 -fno-common -pipe  -fvisibility-inlines-hidden -DLIBO_MERGELIBS -fPIC -Wshadow -Wsign-promo -Woverloaded-virtual  -Wnon-virtual-dtor -std=gnu++0x  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -c $S/tubes/source/conference.cxx -o $W/CxxObject/tubes/source/conference.o  -I$S/tubes/source/ -I$S/tubes/inc  -I$O/inc/external -I$O/inc -I$S/solenv/inc  -I/opt/icedtea-bin-6.1.11.5/include -I/opt/icedtea-bin-6.1.11.5/include/linux -I/opt/icedtea-bin-6.1.11.5/include/native_threads/include -I$S/config   -I$O/inc/udkapi -I$O/inc/offapi     -pthread -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0

 - fourth error : to link conference.o, -lgtk-3 is also needed, the command becomes :
S=/var/tmp/portage/app-office/libreoffice-4.0.0.2/work/libreoffice-4.0.0.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/LinkTarget/Library/ && x86_64-pc-linux-gnu-g++ -shared -Wl,-z,noexecstack    -Wl,-z,origin '-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib' -Wl,-rpath-link,$O/lib -Wl,-z,defs -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc -L$S/solenv/unxlngx6/lib -L$O/lib -L$S/solenv/unxlngx6/lib -Wl,--hash-style=gnu -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-Bsymbolic-functions -Wl,-O1 -Wl,--as-needed       `cat $W/LinkTarget/Library/libavmedialo.so.objectlist` `cat $W/LinkTarget/Library/libcanvastoolslo.so.objectlist` `cat $W/LinkTarget/Library/configmgr.uno.so.objectlist` `cat $W/LinkTarget/Library/libcppcanvaslo.so.objectlist` `cat $W/LinkTarget/Library/libdeploymentmisclo.so.objectlist` `cat $W/LinkTarget/Library/desktopbe1.uno.so.objectlist` `cat $W/LinkTarget/Library/libdrawinglayerlo.so.objectlist` `cat $W/LinkTarget/Library/libeditenglo.so.objectlist` `cat $W/LinkTarget/Library/libfilterconfiglo.so.objectlist` `cat $W/LinkTarget/Library/fsstorage.uno.so.objectlist` `cat $W/LinkTarget/Library/libfwelo.so.objectlist` `cat $W/LinkTarget/Library/libfwilo.so.objectlist` `cat $W/LinkTarget/Library/libfwklo.so.objectlist` `cat $W/LinkTarget/Library/i18npool.uno.so.objectlist` `cat $W/LinkTarget/Library/libi18nutilgcc3.so.objectlist` `cat $W/LinkTarget/Library/liblnglo.so.objectlist` `cat $W/LinkTarget/Library/localebe1.uno.so.objectlist` `cat $W/LinkTarget/Library/libpackage2.so.objectlist` `cat $W/LinkTarget/Library/libsaxlo.so.objectlist` `cat $W/LinkTarget/Library/libsblo.so.objectlist` `cat $W/LinkTarget/Library/libsfxlo.so.objectlist` `cat $W/LinkTarget/Library/libsofficeapp.so.objectlist` `cat $W/LinkTarget/Library/libsotlo.so.objectlist` `cat $W/LinkTarget/Library/libspllo.so.objectlist` `cat $W/LinkTarget/Library/libsvllo.so.objectlist` `cat $W/LinkTarget/Library/libsvtlo.so.objectlist` `cat $W/LinkTarget/Library/libsvxlo.so.objectlist` `cat $W/LinkTarget/Library/libsvxcorelo.so.objectlist` `cat $W/LinkTarget/Library/libtklo.so.objectlist` `cat $W/LinkTarget/Library/libucb1.so.objectlist` `cat $W/LinkTarget/Library/libucpfile1.so.objectlist` `cat $W/LinkTarget/Library/libutllo.so.objectlist` `cat $W/LinkTarget/Library/libuuilo.so.objectlist` `cat $W/LinkTarget/Library/libvcllo.so.objectlist` `cat $W/LinkTarget/Library/libxmlscriptlo.so.objectlist` `cat $W/LinkTarget/Library/libxolo.so.objectlist` `cat $W/LinkTarget/Library/libtubeslo.so.objectlist` -Wl,--start-group  -Wl,--end-group -Wl,--no-as-needed   -lcups  -licui18n -licule -licuuc -ljpeg -llcms2   -lxml2   -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4    -lz -lgraphite2   -lfontconfig   -lfreetype   -lm -ldl -lpthread  -lcairo    -pthread -ltelepathy-glib -lgthread-2.0 -lrt -lgio-2.0 -lgobject-2.0 -lglib-2.0    -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0    -llangtag -lglib-2.0   -lbasegfxlo -lcomphelpgcc3 -luno_cppu -luno_cppuhelpergcc3 -li18nisolang1gcc3 -ljvmfwk -luno_sal -luno_salhelpergcc3 -ltllo -lucbhelper4gcc3 -lxmlreader -ljvmaccessgcc3 -lgtk-3 -o $W/LinkTarget/Library/libmergedlo.so

After running each of the corrected compilation/linking command, i could continue compilation with the command :
ebuild /usr/portage/app-office/libreoffice/libreoffice-4.0.0.2.ebuild merge

hope this help...

The compiled libreoffice package seems ok : i can launch it... But i did not made many tests.

I do not know if this is related or not to telepathy or something else that where enabled in my build but not in cruzsky's successful build.
Makefile and dependancies could need patches...

Emmanuel
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2013-01-27 08:21:34 UTC
Added the required use on gtk when you desire telepathy.

Thanks for the report, I missed it as I always build with gtk enabled.