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: Re: how to resolve namespace issues between imagemagick and gif libraries? Date: Sat, 01 Aug 2009 18:57:31 +0200 Message-ID: References: <83vdl8ovq5.fsf@gnu.org> 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 1249145879 19348 80.91.229.12 (1 Aug 2009 16:57:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2009 16:57:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 01 18:57:52 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 1MXHu3-00071R-UZ for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2009 18:57:52 +0200 Original-Received: from localhost ([127.0.0.1]:34613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXHu3-0007zc-Bj for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2009 12:57:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXHty-0007xU-SV for emacs-devel@gnu.org; Sat, 01 Aug 2009 12:57:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXHtt-0007ol-Cj for emacs-devel@gnu.org; Sat, 01 Aug 2009 12:57:45 -0400 Original-Received: from [199.232.76.173] (port=50329 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXHtt-0007oc-65 for emacs-devel@gnu.org; Sat, 01 Aug 2009 12:57:41 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:58709 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 1MXHtq-00063s-I4; Sat, 01 Aug 2009 12:57:39 -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 n71GvVk8009780; Sat, 1 Aug 2009 18:57:33 +0200 In-Reply-To: <83vdl8ovq5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Aug 2009 10:10:26 +0300") 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:113524 Archived-At: Eli Zaretskii writes: >> From: joakim@verona.se >> Date: Fri, 31 Jul 2009 20:02:32 +0200 >>=20 >> 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 typ= es for =E2=80=98DrawRectangle=E2=80=99 >> /usr/include/gif_lib.h:324: note: previous declaration of =E2=80=98DrawR= ectangle=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 > > Can you show here the prototype of DrawRectangle from Imagemagick? DrawRectangle(DrawingWand *,const double,const double,const double, const double) =20=20=20=20 > Is that the only conflict? If not, please show the others as well. > >> Any hints how to fix this in a manner acceptable for Emacs code? > > Does Emacs use DrawRectangle, from any or both these libraries? I > guess at most one is used, or else you'd have problems in the Emacs > sources as well, not just in the headers. If we don't need to use > both, you should be able to rename one of them with #define. Emacs doesnt use the gif DrawRectangle AFAICS, and I dont plan to use the one in the imagemagick library either. > A better solution would be to lobby the maintainers of Imagemagick to > use names specific to the package. --=20 Joakim Verona