compile gcombust on hp-ux 10.20

Version 0.14, last modified on 12.06.2001 Martin Gansser (c) <mgansser@rand.de mgansser@ngi.de>


This guidance explains step by step, how gcombust-0.1.45 is compiled on hp-ux 10.20 with the help of the GCC ANSI-C compiler.

gcombust-0.1.45 is a graphic user - Interface, which uses cdrecord.


Author: (c)
Jonas Munsin

gcombust-0.1.39 is the first release which support ripping of audio cds with cdparanoia, but this feature is not supported on HP-UX.
Switch to cdda2wav.

 

cdrtools 1.10

cdrecord/mkisofs/cdda2wav

cdlabelgen 1.5.0

create and print CD Labels uses perl5

gtk+ 1.2.x

I recommend using the latest version, at the moment 1.2.10

glib 1.2.x

I recommend using the latest version, at the moment 1.2.10

gettext 0.10.38

NLS – language support, the latest version is, at the moment 0.10.38

 

  1. install sed
  2. cp sed-3.02-sd-10.20.depot.gz /tmp
    gunzip
    sed-3.02-sd-10.20.depot.gz
    swinstall -s /tmp/sed-3.02-sd-10.20.depot sed

     

  3. install binutils
  4. cp binutils-2.11-sd-10.20.depot.gz /tmp
    gunzip
    binutils-2.11-sd-10.20.depot.gz
    swinstall -s /tmp/binutils-2.11-sd-10.20.depot binutils

     

  5. install make
  6. cp make-3.79-sd-10.20.depot.gz /tmp
    gunzip
    make-3.79-sd-10.20.depot.gz
    swinstall -s /tmp/make-3.79-sd-10.20.depot make

     

  7. install autoconf
  8. Dependencies: m4

    cp autoconf-2.50-sd-10.20.depot.gz /tmp
    gunzip
    autoconf-2.50-sd-10.20.depot.gz
    swinstall -s /tmp/autoconf-2.50-sd-10.20.depot autoconf

     

  9. install automake
  10. Dependencies: autoconf m4 perl texinfo

    cp automake-1.4-sd-10.20.depot.gz /tmp
    gunzip
    automake-1.4-sd-10.20.depot.gz
    swinstall -s /tmp/automake-1.4-sd-10.20.depot automake

     

  11. install texinfo
  12. cp texinfo-4.0-sd-10.20.depot.gz /tmp
    gunzip texinfo-4.0-sd-10.20.depot.gz
    swinstall -s /tmp/texinfo-4.0-sd-10.20.depot texinfo

     

  13. install m4
  14. cp m4-1.4-sd-10.20.depot.gz /tmp
    gunzip
    m4-1.4-sd-10.20.depot.gz
    swinstall -s /tmp/
    m4-1.4-sd-10.20.depot m4

     

  15. install gcc
  16. Dependencies: binutils

    cp gcc-2.95.3-sd-10.20.depot.gz /tmp
    gunzip
    gcc-2.95.3-sd-10.20.depot.gz
    swinstall -s /tmp/gcc-2.95.3-sd-10.20.depot gcc

     

  17. install gtk+
  18. Dependencies: gettext glib libiconv

    cp gtk+-1.2.10-sd-10.20.depot.gz /tmp
    gunzip gtk+-1.2.10-sd-10.20.depot.gz

    swinstall -s /tmp/gtk+-1.2.10-sd-10.20.depot gtk+

     

  19. install glib
  20. cp glib-1.2.10-sd-10.20.depot.gz /tmp
    gunzip glib-1.2.10-sd-10.20.depot.gz
    swinstall -s /tmp/glib-1.2.10-sd-10.20.depot glib

     

  21. install libiconv
  22. cp libiconv-1.6.1-sd-10.20.depot.gz /tmp
    gunzip libiconv-1.6.1-sd-10.20.depot.gz
    swinstall -s /tmp/libiconv-1.6.1-sd-10.20.depot libiconv

     

  23. install gettext
  24. Dependencies: libiconv

    cp gettext-0.10.38-sd-10.20.depot.gz /tmp
    gunzip gettext-0.10.38-sd-10.20.depot.gz
    swinstall -s /tmp/gettext-0.10.38-sd-10.20.depot gettext

     

  25. install cdrtools
  26. Depot files produced by me, please use sources cdrtools-1.10

    cp cdrtools-1.10a19-sd-10.20.depot.gz /tmp
    gunzip cdrtools-1.10-sd-10.20.depot.gz
    swinstall -s /tmp/cdrtools-1.10-sd-10.20.depot cdrtools

     

  27. install perl
  28. cp perl-5.6.1-sd-10.20.depot.gz /tmp
    gunzip perl-5.6.1-sd-10.20.depot.gz

    swinstall -s /tmp/perl-5.6.1-sd-10.20.depot perl

     

  29. install X-LIBRARY patch
  30. if compiling errors occur like this:

    /usr/ccs/bin/ld: Can't find library for -lXext

    The HP-UX X11-Library with the X11-Extensions are only installed as run time LIBRARY and not as
    Developer kit. The run time libraries e.g. ' libXext.1 ' and ' libXext.2 ' are installed under /usr/lib/X11R6.

    With installation of the " HP-UXâ X11R6 Developer's Toolkit B.10.20 " by the Patch PHSS_21043 under
    /usr/lib/X11R6 (static LIBRARY) libXext.a or (shared LIBRARY) libXext.sl are also installed.

    cp PHSS_21043 /tmp
    cd /tmp
    sh PHSS_21043
    swinstall -x autoreboot=true -x match_target=true -s /tmp/PHSS_21043.depot

    After install patch PHSS_21043 ( s700_800 10.20 X11R6/Motif1.2 DevKit MAR2000 Periodic Patch ) the
    following X-libraries are displayed:

    Patch Files:
    /usr/bin/X11/uil
    /usr/lib/X11R6/libX11.a
    /usr/lib/X11R6/libXhp11.a
    /usr/lib/X11R6/libXext.a
    /usr/lib/X11R6/libXt.a
    /usr/lib/X11R6/libICE.a
    /usr/lib/X11R6/libXIE.a
    /usr/lib/X11R6/libXi.a
    /usr/lib/X11R6/libXtst.a
    /usr/lib/Motif1.2_R6/libXm.a
    /usr/lib/Motif1.2/libMrm.a

    ...

  31. extend X11-Library Path in gtk-config by following entry
  32. vi /opt/gtk+/bin/gtk-config

    echo $libdirs –lgtk -lgdk $my_glib_libs –L/opt/gettext/lib \
    -libintl
    -L/usr/lib/X11R6 -lXext -lX11 -lm

     

  33. install cdlabelgen
  34. Depot files produced by me, please use sources cdlabelgen-1.5.0

    Dependencies: perl gv-3.5.8 gs gs_f_other-5.10 gs_f_std-5.10 libpng zlib Xaw3d

    cp cdlabelgen-1.5.0-sd-10.20.depot.gz /tmp
    gunzip cdlabelgen-1.5.0-sd-10.20.depot.gz
    swinstall -s /tmp/cdlabelgen-1.5.0-sd-10.20.depot cdlabelgen

     

  35. set GNU program paths
  36. It is necessary that the GNU program paths are set before the HP-UX system paths.

     

    vi /etc/PATH

    /opt/sed/bin:/opt/binutils/bin:/opt/make/bin:/opt/autoconf/bin:/opt/automake/bin
    :/opt/texinfo/bin:/opt/m4/bin:/opt/gcc/bin:/opt/gtk+/bin:/opt/glib/bin
    :/opt/gettext/bin:/opt/cdrecord/bin:/opt/perl5/bin:/opt/cdlabelgen/bin
    :/usr/bin:/usr/lib/X11R6:...

     

    Attention: the path variable are in one line, separate by colon.

    reboot Maschine after editing the path

     

  37. localice the path of Assembler, link and Stream text editor
  38. Check whether the GNU version is used.

    which as ld sed

    The output should display the following:

    /opt/binutils/bin/as
    /usr/bin/ld
    /opt/sed/bin/sed

     

  39. unpack and install gcombust SOURCES
  40. gunzip gcombust-0.1.45.tar.gz
    tar xvf gcombust-0.1.45.tar
    cd gcombust-0.1.45

     

  41. define GCC compiler
  42. setenv CC GCC

     

  43. create Makefile
  44. To use internationalization (i18n), gcombust needs a usable gettext or catgets implementation. If your

    system does not provide one (e.g. HP-UX), either use the configure switch '--disable-nls', or

    get GNU gettext for HP-UX.

    The command './configure --with-included-gettext' bypasses system catgets or gettext

    to use GNU gettext instead, while './configure --disable-nls' produces program totally

    unable to translate messages. However, the environment variable 'LINGUAS' may be set, prior to

    configuration, to limit the installed set, e.q.

    Create only the language catalog for german and delete the cache file created by configure.

    setenv LINGUAS de
    gmake distclean

    ./configure –-with-gtk-prefix=/opt/gtk+ --disable-gtktest \
    --with-included-gettext

     

  45. determine Installation path
  46. define installation-path-prefix in configure e.g.:

    –-prefix=/opt/gcombust

    or

    transfer the following option when creating the Makefile:

    ./configure –-prefix=/opt/gcombust -–with-gtk-prefix=/opt/gtk+ \
    --disable-gtktest –-with-included-gettext

     

  47. configure options
  48. Directory and file names:

    --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local]

    --enable and --with options recognized:

    --disable-nls do not use Native Language Support, if gettext is not installed
    --with-included-gettext use the GNU gettext library included here
    --with-catgets use catgets functions if available
    --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
    --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
    --disable-gtktest Do not try to compile and run a test GTK program

     

  49. compile gcombust
  50. gmake

     

  51. install gcombust
  52. gmake install

     

  53. set program path
  54. In order to be able to start gcombust, the programs path should be defined.

    for csh users in .cshrc:

    set path=( $path /usr/sbin /opt/gcombust/bin )

    for ksh and bash users in .profile:

    PATH=/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin:/opt/gcombust/bin
    export PATH

     

  55. language adjustment
  56. gcombust can be started in different language environments.

    e.q. you can start gcombust in german language environment, by setting of the following variable:

    for csh users in .cshrc:

    setenv LANG de_DE.iso88591

    for ksh and bash users in .profile:

    export LANG=de_DE.iso88591

     

  57. start gcombust

gcombust

 

Instructions

Attention / Note

Error Messages / Warnings

Solution

 


Additionally I created a SDUX Softwaredepot from gcombust-0.1.45, this means a precompiled binary file (gcombust-0.1.45-sd-10.20.depot), which is installed with swinstall.

Note: gcombust Dependencies and Installation Order for precompiled Version. This are the minimum requirements.

glib-1.2.10-sd-10.20.depot
gtk+-1.2.10-sd-10.20.depot
libiconv-1.6.1-sd-10.20.depot
gettext-0.10.38-sd-10.20.depot