From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: how to resolve namespace issues between imagemagick and gif libraries? Date: Fri, 31 Jul 2009 20:02:32 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249063381 3522 80.91.229.12 (31 Jul 2009 18:03:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 18:03:01 +0000 (UTC) To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 31 20:02:54 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 1MWwRQ-0004GN-GA for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 20:02:52 +0200 Original-Received: from localhost ([127.0.0.1]:47656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWwRP-00067E-Se for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 14:02:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWwRK-000644-Oe for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:02:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWwRG-0005xo-MO for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:02:46 -0400 Original-Received: from [199.232.76.173] (port=45098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWwRG-0005xg-Fh for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:02:42 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:54626 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWwRF-0003WH-Q7 for emacs-devel@gnu.org; Fri, 31 Jul 2009 14:02:42 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id n6VI2ZBu028744 for ; Fri, 31 Jul 2009 20:02:36 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:113472 Archived-At: I've made a patch that makes it possible to load an image file using the imagemagick library. However, I cant compile in imagemagick and gif support at the same time due to namespace collisions. When compiling image.c: gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I. -I/mnt/data/build/emacs= new/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/inclu= de -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/= usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I= /usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/= usr/include/alsa -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/li= b/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/inclu= de/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -fopenmp -I/us= r/include/ImageMagick -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -= g -O2 -Wno-pointer-sign image.c In file included from /usr/include/ImageMagick/wand/deprecate.h:28, from /usr/include/ImageMagick/wand/MagickWand.h:154, from image.c:7865: /usr/include/ImageMagick/wand/drawing-wand.h:172: error: conflicting types = for =E2=80=98DrawRectangle=E2=80=99 /usr/include/gif_lib.h:324: note: previous declaration of =E2=80=98DrawRect= angle=E2=80=99 was here make[1]: *** [image.o] Error 1 make[1]: Leaving directory `/mnt/data/build/emacsnew/emacs/src' make: *** [src] Error 2 If I leave out gif support it compiles and works well enough to load a djvu file in emacs like this: (insert-image (create-image "/tmp/tst.djvu" 'imagemagick) ) Any hints how to fix this in a manner acceptable for Emacs code? --=20 Joakim Verona