delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <467B3B30.5090308@users.sourceforge.net> |
Date: | Thu, 21 Jun 2007 22:00:00 -0500 |
From: | "Yaakov (Cygwin Ports)" <yselkowitz AT users DOT sourceforge DOT net> |
User-Agent: | Thunderbird 2.0.0.4 (Windows/20070604) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | dlopen()/dlsym() and symbols in deps |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 It would appear that Cygwin's dlopen() implementation does not support the automatic loading of dependencies. This matters in the case that one dlsym()'s a *handle to find a symbol in the dependencies rather than in itself. On linux, this is apparently possible: "Note that some implementations permit the construction of dependencies between such objects that are embedded within files. In such cases, a dlopen() operation shall load such dependencies in addition to the object referenced by file." [1] [1] http://www.opengroup.org/onlinepubs/009695399/functions/dlopen.html I came across this when reporting what I originally thought was a bug in glade3 [2] (with a testcase[3]), but now I have found it to be a deficiency in Cygwin itself. While I think I have a fix for gmodule to work around this, based on tml's gmodule-win32.c code (and therefore I can't propose a patch myself), it would be nice to see this implemented in Cygwin proper. [2] http://bugzilla.gnome.org/show_bug.cgi?id=449562 [3] http://bugzilla.gnome.org/attachment.cgi?id=90416 Could someone more familiar with the internal workings of Cygwin please provide some input on this issue? Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGezswpiWmPGlmQSMRCGP+AJ9jqZBpYloCZpq64JUF0JLpRo+ukACg8xnJ KkhL/s3nx6jyQdumLBsgVm4= =/0q+ -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |