gtkmm failed to build on 10.9.1 #26923

Closed
sbp opened this Issue Feb 22, 2014 · 12 comments

Projects

None yet

3 participants

@sbp
Contributor
sbp commented Feb 22, 2014

Logs and details:

https://gist.github.com/sbp/9162614

Looks tricky:

libtool: link: clang++ [...]
Undefined symbols for architecture x86_64:
"Glib::ustring::ustring(std::string const&)", referenced from:
Gdk::DragContext::get_selection() const in dragcontext.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libgdkmm-2.4.la] Error 1

And gtkmm is a dependency for inkscape.

Contributor
adamv commented Feb 22, 2014

Please post your brew doctor as well.

Contributor

Try rebuilding its dependencies, like glib.

Contributor
sbp commented Feb 22, 2014
$ brew remove glibmm gtk+ libsigc++ pangomm atkmm cairomm
$ brew install glibmm gtk+ libsigc++ pangomm atkmm cairomm
$ brew install gtkmm

Results in the same error.

Contributor
adamv commented Feb 22, 2014

Missed some deps.

Contributor
sbp commented Feb 22, 2014
$ brew info gtkmm
[...]
==> Dependencies
Build: xz ✔, pkg-config ✔
Required: glibmm ✔, gtk+ ✔, libsigc++ ✔, pangomm ✔, atkmm ✔, cairomm ✔

$ brew remove xz pkg-config glibmm gtk+ libsigc++ pangomm atkmm cairomm 
$ brew install xz pkg-config glibmm gtk+ libsigc++ pangomm atkmm cairomm
$ brew install gtkmm

Results in the same error.

Contributor
adamv commented Feb 22, 2014
$ brew deps gtkmm
atk
atkmm
cairo
cairomm
fontconfig
freetype
gdk-pixbuf
gettext
glib
glibmm
gobject-introspection
gtk+
harfbuzz
icu4c
jpeg
libffi
libpng
libsigc++
libtiff
pango
pangomm
pixman
pkg-config
xz
Contributor

Try removing glib as well as glibmm.

Can I see the build logs from your second attempt?

Contributor
sbp commented Feb 22, 2014
$ brew uninstall $(brew deps gtkmm)
$ brew install atk atkmm cairo cairomm fontconfig freetype \
    gdk-pixbuf gettext glib glibmm gobject-introspection gtk+ \
    harfbuzz icu4c jpeg libffi libpng libsigc++ libtiff pango \
    pangomm pixman pkg-config xz
$ brew install gtkmm

Results in the same error.

Logs from this installation attempt are here:

https://gist.github.com/sbp/9163221

Contributor

-lstdc++

Hm, I wonder what the chances are that it's trying to build against libstdc++ when its deps were all built with libc++.

Contributor

I can't reproduce this, however my 02.make.cc doesn't include -lstdc++ anywhere.

Contributor
adamv commented Mar 31, 2014

I'm sorry we don't have a better answer for this.

Since this has been opened there have been updates to most of the gtkmm dependency tree, so at this point the way forward is to (again, sorry) remove all of the dependencies and let them rebuild. If it still fails, we'll need updated troubleshooting information.

@adamv adamv closed this Mar 31, 2014
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.