Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.97k stars 11.35k forks source link

gtk+ 2.24 appears broken #12126

Closed jessereynolds closed 12 years ago

jessereynolds commented 12 years ago

I'm trying to 'brew install mtr' but it's failing on gtk+ ...

dyld: Library not loaded: /usr/local/lib/libpixman-1.0.24.2.dylib
  Referenced from: /usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib
  Reason: image not found
/bin/sh: line 1: 88735 Trace/BPT trap: 5       ../../gtk/gtk-query-immodules-2.0 im-am-et.la im-cedilla.la im-cyrillic-translit.la im-inuktitut.la im-ipa.la im-multipress.la im-thai.la im-ti-er.la im-ti-et.la im-viqr.la im-xim.la > gtk.immodules
make[2]: *** [gtk.immodules] Error 133
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

output of 'brew install -v gtk+': https://gist.github.com/2627555 output of 'brew doctor', 'brew --config', and config.log: https://gist.github.com/2627496

... or do I need to trash my /usr/local and start again?

jessereynolds commented 12 years ago

I found that deinstalling and reinstalling cairo fixed this as the previous cairo was pointing to a non-existant pixman lib:

jesse@Heart-of-Gold ~ $ otool -L /usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib
/usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib:
    /usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib (compatibility version 11003.0.0, current version 11003.2.0)
    /usr/local/lib/libpixman-1.0.24.2.dylib (compatibility version 25.0.0, current version 25.2.0)

Whereas it was pointing to libpixman-1.0.24.2.dylib the actual version currently installed is libpixman-1.0.24.4.dylib

I don't know enough about brew to know where the bug lies.

adamv commented 12 years ago

This is "expected behavior" from Pixman; the Pixman library bumps its micro-version on almost every update.

jessereynolds commented 12 years ago

So this is standard fare with brew? I mean, regularly getting build failures because something hasn't noticed something else has been upgraded and it needs to be rebuilt?

jacknagel commented 12 years ago

It's expected behavior for pixman, pretty much everything else has a sane library versioning policy.