Tru64 OSF V5.1 :: Unresolved symbol name

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
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;
}
Post Reply