delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/01/11:15:41

X-Spam-Check-By: sourceware.org
Message-ID: <4548C808.2040306@scytek.de>
Date: Wed, 01 Nov 2006 11:15:04 -0500
From: Volker Quetschke <quetschke AT scytek DOT de>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Problem building perl module of ImageMagick 6.3.0.1 [Attn. perl maintainer]
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigD9549C09A034A14E1B27D9B2
Content-Type: multipart/mixed;
 boundary="------------070307000903040804010108"

This is a multi-part message in MIME format.
--------------070307000903040804010108
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

When building PerlMagick from ImageMagick 6.3.0.1 the build fails
with the errorlog shown below.

The problem seems to stem from the wrong order of link switches
in the MakeMaker generated makefile and can be fixed with the
attached patch to
   /lib/perl5/5.8/ExtUtils/MM_Unix.pm .

  Volker


Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.dll
LD_RUN_PATH=3D"" ld2  -L../magick/.libs -lMagick  -s -L/usr/local/lib
Magick.o  -o blib/arch/auto/Image/Magick/Magick.dll
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/usr/lib -lfreetype -lz
-L/usr/lib -llcms -ltiff -lfreetype -ljpeg -lbz2 -lz -lpthread -lm
-lpthread
gcc -shared -o  Magick.dll -Wl,--out-implib=3DlibMagick.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608
-Wl,--enable-auto-image-base \
-L../magick/.libs -lMagick -s -L/usr/local/lib Magick.o
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/usr/lib -lfreetype -lz
-L/usr/lib -llcms -ltiff -lfreetype -ljpeg -lbz2 -lz -lpthread -lm -lpthread
Magick.o:Magick.c:(.text+0x1df): undefined reference to
`_AcquireMagickMemory'
Magick.o:Magick.c:(.text+0x1fa): undefined reference to
`_ResizeMagickMemory'

( snip lots of undefined references )

Magick.o:Magick.c:(.text+0x28e89): undefined reference to `_SetErrorHandler'
Creating library file: libMagick.dll.a
collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o  Magick.dll -Wl,--out-implib=3DlibMagick.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608
-Wl,--enable-auto-image-base \
-L../magick/.libs -lMagick -s -L/usr/local/lib Magick.o
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/usr/lib -lfreetype -lz
-L/usr/lib -llcms -ltiff -lfreetype -ljpeg -lbz2 -lz -lpthread -lm -lpthread

make[1]: *** [blib/arch/auto/Image/Magick/Magick.dll] Error 2
make[1]: Leaving directory
`/usr/src/im6301/ImageMagick-6.3.0.1-1/build/PerlMagick'

--=20
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--------------070307000903040804010108
Content-Type: text/plain;
 name="MakeMaker_fix.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
 filename="MakeMaker_fix.diff"

--- /lib/perl5/5.8/ExtUtils/MM_Unix.pm.org	2006-10-29 14:32:59.093750000 -0=
500
+++ /lib/perl5/5.8/ExtUtils/MM_Unix.pm	2006-10-29 14:34:24.546875000 -0500
@@ -1135,8 +1135,8 @@
     }
=20
     push(@m,
-'	LD_RUN_PATH=3D"$(LD_RUN_PATH)" $(LD) '.$ldrun.' $(LDDLFLAGS) '.$ldfrom.
-' $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) '.$libs.' $(PERL_ARCHI=
VE_AFTER) $(EXPORT_LIST) $(INST_DYNAMIC_FIX)');
+'	LD_RUN_PATH=3D"$(LD_RUN_PATH)" $(LD) '.$ldrun.' '.$ldfrom.
+' $(LDDLFLAGS) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) '.$libs.'=
 $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST) $(INST_DYNAMIC_FIX)');
     push @m, '
 	$(CHMOD) $(PERM_RWX) $@
 ';

--------------070307000903040804010108--

--------------enigD9549C09A034A14E1B27D9B2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MinGW)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFSMgUPTXJup+KeF0RAqIxAJ9Jfu+VlARp/+fbsYJowgO5YzuXoACgh6tS
BvpUYfuUtgIvfnoEcBhYgBc=
=vFtk
-----END PGP SIGNATURE-----

--------------enigD9549C09A034A14E1B27D9B2--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019