From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.devel Subject: Re: imagemagick support on W32 Date: Thu, 30 Sep 2010 20:32:20 -0600 Message-ID: <4CA54834.4020106@gmail.com> References: <4CA53CE5.1020702@gmail.com> <4CA54727.6010900@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285900353 13530 80.91.229.12 (1 Oct 2010 02:32:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 02:32:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 01 04:32:32 2010 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 1P1VQF-0005bi-Ng for ged-emacs-devel@m.gmane.org; Fri, 01 Oct 2010 04:32:32 +0200 Original-Received: from localhost ([127.0.0.1]:55697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1VQF-0002Y2-5V for ged-emacs-devel@m.gmane.org; Thu, 30 Sep 2010 22:32:31 -0400 Original-Received: from [140.186.70.92] (port=52935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1VQ9-0002Xx-C8 for emacs-devel@gnu.org; Thu, 30 Sep 2010 22:32:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1VQ8-0007In-8j for emacs-devel@gnu.org; Thu, 30 Sep 2010 22:32:25 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:38038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1VQ8-0007Ij-5R for emacs-devel@gnu.org; Thu, 30 Sep 2010 22:32:24 -0400 Original-Received: by gxk24 with SMTP id 24so1506828gxk.0 for ; Thu, 30 Sep 2010 19:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=zSuaLwAToVmLJMObqnKHCnCYH33wOfKCQ+shmwBYLgM=; b=lwSOd/XfRFu3uJglWcbh3G/ftrJapFnp9v6p93AmysUpUCfHhEJABY/As/oPHSzjg2 r3b8XLqFhmuhV33ciU+H7nRezTcTVDZrA2RfVc7FsLUopSXy510RocNLQ8C6m8zNoCDl WYiMvDX0ej0EAyqoXavrWUK15vfLpcQMNCDqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=okqaDLAIb18IAFvVA1EDD/kmZwTqBjAyIyfMl1DpTc06B7DUuOV74e28J/LBgN9WxR otlREheQ9Ba+Xy7bYUzahwxIoPVKjuuNgV07Jf5/fgbuA2RURuoheypfHIroU8qmPmJ3 vyI87zfFaeHEIagJmgLW5CAGouxdGJZ2URCO8= Original-Received: by 10.150.144.20 with SMTP id r20mr271423ybd.440.1285900343631; Thu, 30 Sep 2010 19:32:23 -0700 (PDT) Original-Received: from [192.168.1.5] (67-41-203-171.hlrn.qwest.net [67.41.203.171]) by mx.google.com with ESMTPS id v9sm98976ybe.9.2010.09.30.19.32.22 (version=SSLv3 cipher=RC4-MD5); Thu, 30 Sep 2010 19:32:22 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <4CA54727.6010900@gmail.com> X-detected-operating-system: by eggs.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:131122 Archived-At: I found the linker problem. This is the correct way to configure: configure.bat --no-cygwin --enable-checking --with-gcc --distfiles D:/devel/emacs/libXpm-3.5.8/src/libXpm.dll --cflags -IC:/Progra~2/GnuWin32/include --cflags -ID:/devel/emacs/libXpm-3.5.8/include --cflags -ID:/devel/emacs/libXpm-3.5.8/src --cflags -IC:/Progra~2/ImageMagick-6.6.4-Q16/include --ldflags -LC:/Progra~2/ImageMagick-6.6.4-Q16 --ldflags -lCORE_RL_magick_ --ldflags -lCORE_RL_wand_ i.e. -LC:/Progra~2/ImageMagick-6.6.4-Q16 not -LC:/Progra~2/ImageMagick-6.6.4-Q16/lib Now the only problem is this: Line 8631 of image.c: return CHECK_LIB_AVAILABLE (&imagemagick_type, init_imagemagick_functions, libraries); Where is init_imagemagick_functions defined? For example, init_png_functions is defined in image.c, but init_imagemagick_functions is not. Therefore, the linker complains about a missing reference to init_imagemagick_functions when linking with ImageMagick support on Windows. I added a stub for this function in my code and now it compiles and links fine, but it will most likely blow up at runtime. Christoph