Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,
Sorry to bother you, but I have a problem with my build environment
that I can not figure out by myself. I suspect that there is something
obvious...

I'm on a vanilla Opensuse 11.4. I have the required dependencies
installed gtk, gtk-devel and so on. I have also the
libreoffice-bootstrap package installed but I don't use it directly
(should I?)

Instead I pulled down the bootstrap via git and then ran
./download
./autogen.sh --with-num-cpus=2
make

Then after compiling for a while:

deliver -- version: 275594
Module 'automation' delivered successfully. 1 files copied, 20 files unchanged
[ build LNK ] Library/libqstart_gtkli.so
/home/thuswa/work/libreoffice/bootstrap/solver/300/unxlngi6.pro/workdir/CxxObject/sfx2/source/appl/shutdowniconunx.o:
In function `menu_deactivate_cb(_GtkWidget*)':
shutdowniconunx.cxx:(.text+0xb8): undefined reference to `gtk_menu_get_type'
shutdowniconunx.cxx:(.text+0xc3): undefined reference to
`g_type_check_instance_cast'
shutdowniconunx.cxx:(.text+0xcb): undefined reference to `gtk_menu_popdown'
/home/thuswa/work/libreoffice/bootstrap/solver/300/unxlngi6.pro/workdir/CxxObject/sfx2/source/appl/shutdowniconunx.o:
In function `add_image_menu_item(_GtkMenuShell*, char const*,
rtl::OUString, void (*)())':
.....

           <<<More similar output>>>>

....
shutdowniconunx.cxx:(.text+0xf42): undefined reference to `gtk_menu_get_type'
shutdowniconunx.cxx:(.text+0xf4d): undefined reference to
`g_type_check_instance_cast'
shutdowniconunx.cxx:(.text+0xf5a): undefined reference to
`gtk_status_icon_position_menu'
shutdowniconunx.cxx:(.text+0xf64): undefined reference to `gtk_menu_popup'
collect2: ld returned 1 exit status
make[1]: *** 
[/home/thuswa/work/libreoffice/bootstrap/solver/300/unxlngi6.pro/workdir/LinkTarget/Library/libqstart_gtkli.so]
Error 1
dmake:  Error code 2, while making 'all'

-----------------------------------------------------------------------
        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
/home/thuswa/work/libreoffice/bootstrap/sfx2/prj

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

I.e. linkage of GTK+ fails!

So what to look for:

pkg-config --cflags --modversion gtk+-2.0

gives me:

2.22.1
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12

also relevant parts of config.log:

ac_cv_env_GTK_CFLAGS_set=set
ac_cv_env_GTK_CFLAGS_value='-pthread -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12  '
ac_cv_env_GTK_LIBS_set=set
ac_cv_env_GTK_LIBS_value='-pthread -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lcairo
-lpango-1.0 -lfreetype -lfontconfig -lgdk_pixbuf_xlib-2.0
-lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lpng12 -lgthread-2.0
-lrt -lglib-2.0  '

What am I doing wrong? Any hints and pointers are welcome.

TIA
/Albert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.