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: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

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