all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Failed to build emacs against imagemagick 6.8.4.6
@ 2013-04-05  9:25 YE Qianchuan
  2013-04-05  9:50 ` Herbert J. Skuhra
  0 siblings, 1 reply; 4+ messages in thread
From: YE Qianchuan @ 2013-04-05  9:25 UTC (permalink / raw
  To: help-gnu-emacs

Hi, all. I'm on Archlinux x86_64.
It kept complaining about undefined reference to <imagemagick symbol>.
Since I built it smoothly before upgrading imagemagick to 6.8.4.6, I 
guess it's an incompatibility issue.

A sample error output is as follows:

../lib-src/make-docfile -a ../etc/DOC -d <my emacs src dir>/src/../lisp 
`sed -n -e 's| \\\\||' -e 's|^[ ]*$(lispsource)/||p' <my emacs src 
dir>/src/lisp.mk`
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_error.147994.5974: error: undefined reference to 
'MagickGetException'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_error.147994.5974: error: undefined reference to 
'MagickRelinquishMemory'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickWandGenesis'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'NewMagickWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickPingImage'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetNumberImages'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyMagickWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetNumberImages'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetNumberImages'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyMagickWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'NewMagickWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickReadImage'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'NewPixelWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'PixelSetRed'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'PixelSetGreen'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'PixelSetBlue'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetImageHeight'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetImageWidth'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickScaleImage'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickSetImageBackgroundColor'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickFlattenImages'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyMagickWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetImageHeight'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetImageWidth'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyMagickWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyPixelWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickWandTerminus'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickPingImageBlob'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickReadImageBlob'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickRotateImage'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickCropImage'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'NewPixelIterator'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickGetImageHeight'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'PixelGetNextIteratorRow'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'PixelGetMagickColor'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyPixelIterator'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'DestroyPixelWand'
/tmp/ccOmarVf.ltrans11.ltrans.o:ccOmarVf.ltrans11.o:function 
imagemagick_load_image.148117.4405: error: undefined reference to 
'MagickWandTerminus'
collect2: error: ld returned 1 exit status




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Failed to build emacs against imagemagick 6.8.4.6
  2013-04-05  9:25 Failed to build emacs against imagemagick 6.8.4.6 YE Qianchuan
@ 2013-04-05  9:50 ` Herbert J. Skuhra
  2013-04-05 11:21   ` Stefan Husmann
  2013-04-05 12:58   ` YE Qianchuan
  0 siblings, 2 replies; 4+ messages in thread
From: Herbert J. Skuhra @ 2013-04-05  9:50 UTC (permalink / raw
  To: help-gnu-emacs

Den 05.04.2013 11:25, skrev YE Qianchuan:
> Hi, all. I'm on Archlinux x86_64.
> It kept complaining about undefined reference to <imagemagick 
> symbol>.
> Since I built it smoothly before upgrading imagemagick to 6.8.4.6, I
> guess it's an incompatibility issue.
>
> A sample error output is as follows:
> [...]

IMAGEMAGICK_LIBS in src/Makefile contains only '-lMagickCore'.
So you have to add '-lMagickWand' manually.

-- 
Herbert





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Failed to build emacs against imagemagick 6.8.4.6
  2013-04-05  9:50 ` Herbert J. Skuhra
@ 2013-04-05 11:21   ` Stefan Husmann
  2013-04-05 12:58   ` YE Qianchuan
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Husmann @ 2013-04-05 11:21 UTC (permalink / raw
  To: help-gnu-emacs

Am 05.04.2013 11:50, schrieb Herbert J. Skuhra:
> Den 05.04.2013 11:25, skrev YE Qianchuan:
>> Hi, all. I'm on Archlinux x86_64.
>> It kept complaining about undefined reference to <imagemagick symbol>.
>> Since I built it smoothly before upgrading imagemagick to 6.8.4.6, I
>> guess it's an incompatibility issue.
>>
>> A sample error output is as follows:
>> [...]
>
> IMAGEMAGICK_LIBS in src/Makefile contains only '-lMagickCore'.
> So you have to add '-lMagickWand' manually.
>
Yes, and you can grab the LDFLAGS from my emacs-xwidget-package in AUR.
https://aur.archlinux.org/packages/emacs-xwidget-bzr/

Best Regards,

  Stefan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Failed to build emacs against imagemagick 6.8.4.6
  2013-04-05  9:50 ` Herbert J. Skuhra
  2013-04-05 11:21   ` Stefan Husmann
@ 2013-04-05 12:58   ` YE Qianchuan
  1 sibling, 0 replies; 4+ messages in thread
From: YE Qianchuan @ 2013-04-05 12:58 UTC (permalink / raw
  To: help-gnu-emacs

On 04/05/2013 05:50 PM, Herbert J. Skuhra wrote:
> Den 05.04.2013 11:25, skrev YE Qianchuan:
>> Hi, all. I'm on Archlinux x86_64.
>> It kept complaining about undefined reference to <imagemagick symbol>.
>> Since I built it smoothly before upgrading imagemagick to 6.8.4.6, I
>> guess it's an incompatibility issue.
>>
>> A sample error output is as follows:
>> [...]
>
> IMAGEMAGICK_LIBS in src/Makefile contains only '-lMagickCore'.
> So you have to add '-lMagickWand' manually.
>
Forgot to cc this list.

Thank you.  You are right, now MagickWand is necessary.
According to your tips, a simple modification in configure.ac works for me.

diff --git a/configure.ac b/configure.ac
index 0cff34b..bb240a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1881,7 +1881,7 @@ if test "${HAVE_X11}" = "yes"; then
      ## might work - let us know if you find one.
      ## 6.0.7 does not work.  See bug#7955.
      ## 6.8.2 makes Emacs crash; see Bug#13867.
-    IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
+    IMAGEMAGICK_MODULE="MagickWand >= 6.2.8 MagickWand != 6.8.2"
      PKG_CHECK_MODULES(IMAGEMAGICK, $IMAGEMAGICK_MODULE, 
HAVE_IMAGEMAGICK=yes, :)
      AC_SUBST(IMAGEMAGICK_CFLAGS)
      AC_SUBST(IMAGEMAGICK_LIBS)



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-05 12:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-05  9:25 Failed to build emacs against imagemagick 6.8.4.6 YE Qianchuan
2013-04-05  9:50 ` Herbert J. Skuhra
2013-04-05 11:21   ` Stefan Husmann
2013-04-05 12:58   ` YE Qianchuan

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.