From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: dynamic loading of the imagemagic library? Date: Tue, 11 Aug 2009 22:36:17 +0800 Message-ID: <4A8181E1.3020701@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250001413 4574 80.91.229.12 (11 Aug 2009 14:36:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 14:36:53 +0000 (UTC) Cc: Emacs Development To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 16:36:46 2009 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.50) id 1MasSy-0008KZ-1A for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 16:36:44 +0200 Original-Received: from localhost ([127.0.0.1]:60965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasSw-0006kj-HO for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 10:36:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MasSj-0006ft-Oi for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:36:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MasSf-0006e1-13 for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:36:29 -0400 Original-Received: from [199.232.76.173] (port=43329 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasSe-0006dt-Sb for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:36:24 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.175]:47848) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MasSe-0004mi-Ds for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:36:24 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 23so1447896wfg.24 for ; Tue, 11 Aug 2009 07:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:message-id :date:from:user-agent:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=T+9vf4vX/DbKMx2TX8p7BlDUcjUYX1wGuQ4nkvOm47s=; b=EyHdkKTlIHblobA/Of2F0Kp8RnBCbjqIBNFBuo7JqpTt9sV3Wf4kQgg44QLbrozlsi uI5oHkb437RelR/L9jagWCyBQhBJf18LavchOHNyUyxuA20tKGIRolVwgFPARBgiXEgx n7aJNxcOqyZTWHEJfFp/nVYDh1mO8GRLWkf20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=HIsKu7FGh/A+Egcccu7QZ1i9V0tEhMy8oU7EnUnN8XDX3OPAxLeunlwCDjNZskbJH6 wqiwJLYwF6izJa/HuXNEl/G44JyucQSYZfEqLOdJnOKOXAmtJLBZip1mnmvHisEcky+n 4beZjd15kQQKM6l/5qJhKPyxEk86OuOQKf048= Original-Received: by 10.142.166.21 with SMTP id o21mr1327822wfe.308.1250001381552; Tue, 11 Aug 2009 07:36:21 -0700 (PDT) Original-Received: from wanchan.jasonrumney.net ([124.13.5.71]) by mx.google.com with ESMTPS id 28sm16214146wfd.24.2009.08.11.07.36.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Aug 2009 07:36:21 -0700 (PDT) Original-Received: from wanchan.jasonrumney.net (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id B5FEEB4B; Tue, 11 Aug 2009 22:36:17 +0800 (MYT) User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:114054 Archived-At: joakim@verona.se wrote: > Is it ok to use dlopen and dlsym for imagemagick loading on > gnu/linux platforms? I presume yes, but since I only dimly understand > why dynamic use of external libraries is problematic, I ask. > Linking to Free libraries is not problematic, making a generalized API to allow arbritrary libraries to be dynamically loaded might be. The reason w32 uses dynamic linking for the image libraries is that there is no equivalent of apt/deb, rpm, BSD ports or fink on w32, so it is better for the users if we don't fail to run when non-essential dependencies are missing.