all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: how to resolve namespace issues between imagemagick and gif	libraries?
Date: Sat, 01 Aug 2009 18:57:31 +0200	[thread overview]
Message-ID: <m3prbfv5dw.fsf@verona.se> (raw)
In-Reply-To: <83vdl8ovq5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Aug 2009 10:10:26 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: joakim@verona.se
>> Date: Fri, 31 Jul 2009 20:02:32 +0200
>> 
>> 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 ‘DrawRectangle’
>> /usr/include/gif_lib.h:324: note: previous declaration of ‘DrawRectangle’ 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)
    
> 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.
-- 
Joakim Verona




  reply	other threads:[~2009-08-01 16:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-31 18:02 how to resolve namespace issues between imagemagick and gif libraries? joakim
2009-08-01  7:10 ` Eli Zaretskii
2009-08-01 16:57   ` joakim [this message]
2009-08-01 17:12     ` Eli Zaretskii
2009-08-02 14:18       ` Chong Yidong
2009-08-04 16:54         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3prbfv5dw.fsf@verona.se \
    --to=joakim@verona.se \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.