Error in compile of ImageMagick 6.3.6 on AIX 5.2

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
pmarvin

Error in compile of ImageMagick 6.3.6 on AIX 5.2

Post by pmarvin »

Hello,

I have hit a wall in building ImageMagick 6.3.6 in AIX 5.2. :? I am using gcc 4.0.0 as the compiler. The compile is failing on linking coders/art.la. I get a long list of undefined symbols that all appear would be part of the ImageMagick build.

Below is the error and the configure command I used.

Thanks,
Paul

/bin/sh ./libtool --silent --tag=CC --mode=link gcc -g -O2 -Wall -W -D_THREAD_SAFE -no-undefined -export-symbols-regex ".*" -module -avoid-version -L/opt/freeware/lib -lfreetype -lz -L/opt/freeware/lib -o coders/art.la -rpath /opt/freeware/lib/ImageMagick-6.3.6/modules-Q16/coders coders/coders_art_la-art.lo magick/libMagick.la
ld: 0711-317 ERROR: Undefined symbol: .ConstantString
ld: 0711-317 ERROR: Undefined symbol: .ThrowMagickException
ld: 0711-317 ERROR: Undefined symbol: .LogMagickEvent
ld: 0711-317 ERROR: Undefined symbol: .AcquireQuantumMemory
ld: 0711-317 ERROR: Undefined symbol: .GetQuantumInfo
ld: 0711-317 ERROR: Undefined symbol: .ImportQuantumPixels
ld: 0711-317 ERROR: Undefined symbol: SaveImageTag
ld: 0711-317 ERROR: Undefined symbol: .RelinquishMagickMemory
ld: 0711-317 ERROR: Undefined symbol: .SetImageColorspace
ld: 0711-317 ERROR: Undefined symbol: .SetImageExtent
ld: 0711-317 ERROR: Undefined symbol: .InheritException
ld: 0711-317 ERROR: Undefined symbol: .DestroyImageList
ld: 0711-317 ERROR: Undefined symbol: .GetFirstImageInList
ld: 0711-317 ERROR: Undefined symbol: .ExportQuantumPixels
ld: 0711-317 ERROR: Undefined symbol: LoadImageTag
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: *** [coders/art.la] Error 1

Here is the configue command I used:

./configure \
--prefix=/opt/freeware \
--with-bzlib=no \
--with-dps=no \
--with-fpx=no \
--with-fontconfig=no \
--with-gslib=no \
--with-gvc=no \
--with-jbig=no \
--with-jp2=no \
--with-lcms=no \
--with-magick-plus-plus=no \
--with-openexr=no \
--with-rsvg=no \
--with-tiff=no \
--with-wmf=no \
pmarvin

Re: Error in compile of ImageMagick 6.3.6 on AIX 5.2

Post by pmarvin »

I figured it out. I have an older version of ImageMagick installed on this server. The value -L/opt/freeware/lib was causing the linker to find the older library before finding the new library in magick/.libs. By renaming the older library I was able to get past this error.

What do I need to do to avoid this issue in the future?
Post Reply