Ticket #587 (closed crash: fixed)

Opened 12 months ago

Last modified 10 months ago

libcairo-gobject is broken

Reported by: camillo.lugaresi+xquartz@… Owned by: jeremyhu@…
Priority: Blocker Milestone: 2.7.3
Component: x11-libs Version: 2.7.2 (xserver-1.12.2)
Keywords: Cc:

Description

XQuartz 2.7.2 ships with libcairo-gobject, but that library links to nonexistent libraries, so it's unusable.

$ otool -L /opt/X11/lib/libcairo-gobject.2.dylib ...

/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7) /opt/local/lib/libgobject-2.0.0.dylib (compatibility version 3201.0.0, current version 3201.3.0) /opt/local/lib/libglib-2.0.0.dylib (compatibility version 3201.0.0, current version 3201.3.0) /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0)

...

Installing MacPorts is not an option.

Change History

comment:1 Changed 12 months ago by camillo.lugaresi+xquartz@…

The description got messed up and I can't edit it. The list of libraries was:

	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7)
	/opt/local/lib/libgobject-2.0.0.dylib (compatibility version 3201.0.0, current version 3201.3.0)
	/opt/local/lib/libglib-2.0.0.dylib (compatibility version 3201.0.0, current version 3201.3.0)
	/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0)

comment:2 Changed 12 months ago by jeremyhu@…

  • Priority changed from Not Set to Blocker
  • Milestone set to 2.7.3

Thanks. The fix is to actually just not ship the gobject support. That snuck in because it found gobject on my system.

This ticket will track my adding logic to my build system to find issues like this before ship and to add --disable-glib (or whatever is appropriate) to cairo's configure args.

comment:3 Changed 12 months ago by jeremyhu@…

  • Status changed from new to assigned

comment:4 Changed 12 months ago by camillo.lugaresi+xquartz@…

Thanks for the quick response. For applications that need it, is there a way to build cairo-gobject separately from the rest of cairo?

comment:5 Changed 12 months ago by jeremyhu@…

Well, you'll need to build glib2 for one thing. Then you can probably ./configure cairo as normal ad just run make from the appropriate subdirectory. I'm not sure though since I've never needed to ;)

comment:6 Changed 10 months ago by jeremyhu@…

  • Status changed from assigned to closed
  • Resolution set to fixed

I have this fixed locally, and it will be in the first beta of rc of 2.7.3

Note: See TracTickets for help on using tickets.