Page 1 of 1

ImageMagick-6.9.1-1: configure script errors with XL C/C++ compiler on AIX

Posted: 2015-05-14T23:51:26-07:00
by vijayasri
I’ve been tring to build ImageMagick-6.9.1-1 from its source with IBM’s XL C/C++ compiler on AIX 7.1.

Here’s the configure script output –
==============================================================================
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: powerpc-ibm-aix7.1.0.0
Build system type: powerpc-ibm-aix7.1.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

Install documentation: yes

Delegate Library Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
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 yes
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=
LCMS v1 --with-lcms=no no
LCMS v2 --with-lcms2=yes yes
LQR --with-lqr=yes no
LTDL --with-ltdl=yes no
LZMA --with-lzma=yes yes
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
OpenJP2 --with-openjp2=yes no
PANGO --with-pango=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=no no
TIFF --with-tiff=yes yes
WEBP --with-webp=yes no
WMF --with-wmf=no no
X11 --with-x=no no
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

Delegate Program Configuration:
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (9.16)

Font Configuration:
Apple fonts --with-apple-font-dir=default none
Dejavu fonts --with-dejavu-font-dir=default none
Ghostscript fonts --with-gs-font-dir=default /home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/share/ghostscript/fonts/
Windows fonts --with-windows-font-dir=default none

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install
EXEC-PREFIX = /home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install
VERSION = 6.9.1
CC = xlC
CFLAGS = -I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include/freetype2 -I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include -qsmp=omp -g -v -D_THREAD_SAFE -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CPPFLAGS = -I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include -I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include/libxml2
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/lib -L/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/lib
LIBS = -ltiff -lfreetype -ljpeg -lxml2 -lbz2 -lz -llzma
CXX = xlc++
CXXFLAGS = -g -D_THREAD_SAFE
FEATURES = DPC OpenMP
DELEGATES = bzlib mpeg freetype jng jpeg lcms lzma png ps tiff xml zlib
==============================================================================



Though the configure script completes, there are errors in config.log. And I believe these are causing some ‘make check’ tests to fail post ImageMagick install. This error wont show if I use ‘--without-threads’ option.
Can you help me resolve the errors? Could it be something to do with the environment?

configure:10032: checking for xlC option to support OpenMP
configure:10047: xlC -o conftest -g -v -D_THREAD_SAFE -I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include -L/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/li
b conftest.c -ltiff -lfreetype -ljpeg -lxml2 -lbz2 -lz -llzma -lpthreads >&5
exec: export(export,XL_CONFIG=/etc/vac.cfg.71:xlC,NULL)
exec: export(export,XL_ASMOBJFILES=/tmp/xlcASzM8aad,NULL)
exec: export(export,XL_DIS=/usr/vac/exe/dis -o "conftest" "conftest.o",NULL)
exec: /usr/vac/exe/xlcentry(/usr/vac/exe/xlcentry,-qlanglvl=extc99,-qcpluscmt,-qkeyword=inline,-qalias=ansi,-qosvar=aix.7.1,-qalias=ansi,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX
50,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_AIX71,-D_IBMR2,-D_POWER,-g,-D_THREAD_SAFE,-I/home/csbuild/ImageMagick/ImageMagick-6.9.1-1/install/include,-qasm_as=/bin/as,-qc_stdinc=/
usr/vac/include:/usr/include,-qvac_include_path=/usr/vac/include,-oconftest.o,conftest.c,/tmp/xlcW0zE8aaa,/tmp/xlcW1zI8aab,/dev/null,/tmp/xlcLzM8aaeF.lst,/dev/null,/tmp/xlcW2zM8
aac,NULL)
unlink: /tmp/xlcASzM8aad
unlink: /tmp/xlcLzM8aae
unlink: /tmp/xlcW0zE8aaa
unlink: /tmp/xlcW1zI8aab
unlink: /tmp/xlcW2zM8aac
"conftest.c", line 36.2: 1506-166 (S) Definition of function choke requires parentheses.
"conftest.c", line 36.8: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/inttypes.h", line 59.9: 1506-045 (S) Undeclared identifier intmax_t.
"/usr/include/sys/inttypes.h", line 61.3: 1506-273 (E) Missing type in declaration of imaxdiv_t.
"/usr/include/sys/inttypes.h", line 64.8: 1506-166 (S) Definition of function intmax_t requires parentheses.
"/usr/include/sys/inttypes.h", line 64.17: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/inttypes.h", line 68.30: 1506-045 (S) Undeclared identifier __nptr.
"/usr/include/sys/inttypes.h", line 68.38: 1506-045 (S) Undeclared identifier __endptr.
"/usr/include/sys/inttypes.h", line 68.48: 1506-045 (S) Undeclared identifier __base.
"/usr/include/sys/inttypes.h", line 89.8: 1506-166 (S) Definition of function intmax_t requires parentheses.
"/usr/include/sys/inttypes.h", line 89.17: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/types.h", line 336.3: 1506-273 (E) Missing type in declaration of sigset_t.
"/usr/include/sys/types.h", line 348.9: 1506-046 (S) Syntax error.
"/usr/include/sys/types.h", line 383.9: 1506-046 (S) Syntax error.
"/usr/include/sys/types.h", line 473.9: 1506-166 (S) Definition of function uint64_t requires parentheses.
"/usr/include/sys/types.h", line 473.18: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/types.h", line 481.39: 1506-273 (E) Missing type in declaration of quad.
"/usr/include/sys/vm_types.h", line 39.9: 1506-166 (S) Definition of function ulong_t requires parentheses.
"/usr/include/sys/vm_types.h", line 39.25: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/vm_types.h", line 150.9: 1506-045 (S) Undeclared identifier vmhandle_t.
"/usr/include/sys/vm_types.h", line 151.9: 1506-045 (S) Undeclared identifier caddr_t.
"/usr/include/sys/vm_types.h", line 156.3: 1506-273 (E) Missing type in declaration of vmaddr_t.
"/usr/include/sys/vm_types.h", line 166.9: 1506-046 (S) Syntax error.
"/usr/include/sys/vm_types.h", line 192.9: 1506-046 (S) Syntax error.
"/usr/include/sys/vm_types.h", line 263.9: 1506-166 (S) Definition of function vmhandle_t requires parentheses.
"/usr/include/sys/vm_types.h", line 263.25: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/m_types.h", line 51.3: 1506-273 (E) Missing type in declaration of label_t.
"/usr/include/sys/m_types.h", line 53.9: 1506-166 (S) Definition of function int32long64_t requires parentheses.
"/usr/include/sys/m_types.h", line 53.25: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/types.h", line 565.30: 1506-273 (E) Missing type in declaration of physadr_t.
"/usr/include/sys/types.h", line 566.9: 1506-166 (S) Definition of function physadr_t requires parentheses.
"/usr/include/sys/types.h", line 566.25: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/include/sys/types.h", line 605.9: 1506-046 (S) Syntax error.
"/usr/include/sys/atomic_op.h", line 123.1: 1506-1419 (W) Pragma mc_func must appear in global scope.
"/usr/include/sys/atomic_op.h", line 123.1: 1506-224 (W) Incorrect pragma ignored.
"/usr/include/sys/atomic_op.h", line 126.1: 1506-1419 (W) Pragma mc_func must appear in global scope.
"/usr/include/sys/atomic_op.h", line 126.1: 1506-224 (W) Incorrect pragma ignored.
"/usr/include/sys/atomic_op.h", line 129.1: 1506-1419 (W) Pragma mc_func must appear in global scope.
"/usr/include/sys/atomic_op.h", line 129.1: 1506-224 (W) Incorrect pragma ignored.
"/usr/include/sys/atomic_op.h", line 132.1: 1506-1419 (W) Pragma mc_func must appear in global scope.
"/usr/include/sys/atomic_op.h", line 132.1: 1506-224 (W) Incorrect pragma ignored.
"/usr/include/sys/atomic_op.h", line 137.23: 1506-045 (W) Undeclared identifier _safe_fetch.
configure:10047: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.9.1-1"
| #define PACKAGE_STRING "ImageMagick 6.9.1-1"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| #define PACKAGE "ImageMagick"
| #define VERSION "6.9.1-1"
| #define MAGICK_TARGET_CPU powerpc
| #define MAGICK_TARGET_VENDOR ibm
| #define MAGICK_TARGET_OS aix7.1.0.0
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE___ATTRIBUTE__ 1
| #define SIZEOF_SIZE_T 4
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define THREAD_SUPPORT 1
| /* end confdefs.h. */
|
| #ifndef _OPENMP
| choke me
| #endif
| #include <omp.h>
| int main () { return omp_get_num_threads (); }
|


Many Thanks,
Vijayasri