From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: how to resolve namespace issues between imagemagick and gif libraries? Date: Sat, 01 Aug 2009 10:10:26 +0300 Message-ID: <83vdl8ovq5.fsf@gnu.org> References: Reply-To: Eli Zaretskii 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 1249110644 3162 80.91.229.12 (1 Aug 2009 07:10:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2009 07:10:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 01 09:10:36 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 1MX8jk-0007n3-9v for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2009 09:10:36 +0200 Original-Received: from localhost ([127.0.0.1]:39040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX8jj-0004s1-LI for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2009 03:10:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MX8je-0004qV-7Z for emacs-devel@gnu.org; Sat, 01 Aug 2009 03:10:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MX8jd-0004pr-Ju for emacs-devel@gnu.org; Sat, 01 Aug 2009 03:10:29 -0400 Original-Received: from [199.232.76.173] (port=52062 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX8jd-0004po-GI for emacs-devel@gnu.org; Sat, 01 Aug 2009 03:10:29 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:31966) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MX8jc-0001cZ-Rp for emacs-devel@gnu.org; Sat, 01 Aug 2009 03:10:29 -0400 Original-Received: from mtaout5.012.net.il ([84.95.2.13]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MX8jc-0004i1-6g for emacs-devel@gnu.org; Sat, 01 Aug 2009 03:10:28 -0400 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KNO00J00RWJ4K00@i_mtaout5.012.net.il> for emacs-devel@gnu.org; Sat, 01 Aug 2009 10:10:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.18.132]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KNO00MFSRXD9530@i_mtaout5.012.net.il>; Sat, 01 Aug 2009 10:10:26 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-Detected-Operating-System: by mx20.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:113506 Archived-At: > 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:15= 4, > from image.c:7865: > /usr/include/ImageMagick/wand/drawing-wand.h:172: error: conflictin= g types for =E2=80=98DrawRectangle=E2=80=99 > /usr/include/gif_lib.h:324: note: previous declaration of =E2=80= =98DrawRectangle=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? 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. A better solution would be to lobby the maintainers of Imagemagick to use names specific to the package.