compile gcombust on hp-ux® 10.20

Version 0.9, last modified on 02.01.2001 ã Martin Gansser <mgansser@rand.de mgansser@ngi.de>


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

gcombust-0.1.39 is a graphic user - Interface, which uses cdrecord.
Author:
ã 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.

 

cdrtools 1.9

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.8

glib 1.2.x

I recommend using the latest version, at the moment 1.2.8

gettext 0.10.35

NLS – language support

 

  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.9.1-sd-10.20.depot.gz /tmp
    gunzip
    binutils-2.9.1-sd-10.20.depot.gz
    swinstall -s /tmp/binutils-2.9.1-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.13-sd-10.20.depot.gz /tmp
    gunzip
    autoconf-2.13-sd-10.20.depot.gz
    swinstall -s /tmp/autoconf-2.13-sd-10.20.depot autoconf

     

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

    cp automake-1.3-sd-10.20.depot.gz /tmp
    gunzip
    automake-1.3-sd-10.20.depot.gz
    swinstall -s /tmp/automake-1.3-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.2-sd-10.20.depot.gz /tmp
    gunzip
    gcc-2.95.2-sd-10.20.depot.gz
    swinstall -s /tmp/gcc-2.95.2-sd-10.20.depot gcc

     

  17. install gtk+
  18. Dependencies: glib

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

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

     

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

     

  21. install gettext
  22. cp gettext-0.10.35-sd-10.20.depot.gz /tmp
    gunzip gettext-0.10.35-sd-10.20.depot.gz
    swinstall -s /tmp/gettext-0.10.35-sd-10.20.depot gettext

     

  23. install cdrecord
  24. Depot files produced by me, please use sources cdrecord-1.9.tar.gz

    cp cdrecord-1.9-sd-10.20.depot.gz /tmp
    gunzip cdrecord-1.9-sd-10.20.depot.gz
    swinstall -s /tmp/cdrecord-1.9-sd-10.20.depot cdrecord

     

  25. install perl
  26. cp perl-5.6.0-sd-10.20.depot.gz /tmp
    gunzip perl-5.6.0-sd-10.20.depot.gz

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

     

  27. install X-LIBRARY patch
  28. 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

    ...

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

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

     

  31. install cdlabelgen
  32. 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

     

  33. set GNU program paths
  34. 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:...

     

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

    reboot Maschine after editing the path

     

  35. localice the path of Assembler, link and Stream text editor
  36. 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

     

  37. unpack and install gcombust SOURCES
  38. gunzip gcombust-0.1.39.tar.gz
    tar xvf gcombust-0.1.39.tar
    cd gcombust-0.1.39

     

  39. define GCC compiler
  40. setenv CC GCC

     

  41. create Makefile
  42. 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

     

  43. determine Installation path
  44. 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

     

  45. configure options
  46. 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

     

  47. compile gcombust
  48. gmake

     

  49. install gcombust
  50. gmake install

     

  51. set program path
  52. 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

     

  53. language adjustment
  54. 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

     

  55. start gcombust

gcombust

 

Instruction

Attention / Note

Error Messages / Warnings

Solution

 


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

Dependencies: cdrecord-1.9-sd-depot and cdlabelgen-1.5.0-sd-depot.