#35 Not working with new versions of ImageMagick

Linux/Unix
closed-fixed
nobody
5
2009-03-29
2007-11-08
Anonymous
No

I am trying to compile SIP 4.0-rc1. This is my environment:

* ANIMAL 0.15.0
* ImageMagick 6.2.4
* GCC 4.1.2

When I run the ./configure command it goes very well, no error or warning is reported. When I try to compile the source with 'make', I get this error:

---------------PASTE---------------
mogrify_int.c: In function 'mogrify_int':
mogrify_int.c:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
mogrify_int.c:146: warning: passing argument 3 of 'MogrifyImage' from incompatible pointer type
mogrify_int.c:146: error: too few arguments to function 'MogrifyImage'
mogrify_int.c:167: warning: dereferencing type-punned pointer will break strict-aliasing rules
mogrify_int.c:173: warning: dereferencing type-punned pointer will break strict-aliasing rules
mogrify_int.c: In function 'check_argv_validity':
mogrify_int.c:1299: error: 'UndefinedCompressionQuality' undeclared (first use in this function)
mogrify_int.c:1299: error: (Each undeclared identifier is reported only once
mogrify_int.c:1299: error: for each function it appears in.)
make[2]: *** [mogrify_int.lo] Error 1
make[2]: Leaving directory `/home/gustgr/download/sip-0.4.0-rc1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/gustgr/download/sip-0.4.0-rc1/src'
make: *** [all-recursive] Error 1
---------------PASTE---------------

I believe that SIP is not working with up to date versions of ImageMagick. I did a little research and discovered that the MogrifyImage has actually changed its prototype. I tried to hack that, but then others errors came up.

- Gustavo <gstgr at uol , com , br>

Discussion

  • Logged In: NO

    FYI, I tried recompiling it with a very recent version of ImageMagick fresh compiled from the source code:

    euler:~/download/sip-0.4.0-rc1$ convert | head -n 1
    Version: ImageMagick 6.3.6 11/08/07 Q16 http://www.imagemagick.org

    No success though. Same error:

    mogrify_int.c: In function 'mogrify_int':
    mogrify_int.c:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
    mogrify_int.c:146: warning: implicit declaration of function 'MogrifyImage'
    mogrify_int.c:167: warning: dereferencing type-punned pointer will break strict-aliasing rules
    mogrify_int.c:173: warning: dereferencing type-punned pointer will break strict-aliasing rules
    mogrify_int.c: In function 'check_argv_validity':
    mogrify_int.c:1299: error: 'UndefinedCompressionQuality' undeclared (first use in this function)
    mogrify_int.c:1299: error: (Each undeclared identifier is reported only once
    mogrify_int.c:1299: error: for each function it appears in.)
    make[2]: *** [mogrify_int.lo] Error 1
    make[2]: Leaving directory `/home/gustgr/download/sip-0.4.0-rc1/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/gustgr/download/sip-0.4.0-rc1/src'
    make: *** [all-recursive] Error 1

     
  • Ricardo Fabbri
    Ricardo Fabbri
    2007-11-09

    • status: open --> pending
     
  • Ricardo Fabbri
    Ricardo Fabbri
    2007-11-09

    Logged In: YES
    user_id=656668
    Originator: NO

    This bug was fixed in the CVS version.
    Thanks for reporting!!

     
  • Logged In: NO

    Thanks. Just checked out and compiled the CVS tree and it worked flawlessly with Scilab 4.1.2. The programs I wrote for the 0.3.0 version of SIP and 3.0 version of Scilab are working fine as well.

    -Gustavo

     
    • status: pending --> open
     
  • Ricardo Fabbri
    Ricardo Fabbri
    2009-03-29

    • status: open --> closed-fixed