Compiler Error - AIX 5.1

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
magick
Site Admin
Posts: 11015
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-04-12T16:45:41-07:00

Download ImageMagick 6.2.7-0 Beta tommorrow. We applied a patch to the GNU autoconf scripts to fix the problem you reported.

User avatar
magick
Site Admin
Posts: 11015
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-06-02T18:38:22-07:00

The configure script adds
  • #define realloc rpl_realloc
to magick/magick-config.h if realloc() does not return 0 for realloc(0,0). To fix this problem, remove this define or add this method to the source distribution:

Code: Select all

void *rpl_realloc (void *p, size_t n)
{
    p = realloc(p, n);
    if (p == 0 && n == 0)
	return malloc(0);
    return p;
}

User avatar
magick
Site Admin
Posts: 11015
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-06-09T15:53:48-07:00

The undefined symbols are defined in the Magick library. Not sure why its failing to link on your system. ImageMagick relies on GNU automake/autoconf scripts to build. Its possible there is a bug in the latest versions of these programs for AIX. Try add -disable-shared to your configure command line and see if you can build a static distribution.

Post Reply