AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Compiling/installing Ghostscript on AIX 7.1

    Posted Fri December 14, 2018 11:02 AM

    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



  • 2.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Mon December 17, 2018 09:25 AM

    Originally posted by: AyappanP


    We will be publishing Ghostscript package in AIX Toolbox soon, probably by this month end. 



  • 3.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Thu February 14, 2019 01:51 PM

    Originally posted by: JoeJoeJoe


    Has this Ghostscript package been published yet?

    Where can I find it?  I only see a really old version available in the AIX Toolbox.

     

    Thanks!



  • 4.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Fri February 15, 2019 04:28 AM

    Originally posted by: AyappanP


    There are some legal issues in publishing Ghostscript in AIX Toolbox and we are working with the Legal team to get this approved.

     



  • 5.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Wed March 06, 2019 08:43 AM

    Originally posted by: AyappanP


    Ghostscript 9.25 is now available in AIX Toolbox. 

    ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/ghostscript/

    Ghostscript-fonts & urw-fonts are the dependencies.

    ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/ghostscript-fonts/

    ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/urw-fonts/

    If possible, please use yum to install it. 



  • 6.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Wed March 27, 2019 12:16 AM

    Originally posted by: Pledy


    Hi

    I have successfully installed ghostscript-fonts-8.11-1.aix6.1.noarch.rpm and urw-fonts-2.0-1.aix4.3.noarch.rpm, but still found dependencies error. May I ask we can ignore the error or we have to install those packages as well. 

     

    # rpm -ivh ghostscript-9.25-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            cairo >= 1.10.0 is needed by ghostscript-9.25-1.ppc
            fontconfig >= 2.8.0 is needed by ghostscript-9.25-1.ppc
            freetype2 >= 2.8 is needed by ghostscript-9.25-1.ppc
            libfontconfig.a(libfontconfig.so.1) is needed by ghostscript-9.25-1.ppc
            libfreetype.a(libfreetype.so.6) is needed by ghostscript-9.25-1.ppc
            libgcc >= 6.3.0 is needed by ghostscript-9.25-1.ppc
            libjpeg >= 6b is needed by ghostscript-9.25-1.ppc
            libjpeg.a(libjpeg.so.63) is needed by ghostscript-9.25-1.ppc
            libpaper >= 1.1.23-3 is needed by ghostscript-9.25-1.ppc
            libpaper.a(libpaper.so.1) is needed by ghostscript-9.25-1.ppc
            libpng >= 1.2.46 is needed by ghostscript-9.25-1.ppc
            libpng.a(libpng16.so.16) is needed by ghostscript-9.25-1.ppc
            libtiff >= 3.8.2-1 is needed by ghostscript-9.25-1.ppc
            libtiff.a(libtiff.so.3) is needed by ghostscript-9.25-1.ppc
            libtiff.a(shr.o) is needed by ghostscript-9.25-1.ppc

     

    Thanks,
    Pledy



  • 7.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Wed March 27, 2019 12:09 PM

    Originally posted by: AyappanP


    One has to install the dependencies. Ignoring the errors using "--force" option will be problematic.

    Ghostscript has lot of dependencies. Yum is the best way to install it.

    Without yum, it is going to be hectic as dependencies are more here.



  • 8.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Fri January 10, 2020 08:21 AM

    Originally posted by: BayBoater33


    I'm having the same problem with it asking for libjpeg.so.63.  I have libjpeg-9c-1.aix5.1.ppc.rpm installed, but that only has libjpeg.so.62.  I can't even find any reference in a web search about libjpeg.so.63 other than this page.  That's the only error I currently have.



  • 9.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Fri January 10, 2020 08:46 AM

    Originally posted by: AyappanP


    # rpm -qa | grep libjpeg
    libjpeg-9c-1.ppc
    libjpeg-devel-9c-1.ppc


    # rpm -q --provides libjpeg-9c-1.ppc
    libjpeg = 9c-1
    libjpeg.a(libjpeg.so.62)
    libjpeg.a(libjpeg.so.63)
    libjpeg.a(libjpeg.so.9)
    libjpeg.a(shr.o)
     

    You need to use AIX Toolbox libjpeg rpm for AIX Toolbox ghostscript rpm. Seems like you use perzl rpm. 



  • 10.  Re: Compiling/installing Ghostscript on AIX 7.1

    Posted Fri January 10, 2020 09:57 AM

    Originally posted by: BayBoater33


    You rock.  That fixed my problem.

    Thank you and take the rest of the day off.