Re: [gtk-osx-users] 10.6 to 10.8.3 upgrade rebuild issues




On Aug 22, 2013, at 7:37 PM, Alwyn Goodloe <agoodloe gmail com> wrote:

A while back I managed to get gtk up and working on my laptop running OSX 10.6. I've just got upgraded to 10.8.3 so I had to upgrade gtk. As a first shot I thought I would just try the old



 gtk-osx-build-setup.sh  

and build

 bootstrap

 meta-gtk-osx-bootstrap

meta-gtk-osx-core

.
.
.

and see what happens. Everything started off OK but I ran into a known problem in 
gobject-introspection with libiconv   missing symbol dyld. Some searching of the archives uncovered an thread from 2011 indicating  it was a known bug. At first there was listed a patch for libiconv but later there was a comment that it was better to use skip=libiconv but the library is still needed the version in /usr/lib is a version mismatch. I'm guessing my next move might be to try the patch to libiconv, but in reading I was a bit confused as to whether the patch really fixed things I figured it would likely be in the general release by now if it had.
 If the best solution is a complete wipe of the gtk directory and starting over I can do that too.

-------

dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcudyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /Users/agoodloe/gtk/inst/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
ps.2.dylib
  Expected in: /Users/agoodloe/gtk/inst/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /Users/agoodloe/gtk/inst/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libcups.2.dylib
  Expected in: /Users/agoodloe/gtk/inst/lib/libiconv.2.dylib
 in /usr/lib/libcups.2.dylib
Traceback (most recent call last):
  File "./g-ir-scanner", line 44, in <module>
    from giscanner.scannermain import scanner_main
  File "./giscanner/scannermain.py", line 34, in <module>
    from giscanner.dumper import compile_introspection_binary
  File "./giscanner/dumper.py", line 28, in <module>
    from .gdumpparser import IntrospectionBinary
  File "./giscanner/gdumpparser.py", line 31, in <module>
    from .transformer import TransformerException
  File "./giscanner/transformer.py", line 27, in <module>
    from .girparser import GIRParser
  File "./giscanner/girparser.py", line 26, in <module>
    from .girwriter import COMPATIBLE_GIR_VERSION
  File "./giscanner/girwriter.py", line 25, in <module>
    from .xmlwriter import XMLWriter
  File "./giscanner/xmlwriter.py", line 74, in <module>
    from _giscanner import collect_attributes
  File "./giscanner/libtoolimporter.py", line 66, in load_module
    mod = imp.load_module(name, open(realpath), realpath, (extension, 'rb', 3))
ImportError: dlopen(./.libs/_giscanner.so, 2): Library not loaded: /usr/local/lib/libgthread-2.0.0.dylib
  Referenced from: /Users/agoodloe/gtk/inst/lib/libgio-2.0.0.dylib
  Reason: Incompatible library version: libgio-2.0.0.dylib requires version 3401.0.0 or later, but libgthread-2.0.0.dylib provides version 2801.0.0
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 69091 Trace/BPT trap: 5       env PATH=.libs:/Users/agoodloe/gtk/inst/bin:/Users/agoodloe/gtk/inst/bin/:/Users/agoodloe/gtk/inst/lib:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/usr/local/lib:/Users/agoodloe/pvs:/Users/agoodloe/PERICO/lib:/usr/local/bin:/usr/local/Frama-C_Carbon/bin:/Users/agoodloe/Simplify:/Users/agoodloe/yices-1.0.29/bin:/Users/agoodloe/veriT-200907:/usr/texbin:/Users/agoodloe/sal-3.2/bin:/Users/agoodloe/.cabal/bin:/Users/agoodloe/vampires:/usr/local/smlnj-110.74/bin:/Users/agoodloe/MicroBOA/:/usr/local/Trolltech/Qt-4.8.2/bin:/Users/agoodloe/.local/bin:.:/bin:/usr/sbin:/sbin ./g-ir-compiler --includedir=. --includedir=./gir --includedir=. --includedir=. --includedir=. gir/GL-1.0.gir -o gir/GL-1.0.typelib
make[2]: *** [gir/GL-1.0.typelib] Error 133
/bin/sh: line 1: 69092 Trace/BPT trap: 5       env PATH=.libs:/Users/agoodloe/gtk/inst/bin:/Users/agoodloe/gtk/inst/bin/:/Users/agoodloe/gtk/inst/lib:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/usr/local/lib:/Users/agoodloe/pvs:/Users/agoodloe/PERICO/lib:/usr/local/bin:/usr/local/Frama-C_Carbon/bin:/Users/agoodloe/Simplify:/Users/agoodloe/yices-1.0.29/bin:/Users/agoodloe/veriT-200907:/usr/texbin:/Users/agoodloe/sal-3.2/bin:/Users/agoodloe/.cabal/bin:/Users/agoodloe/vampires:/usr/local/smlnj-110.74/bin:/Users/agoodloe/MicroBOA/:/usr/local/Trolltech/Qt-4.8.2/bin:/Users/agoodloe/.local/bin:.:/bin:/usr/sbin:/sbin ./g-ir-compiler --includedir=. --includedir=./gir --includedir=. --includedir=. --includedir=. gir/freetype2-2.0.gir -o gir/freetype2-2.0.typelib
make[2]: *** [gir/freetype2-2.0.typelib] Error 133
/bin/sh: line 1: 69089 Trace/BPT trap: 5       env PATH=.libs:/Users/agoodloe/gtk/inst/bin:/Users/agoodloe/gtk/inst/bin/:/Users/agoodloe/gtk/inst/lib:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/usr/local/lib:/Users/agoodloe/pvs:/Users/agoodloe/PERICO/lib:/usr/local/bin:/usr/local/Frama-C_Carbon/bin:/Users/agoodloe/Simplify:/Users/agoodloe/yices-1.0.29/bin:/Users/agoodloe/veriT-200907:/usr/texbin:/Users/agoodloe/sal-3.2/bin:/Users/agoodloe/.cabal/bin:/Users/agoodloe/vampires:/usr/local/smlnj-110.74/bin:/Users/agoodloe/MicroBOA/:/usr/local/Trolltech/Qt-4.8.2/bin:/Users/agoodloe/.local/bin:.:/bin:/usr/sbin:/sbin ./g-ir-compiler --includedir=. --includedir=./gir --includedir=. --includedir=. --includedir=. gir/DBus-1.0.gir -o gir/DBus-1.0.typelib
make[2]: *** [gir/DBus-1.0.typelib] Error 133
/bin/sh: line 1: 69090 Trace/BPT trap: 5       env PATH=.libs:/Users/agoodloe/gtk/inst/bin:/Users/agoodloe/gtk/inst/bin/:/Users/agoodloe/gtk/inst/lib:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/usr/local/lib:/Users/agoodloe/pvs:/Users/agoodloe/PERICO/lib:/usr/local/bin:/usr/local/Frama-C_Carbon/bin:/Users/agoodloe/Simplify:/Users/agoodloe/yices-1.0.29/bin:/Users/agoodloe/veriT-200907:/usr/texbin:/Users/agoodloe/sal-3.2/bin:/Users/agoodloe/.cabal/bin:/Users/agoodloe/vampires:/usr/local/smlnj-110.74/bin:/Users/agoodloe/MicroBOA/:/usr/local/Trolltech/Qt-4.8.2/bin:/Users/agoodloe/.local/bin:.:/bin:/usr/sbin:/sbin ./g-ir-compiler --includedir=. --includedir=./gir --includedir=. --includedir=. --includedir=. gir/fontconfig-2.0.gir -o gir/fontconfig-2.0.typelib
make[2]: *** [gir/fontconfig-2.0.typelib] Error 133
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


You've made a mess. Notice this:

ImportError: dlopen(./.libs/_giscanner.so, 2): Library not loaded: /usr/local/lib/libgthread-2.0.0.dylib
  Referenced from: /Users/agoodloe/gtk/inst/lib/libgio-2.0.0.dylib
  Reason: Incompatible library version: libgio-2.0.0.dylib requires version 3401.0.0 or later, but libgthread-2.0.0.dylib provides version 2801.0.0

That ain't gonna work, and it may not be easy to clean up.  You must either remove /usr/local from all of the paths that jhbuild uses (PATH, DYLD_LIBRARY_PATH, etc) or remove anything that jhbuild builds from /usr/local. IOW, same rules as for MacPorts or Fink.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]