Opened 13 years ago

Closed 12 years ago

#33260 closed defect (wontfix)

py*-gtk - fails to run when built against cairo -x11

Reported by: pixilla (Bradley Giesbrecht) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: py25-gtk py26-gtk py27-gtk

Description

$ port -q installed name:^py..-gtk$ or name:^py..-cairo$ or name:^cairo$
  cairo @1.10.2_4 (active)
  py25-cairo @1.8.2_1 (active)
  py25-gtk @2.22.0_1 (active)
  py26-cairo @1.8.10_1 (active)
  py26-gtk @2.22.0_1 (active)
  py27-cairo @1.8.10_1 (active)
  py27-gtk @2.22.0_1 (active)

$ for v in 5 6 7;do python2.$v -c "import gtk";done
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so, 2): Symbol not found: _cairo_xlib_surface_create
  Referenced from: /opt/local/lib/libgdk-x11-2.0.0.dylib
  Expected in: /opt/local/lib/libcairo.2.dylib
 in /opt/local/lib/libgdk-x11-2.0.0.dylib
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/gtk/_gtk.so, 2): Symbol not found: _cairo_xlib_surface_create
  Referenced from: /opt/local/lib/libgdk-x11-2.0.0.dylib
  Expected in: /opt/local/lib/libcairo.2.dylib
 in /opt/local/lib/libgdk-x11-2.0.0.dylib
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so, 2): Symbol not found: _cairo_xlib_surface_create
  Referenced from: /opt/local/lib/libgdk-x11-2.0.0.dylib
  Expected in: /opt/local/lib/libcairo.2.dylib
 in /opt/local/lib/libgdk-x11-2.0.0.dylib

Change History (5)

comment:1 Changed 13 years ago by pixilla (Bradley Giesbrecht)

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

comment:2 Changed 13 years ago by pixilla (Bradley Giesbrecht)

May be duplicate of #31869

comment:3 Changed 13 years ago by pixilla (Bradley Giesbrecht)

This issue appears when cairo is installed without +x11 (-x11) variant.

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

Summary: py25-gtk py26-gtk py27-gtk - Symbol not found: _cairo_xlib_surface_createpy*-gtk - fails to run when built against cairo -x11

comment:5 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: wontfix
Status: newclosed

py*-gtk depends on py*-cairo which produces a ui_error if the -x11 variant is present.

I'm closing this ticket because someone would need to change the cairo variants AFTER installing py*-gtk.

Note: See TracTickets for help on using tickets.