After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 346713 - [PATCH] quartz backend is missing functions that pygtk needs
[PATCH] quartz backend is missing functions that pygtk needs
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Quartz
2.10.x
Other All
: Normal normal
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-07-06 03:39 UTC by Dave Vasilevsky
Modified: 2006-07-09 18:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Pygtk stubs (2.54 KB, patch)
2006-07-06 19:32 UTC, Dave Vasilevsky
none Details | Review

Description Dave Vasilevsky 2006-07-06 03:39:49 UTC
Please describe the problem:
Newer versions of pygtk require a number of functions which the quartz backend of GTK+ doesn't define. When one attempts to run a pygtk script, the dynamic linker gets mad because of undefined symbols, and refuses to run.

The attached patch adds stubs for the missing functions. Alternatively, we could have pygtk not use the missing functions--I have written a Ruby script which can make this automatic (http://vasi.dyndns.org:3128/trac/browser/gtk-osx/trunk/scripts/pygtk-missing.rb), I'll elaborate if anybody's interested.

Steps to reproduce:
1. Build pygtk against a GTK which uses the quartz backend.
2. Attempt to run any pygtk script, eg: pygtk-demo.


Actual results:
Dyld barfs:
ImportError: dlopen(/gtkosx/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so, 2): Symbol not found: _gtk_clipboard_wait_for_rich_text
  Referenced from: /gtkosx/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so
  Expected in: flat namespace


Expected results:
The script should run.

Does this happen every time?
Yes.

Other information:
Comment 1 Richard Hult 2006-07-06 19:14:32 UTC
Ah, true. The patch seems to be missing though.

I will update my GTK+ build now and go through your other patches, thanks a lot!
Comment 2 Dave Vasilevsky 2006-07-06 19:32:34 UTC
Created attachment 68491 [details] [review]
Pygtk stubs

Sorry for the missing patch, here it is. In case I forget any of the others, they're all available here: http://vasi.dyndns.org:3128/trac/browser/gtk-osx/trunk/patch
Comment 3 Richard Hult 2006-07-09 18:09:22 UTC
Thanks, committed to CVS.