Make errors for Image::Magick

From: Philip Tham (Philip.Tham_at_cingular.com)
Date: 03/22/05


Date: Mon, 21 Mar 2005 16:55:01 -0800
To: "Perl Beginners List" <beginners@perl.org>

After the command

perl -MCPAN -e shell I run the following commands

get Image::Magick

The source files were downloaded properly.

On Running the command make I get the following errors:

Need some advice. The installed version of perl is not currently
supporting multithreading.

Thanks in advance.

Philip

make Image::Magick
Running make for module Image::Magick
Running make for J/JC/JCRISTY/PerlMagick-6.20.tar.gz
  Is already unwrapped into directory /.cpan/build/PerlMagick-6.20

  CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.20.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lMagick
Note (probably harmless): No library found for -lfreetype
Note (probably harmless): No library found for -llcms
Note (probably harmless): No library found for -ltiff
Note (probably harmless): No library found for -lfreetype
Note (probably harmless): No library found for -ljpeg
Note (probably harmless): No library found for -lpng
Note (probably harmless): No library found for -ldpstk
Note (probably harmless): No library found for -ldps
Note (probably harmless): No library found for -lxml2
Writing Makefile for Image::Magick
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.6/ExtUtils/typemap Magick.xs > Magick.xsc &&
mv Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/X11R6/include/X11 -I/usr/include/libxml2 -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g
-O2 -Wall -pthread -O -DVERSION=\"6.2.0\" -DXS_VERSION=\"6.2.0\"
-fPIC "-I/usr/local/lib/perl5/5.8.6/sun4-solaris/CORE"
-D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H Magick.c
gcc: unrecognized option `-pthread'
Magick.xs:63:24: magick/api.h: No such file or directory
Magick.xs:152: error: parse error before "MagickRealType"
Magick.xs:152: warning: no semicolon at end of struct or union
Magick.xs:159: error: parse error before '*' token
Magick.xs:159: warning: type defaults to `int' in declaration of
`image_reference'
Magick.xs:159: warning: data definition has no type or storage class
Magick.xs:169: error: parse error before '}' token
Magick.xs:173: error: parse error before "ImageInfo"
Magick.xs:173: warning: no semicolon at end of struct or union
Magick.xs:177: warning: type defaults to `int' in declaration of
`draw_info'
Magick.xs:177: warning: data definition has no type or storage class
Magick.xs:180: error: parse error before '*' token
Magick.xs:180: warning: type defaults to `int' in declaration of
`quantize_info'
Magick.xs:180: warning: data definition has no type or storage class
Magick.xs:181: error: parse error before '}' token
Magick.xs:201: error: `MagickNoiseOptions' undeclared here (not in a
function)
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for
`Methods[2].arguments[0].type')
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for
`Methods[2].arguments[0]')
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for `Methods[2].arguments')
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for `Methods[2]')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for
`Methods[3].arguments[0]')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for
`Methods[3].arguments[1]')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for `Methods[3].arguments')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for `Methods[3]')
Magick.xs:203: error: initializer element is not constant
Magick.xs:203: error: (near initialization for
`Methods[4].arguments[0]')
Magick.xs:203: error: initializer element is not constant
Magick.xs:203: error: (near initialization for
`Methods[4].arguments[1]')
Magick.xs:204: error: initializer element is not constant
Magick.xs:204: error: (near initialization for
`Methods[4].arguments[2]')
Magick.xs:204: error: initializer element is not constant
Magick.xs:204: error: (near initialization for
`Methods[4].arguments[3]')
Magick.xs:205: error: initializer element is not constant
Magick.xs:205: error: (near initialization for
`Methods[4].arguments[4]')
Magick.xs:205: error: `MagickCompositeOptions' undeclared here (not in a
function)
Magick.xs:205: error: initializer element is not constant
Magick.xs:205: error: (near initialization for
`Methods[4].arguments[5].type')
Magick.xs:205: error: initializer element is not constant



Relevant Pages

  • Debian 3.0r3 i386 and Perl Image::Magick
    ... Magick.xs:152: parse error before `MagickRealType' ... Magick.xs:152: warning: no semicolon at end of struct or union ... Magick.xs:201: initializer element is not constant ... Magick.xs:2967: warning: assignment makes pointer from integer without a cast ...
    (Debian-User)
  • gd 1.41 install errors in red hat 9
    ... GD.xs:236: warning: data definition has no type or storage class ... GD.xs:239: parse error before "gdFontGiant" ... GD.xs:292: dereferencing pointer to incomplete type ... GD.xs:332: initializer element is not constant ...
    (comp.lang.perl.misc)
  • Re: [SLE] [9.1] Perl bundles install problems (LONG post)
    ... Note (probably harmless): ... Config.xs:7: error: parse error before '*' token ... Config.xs:7: warning: type defaults to `int' in declaration of `Xmms__Config' ... Config.c:105: error: `cfg' undeclared ...
    (SuSE)
  • Installing DBD::mysql
    ... dbdimp.h:106: warning: no semicolon at end of struct or union ... dbdimp.h:117: error: syntax error before '}' token ... dbdimp.c:303: error: initializer element is not constant ... dbdimp.c:1048: error: dereferencing pointer to incomplete type ...
    (perl.beginners)
  • A few questions about popt.
    ... I started playing around with popt, ... ex.c:35: warning: initializer element is not computable at load time ...
    (comp.os.linux.development.apps)