On Wednesday, April 4, 2001, at 10:03 AM, Randal Cox wrote:

>>> However, I still am getting messages to the effect that I have
>>> multiple symbols defined (from dyld).
>>> I even hacked some of the C code to get rid of this, but to no avail.
>>
>>
>> I am having a similar problem compiling the cpan module Image::Magick. 
>> After failing with cpan I decided to start at the top and work my way 
>> down by compiling ImageMagick from source. Every thing seems to go 
>> well untill make starts to compile PerlMagick.
>>
>> It seems to me that PerlMagick fails because it can't find libperl.a
>>
>> On line 76 of Makefile can LIBPERL_A = libperl.a be directed toward 
>> libperl.dylib?
>>
> Have you guys tried adding a -L/System/Library/Perl/darwin/CORE/ to the 
> LIB line in the makefile or the config.in file or the Makefile.PL (as 
> appropriate)?
>
> In the case of the Perl/TK, you might need an additional library path 
> specified.  Can you share the make results with us?

Randal,

Thank you very much. I added -L/System/Library/Perl/darwin/CORE/ to the 
LIB line in Makefile.PL and... magick !!

I still need to sort out the graphic libraries, but, I feel that will be 
much easier now that things compile.

bash-2.03# make
mkdir blib
mkdir blib/lib
mkdir blib/lib/Image
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Image
mkdir blib/arch/auto/Image/Magick
mkdir blib/lib/auto
mkdir blib/lib/auto/Image
mkdir blib/lib/auto/Image/Magick
mkdir blib/man3
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/bin/perl -I/System/Library/Perl/darwin -I/System/Library/Perl 
/System/Library/Perl/ExtUtils/xsubpp  -typemap 
/System/Library/Perl/ExtUtils/typemap Magick.xs > Magick.xsc && mv 
Magick.xsc Magick.c
cc -c -I../ -I.. -D_REENTRANT -I/usr/local/include -g -pipe -pipe 
-fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3     
-DVERSION=\"5.30\" -DXS_VERSION=\"5.30\"  
-I/System/Library/Perl/darwin/CORE -DHAVE_CONFIG_H Magick.c
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
LD_RUN_PATH="/usr/local/lib:/usr/lib" cc -o 
blib/arch/auto/Image/Magick/Magick.bundle  -bundle -undefined suppress 
Magick.o    -L/System/Library/Perl/darwin/CORE/ -L/usr/local/lib 
-L/Users/forest/Skratch/ImageMagick/ImageMagick-5.3.0/magick -lMagick 
-lz -lpthread -lm
chmod 755 blib/arch/auto/Image/Magick/Magick.bundle
cp Magick.bs blib/arch/auto/Image/Magick/Magick.bs
chmod 644 blib/arch/auto/Image/Magick/Magick.bs
Manifying blib/man3/Image::Magick.3

Thanks Again
Forest

Reply via email to