Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#26 PerlMagick does not build with perl 5.16

closed-fixed
PerlMagick (1)
5
2012-06-02
2012-06-02
Olivier Blin
No

PerlMagick does not build with perl 5.16:

make[1]: Entering directory `/home/iurt/rpm/BUILD/GraphicsMagick-1.3.15/PerlMagick'
/usr/bin/perl5.16.0 /usr/lib/perl5/5.16.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.16.0/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
Running Mkbootstrap for Graphics::Magick ()
chmod 644 Magick.bs
cp Magick.bs blib/arch/auto/Graphics/Magick/Magick.bs
chmod 644 blib/arch/auto/Graphics/Magick/Magick.bs
cp Magick.pm blib/lib/Graphics/Magick.pm
AutoSplitting blib/lib/Graphics/Magick.pm (blib/lib/auto/Graphics/Magick)
Could not find a typemap for C type 'Graphics::Magick'.
The following C types are mapped by the current typemap:
'AV *', 'Boolean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32', 'I8', 'IV', 'InOutStream', 'InputStream', 'NV', 'OutputStream', 'PerlIO *', 'Result', 'STRLEN', 'SV *', 'SVREF', 'SysRet', 'SysRetLong', 'Time_t *', 'U16', 'U32', 'U8', 'UV', 'bool', 'bool_t', 'caddr_t', 'char', 'char *', 'char **', 'const char *', 'double', 'float', 'int', 'long', 'short', 'size_t', 'ssize_t', 'time_t', 'unsigned', 'unsigned char', 'unsigned char *', 'unsigned int', 'unsigned long', 'unsigned long *', 'unsigned short', 'void *', 'wchar_t', 'wchar_t *'
in Magick.xs, line 2085
make[1]: *** [Magick.c] Error 1
make[1]: Leaving directory `/home/iurt/rpm/BUILD/GraphicsMagick-1.3.15/PerlMagick'

A simple fix is to add a typemap file, see https://rt.cpan.org/Public/Bug/Display.html?id=70150 , and the fix from imagemagick: http://trac.imagemagick.org/changeset/4950 (Add a simple "ignore this type" style typemap to get past a xsubpp exception in recent versions of Perl)

Discussion

  • Olivier Blin
    Olivier Blin
    2012-06-02

    Add a simple "ignore this type" style typemap to get past a xsubpp exception in recent versions of Perl

     
    • labels: --> PerlMagick
    • assigned_to: nobody --> bfriesen
    • status: open --> closed-fixed
     
  • This issue is fixed by Mercurial changeset a1f0802c146b. Thank you very much for submitting this patch.