Compile gcombust on hp-ux 10.20 / 11.00

README_hp-ux.html Version 0.18, last modified on 12.10.2001 Martin Gansser (c) <mgansser@rand.de mgansser@ngi.de>


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

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


Author: (c)
Jonas Munsin

Info: gcombust-0.1.39 is the first release which support ripping of audio cds with cdparanoia, but this feature is not supported by HP-UX,
please use cdda2wav instead.

 

1. System Requirements:

program

SDUX depot or source code

hp-ux 10.20

hp-ux 11.00

cdrtools

Sourcecode is available

cdrtools-1.10

cdrtools-1.10

cdlabelgen

Sourcecode is available

cdlabelgen

cdlabelgen

gtk+

SDUX depot file is available

gtk+-1.2.10

gtk+-1.2.10

glib

SDUX depot file is available

glib-1.2.10

glib-1.2.10

gettext

SDUX depot file is available

gettext-0.10.38

gettext-0.10.38

 

2. The following GNU programs are necessary, to compile gcombust.

2.1 install sed

hp-ux 10.20

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

hp-ux 11.00

cp sed-3.02-sd-11.00.depot.gz /tmp
gunzip
sed-3.02-sd-11.00.depot.gz
swinstall -s /tmp/sed-3.02-sd-11.00.depot sed

 

2.2 install binutils

hp-ux 10.20

cp binutils-2.11.2-sd-10.20.depot.gz /tmp
gunzip
binutils-2.11.2-sd-10.20.depot.gz
swinstall -s /tmp/binutils-2.11.2-sd-10.20.depot binutils

hp-ux 11.00

cp binutils-2.11.2-sd-11.00.depot.gz /tmp
gunzip
binutils-2.11.2-sd-11.00.depot.gz
swinstall -s /tmp/binutils-2.11.2-sd-11.00.depot binutils

 

2.3 install make

hp-ux 10.20

cp make-3.79.1-sd-10.20.depot.gz /tmp
gunzip
make-3.79.1-sd-10.20.depot.gz
swinstall -s /tmp/make-3.79.1-sd-10.20.depot make

hp-ux 11.00

cp make-3.79.1-sd-11.00.depot.gz /tmp
gunzip
make-3.79.1-sd-11.00.depot.gz
swinstall -s /tmp/make-3.79.1-sd-11.00.depot make

 

2.4 install autoconf

hp-ux 10.20

Dependencies: gawk m4 perl

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

hp-ux 11.00

Dependencies: gawk m4 perl

cp autoconf-2.52-sd-11.00.depot.gz /tmp
gunzip autoconf-2.52-sd-11.00.depot.gz
swinstall -s /tmp/autoconf-2.52-sd-11.00.depot autoconf

 

2.5 install automake

hp-ux 10.20

Dependencies: autoconf gawk m4 perl texinfo

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

hp-ux 11.00

Dependencies: autoconf gawk m4 perl texinfo

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

 

2.6 install fileutils

hp-ux 10.20

cp fileutils-4.1-sd-10.20.depot.gz /tmp
gunzip
fileutils-4.1-sd-10.20.depot.gz
swinstall -s /tmp/fileutils-4.1-sd-10.20.depot fileutils

hp-ux 11.00

cp fileutils-4.1-sd-11.00.depot.gz /tmp
gunzip
fileutils-4.1-sd-11.00.depot.gz
swinstall -s /tmp/fileutils-4.1-sd-11.00.depot fileutils

 

2.7 install texinfo

hp-ux 10.20

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

hp-ux 11.00

cp texinfo-4.0-sd-11.00.depot.gz /tmp
gunzip texinfo-4.0-sd-11.00.depot.gz
swinstall -s /tmp/texinfo-4.0-sd-11.00.depot texinfo

 

2.8 install m4

hp-ux 10.20

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

hp-ux 11.00

cp m4-1.4-sd-11.00.depot.gz /tmp
gunzip
m4-1.4-sd-11.00.depot.gz
swinstall -s /tmp/
m4-1.4-sd-11.00.depot m4

 

2.9 install gcc

hp-ux 10.20

Dependencies: binutils

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

hp-ux 11.00

Dependencies: binutils

cp gcc-3.0.1-sd-11.00.depot.gz /tmp
gunzip
gcc-3.0.1-sd-11.00.depot.gz
swinstall -s /tmp/gcc-3.0.1-sd-11.00.depot gcc

 

2.10 install gtk+

hp-ux 10.20

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+

hp-ux 11.00

Dependencies: gettext glib libiconv

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

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

 

2.11 install glib

hp-ux 10.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

hp-ux 11.00

cp glib-1.2.10-sd-11.00.depot.gz /tmp
gunzip glib-1.2.10-sd-11.00.depot.gz
swinstall -s /tmp/glib-1.2.10-sd-11.00.depot glib

 

2.12 install libiconv

hp-ux 10.20

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

hp-ux 11.00

cp libiconv-1.6.1-sd-11.00.depot.gz /tmp
gunzip libiconv-1.6.1-sd-11.00.depot.gz
swinstall -s /tmp/libiconv-1.6.1-sd-11.00.depot libiconv

 

2.13 install gettext

hp-ux 10.20

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

hp-ux 11.00

Dependencies: libiconv

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

 

2.14 build cdrtools binaries from source

Example under HP-UX:

gzip –dc cdrtools-1.10.tar.gz | tar xf -
cd cdrtools-1.10
gmake
gmake INS_BASE=/opt/cdrtools install

 

2.15 install cdrtools binaries from depot-file

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

 

2.16 install optional perl

hp-ux 10.20

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

hp-ux 11.00

cp perl-5.6.1-sd-11.00.depot.gz /tmp
gunzip perl-5.6.1-sd-11.00.depot.gz

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

 

2.17 extend X11-library path in gtk-config by following entry

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

 

2.18 install optional cdlabelgen

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

 

2.19 set GNU program paths

Attention: 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/fileutils/bin
:/opt/gettext/bin:/opt/libiconv/bin:/opt/cdrecord/bin:/opt/perl5/bin:/opt/cdlabelgen/bin
:/usr/bin:/usr/lib/X11R6:...

 

Attention: all path variables are in one line, separate by colon.

In order to make the PATH Modifications effective, it is sufficient to logout and login again from CDE session.
If you won´t logout, you can reread the PATH Variables with following command in different shell´s:

for sh/ksh shell

export PATH=`cat /etc/PATH`:$PATH

for csh/tcsh shell

setenv PATH `cat /etc/PATH`:$PATH

 

2.20 localice the path of assembler, linker and stream text editor

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

 

3. unpack gcombust SOURCES

gzip –dc gcombust-0.1.47.tar.gz |tar xf –
cd gcombust-0.1.47

 

3.1 define GCC compiler

setenv CC GCC

 

3.2 create Makefile

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.

Note: gcombust didn´t require the GNU gettext package, because gettext is included in this package,
you can use configure switch
--disable-nls.

 

setenv LINGUAS de
gmake distclean

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

 

3.3 determine Installation path

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

 

3.4 configure options

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

 

3.5 compile gcombust

gmake

the binary on my machine is 5197208 large (5,2 MB)

 

3.6 compilation errors

if compiling errors occur like this:

/usr/ccs/bin/ld: Can't find library for –lXext
/usr/ccs/bin/ld: Can't find library for –lICE
/usr/ccs/bin/ld: Can't find library for –lX11

This means that the static libraries are missing.

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.

Simply make a link in /usr/lib/X11R6 from runtime library to static library.

cd /usr/lib/X11R6
ln -s libICE.1 libICE.a
ln –s libXext.2 libXext.a
ln –s libX11.2 libX11.a

 

3.7 install gcombust

gmake install

 

3.8 set program path

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

 

3.9 language adjustment

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

 

3.10 start gcombust

gcombust

 

Instructions

Attention / Note

Error Messages / Warnings

Optional

Solution

 


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

Note: gcombust dependencies and installation order for precompiled version. These are the minimum requirements.

1. glib-1.2.10-sd-10.20.depot
2. gtk+-1.2.10-sd-10.20.depot
3. libiconv-1.6.1-sd-10.20.depot
4. gettext-0.10.38-sd-10.20.depot