Opened 13 years ago

Closed 12 years ago

#29063 closed defect (fixed)

gtk3 3.05 configure error quartz

Reported by: Tom.Schoonjans@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: braden@…, hsivank@…, gui-dos (Guido Soranzio), k.polezhaiev@…
Port: gtk3

Description

Hi,

I get an error during the configure stage when installing gtk3 with +no_x11 and +quartz variants

From the logfile:

:info:configure checking whether build environment is sane... yes
:info:configure checking for pkg-config... /opt/local/bin/pkg-config
:info:configure checking pkg-config is at least version 0.9.0... yes
:info:configure checking for BASE_DEPENDENCIES... yes
:info:configure checking for CAIRO_BACKEND... no
:info:configure configure: error: Package requirements ( cairo-xlib) were not met:
:info:configure
:info:configure No package 'cairo-xlib' found
:info:configure
:info:configure Consider adjusting the PKG_CONFIG_PATH environment variable if you
:info:configure installed software in a non-standard prefix.:info:configure:info:configure Alternatively, you may set the environment variables CAIRO_BACKEND_CFLAGS
:info:configure and CAIRO_BACKEND_LIBS to avoid the need to call pkg-config.:info:configure See the pkg-config man page for more details.
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.ma
cports.org_release_ports_gnome_gtk3/work/gtk+-3.0.5" && ./configure --prefix=/opt/local --enable-static --
disable-glibtest --disable-introspection gio_can_sniff=yes --with-gdktarget=quartz " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)

I have all the dependencies installed properly, as I was using the same variant with gtk2

Attachments (2)

Portfile_gtk3_quartz.diff (358 bytes) - added by hsivank@… 13 years ago.
patch_quartz_3_0.diff (286 bytes) - added by Tom.Schoonjans@… 13 years ago.
gtk3.0 patch

Download all attachments as: .zip

Change History (13)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to singingwolfboy@…

comment:2 Changed 13 years ago by braden@…

Cc: braden@… added

Cc Me!

comment:3 Changed 13 years ago by hsivank@…

Cc: hsivank@… added

Cc Me!

Changed 13 years ago by hsivank@…

Attachment: Portfile_gtk3_quartz.diff added

comment:4 Changed 13 years ago by hsivank@…

Should be fixed with this patch ... Braden, could you test ?

comment:5 in reply to:  4 Changed 13 years ago by hsivank@…

Tom.Schoonjans, could you test ?

comment:6 Changed 13 years ago by Tom.Schoonjans@…

Hey,

With this patch the package compiles fine...

BUT it doesn't work when running a program that is linked against these libraries. I get the following error at runtime:

dyld: lazy symbol binding failed: Symbol not found: _GDK_IS_QUARTZ_SCREEN
  Referenced from: /opt/local/lib/libgtk-3.0.dylib
  Expected in: flat namespace

dyld: Symbol not found: _GDK_IS_QUARTZ_SCREEN
  Referenced from: /opt/local/lib/libgtk-3.0.dylib
  Expected in: flat namespace

Trace/BPT trap

I'm not an expert, but I think this means something must have gone wrong during compilation of the library: a macro was incorrectly interpreted as a function...

Changed 13 years ago by Tom.Schoonjans@…

Attachment: patch_quartz_3_0.diff added

gtk3.0 patch

comment:7 Changed 13 years ago by Tom.Schoonjans@…

With path_quartz_3_0.diff I could get rid of this runtime binding issue. I took it from the gtk 3.1 development tree where it was submitted as a patch some time ago.

Now it works fine with the gtk hello world example at least. When I try to link my own code against gtk3-quartz I get a segfault when I call gtk_widget_show_all on my main window at runtime :-(

I don't get this segfault when using gtk3-X11 on my Mac or on Linux (Fedora 15)

I assume this is due to some bug in the gtk3 codebase...

Anyway: feel free to add this patch to the port

comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gui_dos@… k.polezhaiev@… added
Keywords: haspatch added

Has duplicates #33182 and #33678. See also #29659.

comment:9 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from singingwolfboy@… to macports-tickets@…

-> nomaintainer

comment:10 Changed 12 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

comment:11 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

This should be fixed in r95237.

Note: See TracTickets for help on using tickets.