# Issue building Cairo linked to glib: undefined method \`uses\_from\_macos'

**URL:** https://discourse.julialang.org/t/issue-building-cairo-linked-to-glib-undefined-method-uses-from-macos/26311
**Category:** New to Julia
**Created:** [July 13, 2019, 5:59am UTC](https://discourse.julialang.org/t/issue-building-cairo-linked-to-glib-undefined-method-uses-from-macos/26311 "2019-07-13T05:59:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mouki-Kimou](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Mouki-Kimou](https://discourse.julialang.org/u/Mouki-Kimou)
#### Post date: [July 13, 2019, 5:59am UTC](https://discourse.julialang.org/t/issue-building-cairo-linked-to-glib-undefined-method-uses-from-macos/26311/1 "2019-07-13T05:59:07Z")

</div>

Hi !  
I wanted to reinstall Gtk because I got an issue with empty windows. But now Cairo does not want to build.

I tried to update,upgrade, update-reset, rm, … Homebrew.  
There is a topic on brew "forum"about that [brew topic](https://discourse.brew.sh/t/undefined-method-uses-from-macos/5232) but there doesn’t seem to have a solution.

I don’t know what to do.

Thank you for your help !

```julia
" **┌ Error:** Error building `Cairo`: 

**│** WARNING: redefining constant DEBIAN_VERSION_REGEX

**│** WARNING: redefining constant have_sonames

**│** WARNING: redefining constant sonames

**│** WARNING: redefining constant EXTENSIONS

**│** Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespacea48ca441d76283034e0771f11ba514b0::Glib:Class

**│** Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespacea48ca441d76283034e0771f11ba514b0::Glib:Class

**│** Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespacea48ca441d76283034e0771f11ba514b0::Glib:Class

**│** 

**│** signal (11): Segmentation fault: 11

**│** in expression starting at /Users/Asphod/.julia/packages/Cairo/p68X8/deps/build.jl:176

**│** _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)

**│** Allocations: 20052375 (Pool: 20049509; Big: 2866); GC: 44

```

---

<div class="post-metadata">

### Author: ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)
#### Post date: [July 13, 2019, 7:11am UTC](https://discourse.julialang.org/t/issue-building-cairo-linked-to-glib-undefined-method-uses-from-macos/26311/2 "2019-07-13T07:11:08Z")

</div>

Building Cairo has been a problem since a few months, I’m not sure there’s a clear solution yet:

[https://github.com/JuliaPackaging/Homebrew.jl/issues/257](https://github.com/JuliaPackaging/Homebrew.jl/issues/257)

[https://github.com/JuliaGraphics/Cairo.jl/issues/271](https://github.com/JuliaGraphics/Cairo.jl/issues/271)

I broke my Gtk installation last week, and the only thing I could do was copy an older version of my Homebrew folder (which contains all the binary dependency) to restore it to a working state.

Maybe try the master branch of Homebrew:

[https://github.com/JuliaPackaging/Homebrew.jl/pull/258](https://github.com/JuliaPackaging/Homebrew.jl/pull/258)
