From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading of C libraries Date: Fri, 21 May 2010 20:15:45 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274487889 2662 80.91.229.12 (22 May 2010 00:24:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 May 2010 00:24:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 22 02:24:48 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OFcWF-00012n-Sz for ged-emacs-devel@m.gmane.org; Sat, 22 May 2010 02:24:48 +0200 Original-Received: from localhost ([127.0.0.1]:44592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFcWE-0006Kl-Lm for ged-emacs-devel@m.gmane.org; Fri, 21 May 2010 20:24:46 -0400 Original-Received: from [140.186.70.92] (port=51978 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFcVy-0005vg-NH for emacs-devel@gnu.org; Fri, 21 May 2010 20:24:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFcNY-0002HA-8O for emacs-devel@gnu.org; Fri, 21 May 2010 20:15:49 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:55443 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFcNY-0002H1-0V; Fri, 21 May 2010 20:15:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEFAOe+9ktFpZJF/2dsb2JhbACSAowVcr51hRIEjDQ X-IronPort-AV: E=Sophos;i="4.53,281,1272859200"; d="scan'208";a="64778131" Original-Received: from 69-165-146-69.dsl.teksavvy.com (HELO alfajor.home) ([69.165.146.69]) by ironport2-out.pppoe.ca with ESMTP; 21 May 2010 20:15:46 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 0789AAED71; Fri, 21 May 2010 20:15:45 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Wed, 19 May 2010 19:09:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125020 Archived-At: > I talked with our lawyer, and we determined that GCC's technique of > checking for a symbol whose name says "I am under a GPL3-compatible > license" is ok for Emacs and other GNU packages when dynamically > loading libraries at the C level. > So you can implement dynamic loading with the check for that symbol. > If the symbol is not present then the function to load should > report an error and not load it. That's great news. So all we need now is for someone to submit a patch that provides such dynamic loading functionality, and then start using it. Stefan