From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Kalle Kankare <kalle.kankare@iki.fi>
Cc: 11558@debbugs.gnu.org
Subject: bug#11558: 24.1.50; Image Magick related build failure on bzr revision 108365
Date: Thu, 12 Jul 2012 11:19:21 +0200 [thread overview]
Message-ID: <4B43DF4E-B37C-49B3-9B5F-16C51BF2D8D3@swipnet.se> (raw)
In-Reply-To: <CADsFQrqSU8V=nB-fL2BA_NgsQmMrMYAKHMzqG58_iws2zSb5Gw@mail.gmail.com>
Hello.
11 jul 2012 kl. 22:24 skrev Kalle Kankare:
> Hi,
>
> I am also seeing the problem of temacs failing to load lisp/image.el
> on 64-bit Archlinux during build. It fails with the following output:
>
> ...
> Loading /home/kopoli/src/emacs/lisp/image.el (source)...
> temacs: magick/exception.c:968: ThrowMagickExceptionList: Assertion
> `exception->signature == 0xabacadabUL' failed.
> /bin/sh: line 6: 27994 Aborted `/bin/pwd`/temacs
> --batch --load loadup bootstrap
> ...
>
> By running temacs through gdb it appears that the problem is in the
> defun "imagemagick-types". The call to "GetMagickList" receives an
> argument of type ExceptionInfo, which, by my interpretation of the
> error message, needs to be initialized a certain way. Currently it is
> just given an uninitialized local variable as an argument.
>
> By looking through through ImageMagick documentation, the functions
> "GetExceptionInfo" and "DestroyExceptionInfo" initialize and
> deinitialize the ExceptionInfo-structure, respectively.
>
> I got the build to complete by introducing the following change:
>
> --- src/image.c 2012-07-09 12:02:27 +0000
> +++ src/image.c 2012-07-11 19:59:24 +0000
> @@ -7968,7 +7968,9 @@
> Lisp_Object typelist = Qnil;
> size_t numf = 0;
> ExceptionInfo ex;
> + GetExceptionInfo(&ex);
> char **imtypes = GetMagickList ("*", &numf, &ex);
> + DestroyExceptionInfo(&ex);
> size_t i;
> Lisp_Object Qimagemagicktype;
> for (i = 0; i < numf; i++)
>
>
> The generated emacs-binary at least appears to function properly. I
> tested this with the following versions:
>
> emacs: bzr:109033
> gcc: 4.7.1
> ImageMagick: 6.7.8-1
I see this too. Can it be that GetExceptionInfo/DestroyExceptionInfo is version dependent and we need a configure check for them? People have run Emacs with Imagemagic without this.
Jan D.
next prev parent reply other threads:[~2012-07-12 9:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 15:35 bug#11558: 24.1.50; Image Magick related build failure on bzr revision 108365 Eric Schulte
2012-05-25 20:21 ` Glenn Morris
2012-05-26 22:26 ` Eric Schulte
2012-05-26 22:33 ` Glenn Morris
2012-05-26 23:31 ` Eric Schulte
2012-05-27 3:08 ` Christoph Scholtes
2012-05-27 5:58 ` Achim Gratz
2012-07-11 20:24 ` Kalle Kankare
2012-07-12 9:19 ` Jan Djärv [this message]
2012-07-13 7:03 ` Tassilo Horn
2012-07-13 12:21 ` Jan Djärv
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=4B43DF4E-B37C-49B3-9B5F-16C51BF2D8D3@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=11558@debbugs.gnu.org \
--cc=kalle.kankare@iki.fi \
/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.