Originally posted by: flechter
Hello,
We try to compile or install ghostscript on aix 7.1, but when we try to compile with gcc we have this error :
.....
gcc -DSHARE_LCMS=0 -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_SETLOCALE -DHAVE_BSWAP32 -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -Wl,-brtl -D_LARGE_FILES -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DGS_MEMPTR_ALIGNMENT=8 -DHAVE_RESTRICT=1 -DUSE_LIBICONV_GNU -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 -DSHARE_LCMS=0 -DCMS_USE_BIG_ENDIAN=1 -Dsqrtf="(float)sqrt" -DCMS_PTR_ALIGNMENT=8 -I./lcms2mt/include -o ./obj/cmscam02.o -c ./lcms2mt/src/cmscam02.c
<command-line>:0:8: error: expected identifier or '(' before 'float'
make: The error code from the last command is 1.
With the ibm cc we have this error :
cc -qlanglvl=extc89 -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_SETLOCALE -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF -DHAVE_FPCLASSIFY -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O -Wl,-brtl -D_LARGE_FILES -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DGS_MEMPTR_ALIGNMENT=8 -DHAVE_RESTRICT=1 -DHAVE_POPEN_PROTO=1 -I./obj -I./base -I./devices -DWHICH_CMS="lcms2mt" -o ./obj/gxpcmap.o -c ./base/gxpcmap.c
"./base/gxpcmap.c", line 1463.13: 1506-046 (S) Syntax error.
"./base/gxpcmap.c", line 1465.18: 1506-045 (S) Undeclared identifier padev.
"./base/gxpcmap.c", line 1546.9: 1506-046 (S) Syntax error.
make: The error code from the last command is 1.
and if we try to use rpm we have this problem :
sip1psomut1-root:/mnt/install/RPMs/deps/aix_rpm_deps_12132018_1501/rpm~# rpm -Uvh cairo-1.12.8-1.aix5.1.ppc.rpm
error: Failed dependencies:
librsvg2 >= 2.26.0 is needed by cairo-1.12.8-1.ppc
sip1psomut1-root:/mnt/install/RPMs/deps/aix_rpm_deps_12132018_1501/rpm~# rpm -Uvh librsvg2-2.34.2-1.aix5.1.ppc.rpm
error: Failed dependencies:
gtk2 >= 2.18.5 is needed by librsvg2-2.34.2-1.ppc
libcairo.a(libcairo.so.2) is needed by librsvg2-2.34.2-1.ppc
libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) is needed by librsvg2-2.34.2-1.ppc
libgdk_pixbuf-2.0.a(libgdk_pixbuf-2.0.so.0) is needed by librsvg2-2.34.2-1.ppc
libgtk-x11-2.0.a(libgtk-x11-2.0.so.0) is needed by librsvg2-2.34.2-1.ppc
libpango-1.0.a(libpango-1.0.so.0) is needed by librsvg2-2.34.2-1.ppc
libpangocairo-1.0.a(libpangocairo-1.0.so.0) is needed by librsvg2-2.34.2-1.ppc
sip1psomut1-root:/mnt/install/RPMs/deps/aix_rpm_deps_12132018_1501/rpm~# rpm -Uvh pango-1.24.5-1.aix5.1.ppc.rpm
error: Failed dependencies:
cairo >= 1.4.14 is needed by pango-1.24.5-1.ppc
libcairo.a(libcairo.so.2) is needed by pango-1.24.5-1.ppc
if I try to force the installation of pango with --nodeps it failed.
Does anyone have already have this error and can help us to install ghostscript ?
Thanks
Stephane Didierjean