Page 1 of 1

Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T07:36:14-07:00
by pmarvin
I have been trying to get some version of 6.x to build on AIX v5.2. I am using gcc 4.0.0.0. The configuration is:

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type : powerpc-ibm-aix5.2.0.0

Option Value
-------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=no no
Module support --with-modules=yes yes
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=16 16

Delegate Configuration:
BZLIB --with-bzlib=yes no (failed tests)
DPS --with-dps=yes no
FlashPIX --with-fpx=no no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=yes no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes yes
LCMS --with-lcms=yes no
Magick++ --with-magick-plus-plus=yes no (failed tests)
PERL --with-perl=yes /usr/bin/perl
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no (failed tests)
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS = -lSM -lICE
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /opt/freeware
EXEC-PREFIX = /opt/freeware
VERSION = 6.2.9
CC = gcc
CFLAGS = -g -O2 -Wall -W -D_THREAD_SAFE
CPPFLAGS = -I/opt/freeware/include
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/opt/freeware/lib -L/opt/freeware/lib -lfreetype -lz -L/opt/freeware/lib
LIBS = -lMagick -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lz -lpthreads -lm -lpthreads
CXX = g++
CXXFLAGS = -g -O2 -Wall -W -D_THREAD_SAFE

I can not get ImageMagick 6.3.7 to compile at all. It is stuck on an Undefined symbol error that I can not get around.

/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.7/modules-Q16/coders/ coders/coders_art_la-art.lo magick/libMagick.la
ld: 0711-317 ERROR: Undefined symbol: .AcquireQuantumMemory
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
@chbuxa01(wikimin):/opt/app/php/ImageMagick-6.3.7
$

I can get 6.2.9 to build but convert does not work and identify -list format does not see any formats.

$ convert logo: logo.gif
convert: unable to open image `logo:': A file or directory in the path name does not exist..
convert: missing an image filename `logo.gif'.

$ identify -list format
Format Module Mode Description
-------------------------------------------------------------------------------

* native blob support

I am extremely frustrated at this point. :(
Do you have any ideas on what I can try?

Paul

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T07:49:59-07:00
by magick
Have you tried ImageMagick 6.3.7-3? It has updated build files that may make a difference.

For 6.2.9, try
  • convert -debug configure logo: logo.pnm
The debugging output will tell you where ImageMagick is looking for its external configuration files. Perhaps one of your directories does not have correct permissions.

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T08:03:01-07:00
by pmarvin
I am downloading 6.3.7-3 and will try later.

Here is the output from my 6.2.9 convert with debug:

$ convert -debug configure logo: logo.pnm
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/lib/ImageMagick-6.2.9/config/coder.xml"
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.2.9/config/coder.xml"
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/doc/ImageMagick-6.2.9/coder.xml"
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.2.9/coder.xml"
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/u/wikimin/.magick/coder.xml"
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "coder.xml"
2007-12-10T09:51:55-05:00 0:01 0.000u 6.2.9 Configure convert[88108]: coder.c/unknown/613/Configure
Loading coder map "/opt/freeware/share/ImageMagick-6.2.9/config/coder.xml" ...
2007-12-10T09:51:55-05:00 0:01 0.010u 6.2.9 Configure convert[88108]: locale.c/unknown/830/Configure
Loading locale map "/opt/freeware/lib/ImageMagick-6.2.9/config/locale.xml" ...
2007-12-10T09:51:55-05:00 0:01 0.010u 6.2.9 Configure convert[88108]: locale.c/unknown/830/Configure
Loading locale map "/opt/freeware/lib/ImageMagick-6.2.9/config/english.xml" ...
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/lib/ImageMagick-6.2.9/config/delegates.xml"
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.2.9/config/delegates.xml"
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/doc/ImageMagick-6.2.9/delegates.xml"
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.2.9/delegates.xml"
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "/u/wikimin/.magick/delegates.xml"
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: configure.c/unknown/482/Configure
Searching for configure file: "delegates.xml"
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: delegate.c/unknown/1157/Configure
Loading delegate map "/opt/freeware/lib/ImageMagick-6.2.9/config/delegates.xml" ...
2007-12-10T09:51:55-05:00 0:01 0.070u 6.2.9 Configure convert[88108]: utility.c/unknown/805/Configure
Command line: convert{-debug}{configure}{logo:}{logo.pnm}
convert: unable to open image `logo:': A file or directory in the path name does not exist..
convert: missing an image filename `logo.pnm'.

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T08:19:35-07:00
by magick
Looks like its finding the configuration files ok. Next up try
  • convert -debug module logo: logo.pnm
We need to determine why its failing to dynamically bind to the coder modules.

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T08:41:32-07:00
by pmarvin
Well It looks like you may have found the problem. I have included a find for the file magick.la to show where it is installed. What can I do now?

(I am currently building 6.3.7-3.)

$ convert -debug module logo: logo.pnm
2007-12-10T10:35:04-05:00 0:01 0.000u 6.2.9 Module convert[87062]: module.c/unknown/1065/Module
Searching for module "MAGICK" using filename "magick.la"
2007-12-10T10:35:04-05:00 0:01 0.000u 6.2.9 Module convert[87062]: module.c/unknown/582/Module
Searching for coder module file "magick.la" ...
2007-12-10T10:35:04-05:00 0:01 0.070u 6.2.9 Module convert[87062]: module.c/unknown/1065/Module
Searching for module "MAGICK" using filename "magick.la"
2007-12-10T10:35:04-05:00 0:01 0.070u 6.2.9 Module convert[87062]: module.c/unknown/582/Module
Searching for coder module file "magick.la" ...
2007-12-10T10:35:04-05:00 0:01 0.080u 6.2.9 Module convert[87062]: module.c/unknown/1065/Module
Searching for module "MAGICK" using filename "magick.la"
2007-12-10T10:35:04-05:00 0:01 0.080u 6.2.9 Module convert[87062]: module.c/unknown/582/Module
Searching for coder module file "magick.la" ...
2007-12-10T10:35:04-05:00 0:01 0.080u 6.2.9 Module convert[87062]: module.c/unknown/1065/Module
Searching for module "MAGICK" using filename "magick.la"
2007-12-10T10:35:04-05:00 0:01 0.080u 6.2.9 Module convert[87062]: module.c/unknown/582/Module
Searching for coder module file "magick.la" ...
2007-12-10T10:35:04-05:00 0:01 0.080u 6.2.9 Module convert[87062]: module.c/unknown/1065/Module
Searching for module "MAGICK" using filename "magick.la"
2007-12-10T10:35:04-05:00 0:01 0.080u 6.2.9 Module convert[87062]: module.c/unknown/582/Module
Searching for coder module file "magick.la" ...
convert: unable to open image `logo:': A file or directory in the path name does not exist..
convert: missing an image filename `logo.pnm'.


$ find /opt/freeware -name magick.la
/opt/freeware/lib/ImageMagick-6.2.9/modules-Q16/coders/magick.la

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T08:59:34-07:00
by pmarvin
The build of 6.3.7-3 failed so I need to make this work. (see separate post ImageMagic 6.3.7-3 build fails on AIX 5.2)

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T09:32:38-07:00
by magick
Next up, try
  • ./configure --disable-shared
    make
    make install

Re: Unable to build ImageMagick on AIX 5.2

Posted: 2007-12-10T11:28:57-07:00
by pmarvin
That was the missing piece! :D

Thanks