AIX compile error

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
demianph
Posts: 5
Joined: 2012-01-11T15:25:53-07:00
Authentication code: 8675308

AIX compile error

Post by demianph »

AIX 5.3 TL12 is the OS. Current source for imagemagick.

Configure ran quite well but the make died here:

CC coders/magick_libMagickCore_la-png.lo
coders/png.c: In function 'MagickPNGErrorHandler':
coders/png.c:1744: error: 'png_struct' has no member named '__jmpbuf'
make: The error code from the last command is 1.

I'm not a programmer but can work my way through some levels of issues getting stuff to compile. Any pointers or help would be appreciated.

Here is the configure output.

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

Host system type: powerpc-ibm-aix5.3.0.0
Build system type: powerpc-ibm-aix5.3.0.0

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

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes no (failed tests)
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS v1 --with-lcms=yes no
LCMS v2 --with-lcms2=yes no
LQR --with-lqr=yes no
LZMA --with-lzma=yes no
Magick++ --with-magick-plus-plus=yes no (failed tests)
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PANGO --with-pango=yes no
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no (failed tests)
WEBP --with-webp=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes no (failed tests)
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 = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.7.4
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -g -O2 -Wall -D_THREAD_SAFE
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
MAGICK_LDFLAGS = -L/usr/local/lib
LIBS = -lMagickCore -ljpeg -lpng12 -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -lpthreads
CXX = g++
CXXFLAGS = -g -O2 -D_THREAD_SAFE
FEATURES =
demianph
Posts: 5
Joined: 2012-01-11T15:25:53-07:00
Authentication code: 8675308

Re: AIX compile error

Post by demianph »

Updated libpng and now it dies in an unexpected area.


CCLD ltdl/libltdlc.la
libtool: link: not configured to extract global symbols from dlpreopened files
CCLD magick/libMagickCore.la
ld: 0711-317 ERROR: Undefined symbol: lt_libltdlc_LTX_preloaded_symbols
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: AIX compile error

Post by glennrp »

Did you reconfigure ImageMagick after updating libpng? Your "configure" appears to have found libpng12
(see the "-lpng12" in the configure output) but if you updated libpng it should have found libpng14 or 15
depending on what you updated to.
demianph
Posts: 5
Joined: 2012-01-11T15:25:53-07:00
Authentication code: 8675308

Re: AIX compile error

Post by demianph »

glennrp wrote:Did you reconfigure ImageMagick after updating libpng? Your "configure" appears to have found libpng12
(see the "-lpng12" in the configure output) but if you updated libpng it should have found libpng14 or 15
depending on what you updated to.
I think I see the problem in the new configure. It can not find the new png support I installed.
rpm shows I have it installed so I guess there is a path problem. Also the latest reliable source I can find for AIX is IBM's development libpng version
libpng-1.2.32-2.aix5.2.ppc.rpm

Still it should have gotten farther then this given before png support was lost it made it that far.

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

Host system type: powerpc-ibm-aix5.3.0.0
Build system type: powerpc-ibm-aix5.3.0.0

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

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes no (failed tests)
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS v1 --with-lcms=yes no
LCMS v2 --with-lcms2=yes no
LQR --with-lqr=yes no
LZMA --with-lzma=yes no
Magick++ --with-magick-plus-plus=yes no (failed tests)
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PANGO --with-pango=yes no
PNG --with-png=yes no
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no (failed tests)
WEBP --with-webp=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes no (failed tests)
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 = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.7.4
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -g -O2 -Wall -D_THREAD_SAFE
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
MAGICK_LDFLAGS = -L/usr/local/lib
LIBS = -lMagickCore -ljpeg -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -lpthreads
CXX = g++
CXXFLAGS = -g -O2 -D_THREAD_SAFE
FEATURES =


I still get:


CCLD ltdl/libltdlc.la
libtool: link: not configured to extract global symbols from dlpreopened files
CCLD magick/libMagickCore.la
ld: 0711-317 ERROR: Undefined symbol: lt_libltdlc_LTX_preloaded_symbols
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.
demianph
Posts: 5
Joined: 2012-01-11T15:25:53-07:00
Authentication code: 8675308

Re: AIX compile error

Post by demianph »

The good news is I have been informed we do not need .png support so I am moving on.
Found some other posts and have tried it with config of disable-shared

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

Host system type: powerpc-ibm-aix5.3.0.0
Build system type: powerpc-ibm-aix5.3.0.0

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

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes no (failed tests)
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS v1 --with-lcms=yes no
LCMS v2 --with-lcms2=yes no
LQR --with-lqr=yes no
LZMA --with-lzma=yes no
Magick++ --with-magick-plus-plus=yes no (failed tests)
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PANGO --with-pango=yes no
PNG --with-png=yes no
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no (failed tests)
WEBP --with-webp=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes no (failed tests)
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 = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.7.4
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -g -O2 -Wall -D_THREAD_SAFE
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
MAGICK_LDFLAGS = -L/usr/local/lib
LIBS = -lMagickCore -ljpeg -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -lpthreads
CXX = g++
CXXFLAGS = -g -O2 -D_THREAD_SAFE
FEATURES =


It is moving past that.
It also seems to have finished.
I then ran make install and that seems to have gone well.

What is the significance of not using the shared library compile?
demianph
Posts: 5
Joined: 2012-01-11T15:25:53-07:00
Authentication code: 8675308

Re: AIX compile error

Post by demianph »

Well it works on the dev machine so now it's time to try in the wild.

Thank you.
Post Reply