Summary: | 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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | cruzki <cruzki123> |
Component: | Current packages | Assignee: | Gentoo Office Team <office> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cruzki123, emmanuelduviviers49, tomwij |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log.zip |
Description
cruzki
2013-01-13 11:07:16 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. Please attach the complete build log in English, you can do this by putting LC_ALL=C in front of the emerge command. Created attachment 335818 [details]
build.log.zip
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 Added the required use on gtk when you desire telepathy. Thanks for the report, I missed it as I always build with gtk enabled. |