From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Dynamic loading of C libraries Date: Wed, 19 May 2010 19:09:04 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1274310555 23539 80.91.229.12 (19 May 2010 23:09:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 May 2010 23:09:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 20 01:09:11 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 1OEsNz-0003OE-Cg for ged-emacs-devel@m.gmane.org; Thu, 20 May 2010 01:09:11 +0200 Original-Received: from localhost ([127.0.0.1]:46758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEsNy-0008Ch-NK for ged-emacs-devel@m.gmane.org; Wed, 19 May 2010 19:09:10 -0400 Original-Received: from [199.232.76.173] (port=51242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEsNt-0008Cc-Ko for emacs-devel@gnu.org; Wed, 19 May 2010 19:09:05 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OEsNs-000429-Fh for emacs-devel@gnu.org; Wed, 19 May 2010 19:09:05 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:50491) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OEsNs-000423-9a for emacs-devel@gnu.org; Wed, 19 May 2010 19:09:04 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OEsNs-0006zo-2c; Wed, 19 May 2010 19:09:04 -0400 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:124954 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.