Speech:Software Sox


 * Home
 * Semesters - Project Work by Semester
 * Information
 * [System Description]
 * Experiments - List of speech experiments

System Description

 * Hardware Setup
 * System Software
 * Software Base
 * Sphinx Installation
 * [Sox hotfix for Red Hat on Caesar]
 * Emacs hotfix on Caesar

Sox hotfix for RedHat on Caesar
Initial hotfix done with rsync for to ensure no files were overwritten.

Prof. asked to undo

Document of sox undo.......................click to expand ->
All files from Caesar before hotfix removed. .......................click to expand ->


 * /usr/lib/libvorbisenc.so.2
 * /usr/lib/libvorbisenc.so.2.0.6
 * /usr/lib/libvorbisfile.so.3
 * /usr/lib/libvorbisfile.so.3.3.2
 * /usr/lib/libvorbis.so.0
 * /usr/lib/libvorbis.so.0.4.3
 * /usr/lib/libogg.so.0
 * /usr/lib/libogg.so.0.6.0
 * /usr/lib/libwavpack.so.1
 * /usr/lib/libwavpack.so.1.0.3
 * /usr/lib/libsndfile.so.1
 * /usr/lib/libsndfile.so.1.0.20
 * /usr/lib/libpulse-browse.so.0
 * /usr/lib/libpulse-browse.so.0.1.1
 * /usr/lib/libpulsecommon-0.9.21.so
 * /usr/lib/libpulsecore-0.9.21.so
 * /usr/lib/libpulsedsp.so
 * /usr/lib/libpulse-mainloop-glib.so.0
 * /usr/lib/libpulse-mainloop-glib.so.0.0.4
 * /usr/lib/libpulse-simple.so.0
 * /usr/lib/libpulse-simple.so.0.0.3
 * /usr/lib/libpulse.so.0
 * /usr/lib/libpulse.so.0.12.2
 * /usr/lib/libX11.so.6
 * /usr/lib/libX11.so.6.3.0
 * /usr/lib/libX11-xcb.so.1
 * /usr/lib/libX11-xcb.so.1.0.0
 * /usr/lib/libdbus-glib-1.so.2
 * /usr/lib/libdbus-glib-1.so.2.1.0
 * /lib/libdbus-1.so.3
 * /lib/libdbus-1.so.3.4.0
 * /usr/lib/libSM.so.6
 * /usr/lib/libSM.so.6.0.1
 * /usr/lib/libICE.so.6
 * /usr/lib/libICE.so.6.3.0
 * /usr/lib/libXt.so.6
 * /usr/lib/libXt.so.6.0.0
 * /usr/lib/libXtst.so.6
 * /usr/lib/libXtst.so.6.1.0
 * /lib/libwrap.so.0
 * /lib/libwrap.so.0.7.6
 * /usr/lib/libgdbm_compat.so.3
 * /usr/lib/libgdbm_compat.so.3.0.0
 * /usr/lib/libgdbm.so.3
 * /usr/lib/libgdbm.so.3.0.0
 * /lib/libuuid.so.1
 * /lib/libuuid.so.1.3.0
 * /usr/lib/libX11.so.6
 * /usr/lib/libX11.so.6.3.0
 * /usr/lib/libX11-xcb.so.1
 * /usr/lib/libX11-xcb.so.1.0.0
 * /usr/lib/libXau.so.6
 * /usr/lib/libXau.so.6.0.0
 * /usr/lib/libXaw6.so.6
 * /usr/lib/libXaw6.so.6.0.1
 * /usr/lib/libXaw7.so.7
 * /usr/lib/libXaw7.so.7.0.0
 * /usr/lib/libXaw8.so.8
 * /usr/lib/libXaw.so.6
 * /usr/lib/libXaw.so.7
 * /usr/lib/libXaw.so.8
 * /usr/lib/libXcliplist.so.1
 * /usr/lib/libXcliplist.so.1.0.0
 * /usr/lib/libXcomposite.so.1
 * /usr/lib/libXcomposite.so.1.0.0
 * /usr/lib/libXcursor.so.1
 * /usr/lib/libXcursor.so.1.0.2
 * /usr/lib/libXdamage.so.1
 * /usr/lib/libXdamage.so.1.1.0
 * /usr/lib/libXdmcp.so.6
 * /usr/lib/libXdmcp.so.6.0.0
 * /usr/lib/libXevie.so.1
 * /usr/lib/libXevie.so.1.0.0
 * /usr/lib/libXext.so.6
 * /usr/lib/libXext.so.6.4.0
 * /usr/lib/libXfixes.so.3
 * /usr/lib/libXfixes.so.3.1.0
 * /usr/lib/libXfontcache.so.1
 * /usr/lib/libXfontcache.so.1.0.0
 * /usr/lib/libXfont.so.1
 * /usr/lib/libXfont.so.1.4.1
 * /usr/lib/libXft.so.2
 * /usr/lib/libXft.so.2.1.13
 * /usr/lib/libXinerama.so.1
 * /usr/lib/libXinerama.so.1.0.0
 * /usr/lib/libXi.so.6
 * /usr/lib/libXi.so.6.1.0
 * /usr/lib/libXmu.so.6
 * /usr/lib/libXmu.so.6.2.0
 * /usr/lib/libXmuu.so.1
 * /usr/lib/libXmuu.so.1.0.0
 * /usr/lib/libXpm.so.4
 * /usr/lib/libXpm.so.4.11.0
 * /usr/lib/libXprintAppUtil.so.1
 * /usr/lib/libXprintAppUtil.so.1.0.0
 * /usr/lib/libXprintUtil.so.1
 * /usr/lib/libXprintUtil.so.1.0.0
 * /usr/lib/libXp.so.6
 * /usr/lib/libXp.so.6.2.0
 * /usr/lib/libXrandr.so.2
 * /usr/lib/libXrandr.so.2.2.0
 * /usr/lib/libXrender.so.1
 * /usr/lib/libXrender.so.1.3.0
 * /usr/lib/libXRes.so.1
 * /usr/lib/libXRes.so.1.0.0
 * /usr/lib/libXss.so.1
 * /usr/lib/libXss.so.1.0.0
 * /usr/lib/libXTrap.so.6
 * /usr/lib/libXTrap.so.6.4.0
 * /usr/lib/libXt.so.6
 * /usr/lib/libXt.so.6.0.0
 * /usr/lib/libXtst.so.6
 * /usr/lib/libXtst.so.6.1.0
 * /usr/lib/libXvMC.so.1
 * /usr/lib/libXvMC.so.1.0.0
 * /usr/lib/libXvMCW.so.1
 * /usr/lib/libXvMCW.so.1.0.0
 * /usr/lib/libXv.so.1
 * /usr/lib/libXv.so.1.0.0
 * /usr/lib/libXxf86dga.so.1
 * /usr/lib/libXxf86dga.so.1.0.0
 * /usr/lib/libXxf86misc.so.1
 * /usr/lib/libXxf86misc.so.1.1.0
 * /usr/lib/libXxf86vm.so.1
 * /usr/lib/libXxf86vm.so.1.0.0
 * /usr/lib/libgomp.so.1
 * /usr/lib/libpng14.so.14
 * /lib/libz.so.1
 * /usr/lib/libltdl.so.7
 * /usr/lib/libasound.so.2
 * /usr/lib/libao.so.2
 * /usr/lib/libFLAC.so.8
 * /usr/lib/libgsm.so.1
 * /usr/lib/libpulse.so.0
 * /usr/lib/libpulse-simple.so.0

Files actually copied. (Did not already exist on Caesar)

/usr/lib 64K -rwxr-xr-x. 1 root root     62K Feb 17 16:14 libgomp.so.1 172K -rwxr-xr-x. 1 root root    170K Feb 17 16:16 libpng14.so.14 40K -rwxr-xr-x. 1 root root     38K Feb 17 16:25 libltdl.so.7 876K -rwxr-xr-x. 1 root root    875K Feb 17 16:26 libasound.so.2 20K -rwxr-xr-x. 1 root root     19K Feb 17 16:27 libao.so.2 344K -rwxr-xr-x. 1 root root    344K Feb 17 16:30 libFLAC.so.8 48K -rwxr-xr-x. 1 root root     46K Feb 17 16:31 libgsm.so.1 288K -rwxr-xr-x. 1 root root    288K Feb 17 16:34 libpulse.so.0 16K -rwxr-xr-x. 1 root root     14K Feb 17 16:35 libpulse-simple.so.0 124K -rwxr-xr-x. 1 mcy59 cis790 122K Feb 18 17:42 libxcb.so.1.1.0 0 lrwxrwxrwx. 1 root root      24 Feb 18 17:44 libxcb.so.1 -> /usr/lib/libxcb.so.1.1.0

Files moved to /usr/lib/DELETE

/lib 76K -rwxr-xr-x. 1 root root 74K Feb 17 16:19 libz.so.1

Files moved to /lib/DELETE

This broke sox again on Caesar

...and redo using /mnt/main/local/lib/hotfix method...

Document of sox hotfix
--- Finding Missing dependencies ---

-Background-

Since the move from Opensuse to RedHat sox has been broken. When attempting to run sox you would get an error that it cannot find a specific file. In this case these are library files used to make the program run. These files were not included in the default install of RedHat.

In order to locate these files I logged into Brutus (the original server running Opensuse) and performed a search. An example might be: whereis libgomp.so.1 This would return the location of the file on that system. Something like: libgomp.so.1 /usr/lib

These files were then copied to Caesar.

At this point sox is up and running on Caesar.

This hotfix was setup to make patching other system easier in the future.

Currently all missing dependencies for sox are located in

/mnt/main/local/lib/hotfix/opensuse

Inside of this dir you can assume the you will find a folder structure thae mimicks the /root dir on a clean install.

Therefore inside of /mnt/main/local/lib/hotfix/opensuse

is
 * /mnt/main/local/lib/hotfix/opensuse/usr/
 * /mnt/main/local/lib/hotfix/opensuse/usr/lib/
 * /mnt/main/local/lib/hotfix/opensuse/lib/

As of today the /mnt/main/local/lib/hotfix/opensuse/usr/lib/ dir consists of the following files.

-rwxr-xr-x. 1 root root    62K Feb 17 16:14 libgomp.so.1 -rwxr-xr-x. 1 root root   170K Feb 17 16:16 libpng14.so.14 -rwxr-xr-x. 1 root root    38K Feb 17 16:25 libltdl.so.7 -rwxr-xr-x. 1 root root   875K Feb 17 16:26 libasound.so.2 -rwxr-xr-x. 1 root root    19K Feb 17 16:27 libao.so.2 -rwxr-xr-x. 1 root root   344K Feb 17 16:30 libFLAC.so.8 -rwxr-xr-x. 1 root root    46K Feb 17 16:31 libgsm.so.1 -rwxr-xr-x. 1 root root   288K Feb 17 16:34 libpulse.so.0 -rwxr-xr-x. 1 root root    14K Feb 17 16:35 libpulse-simple.so.0 -rwxr-xr-x. 1 mcy59 cis790 122K Feb 18 17:42 libxcb.so.1.1.0 drwxr-xr-x. 3 root root   4.0K Feb 29 21:46 .. lrwxrwxrwx. 1 root root     15 Feb 29 22:05 libxcb.so.1 -> libxcb.so.1.1.0 drwxr-xr-x. 2 root root   4.0K Feb 29 22:05.

and the contents of /mnt/main/local/lib/hotfix/opensuse/lib/ are:

-rwxr-xr-x. 1 root root 74K Feb 29 21:44 libz.so.1

--- Fixing sox ---

In order for sox to locate the missing dependencies listed in the two above dirs symbolic links were used in the respective local dirs.

0 lrwxrwxrwx. 1 root root   56 Feb 29 21:55 libgomp.so.1 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libgomp.so.1 0 lrwxrwxrwx. 1 root root   58 Feb 29 21:56 libpnh14.so.14 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libpng14.so.14 0 lrwxrwxrwx. 1 root root   58 Feb 29 21:58 libpng14.so.14 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libpng14.so.14 0 lrwxrwxrwx. 1 root root   56 Feb 29 21:59 libltdl.so.7 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libltdl.so.7 0 lrwxrwxrwx. 1 root root   58 Feb 29 22:00 libasound.so.2 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libasound.so.2 0 lrwxrwxrwx. 1 root root   54 Feb 29 22:00 libao.so.2 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libao.so.2 0 lrwxrwxrwx. 1 root root   56 Feb 29 22:00 libFLAC.so.8 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libFLAC.so.8 0 lrwxrwxrwx. 1 root root   55 Feb 29 22:01 libgsm.so.1 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libgsm.so.1 0 lrwxrwxrwx. 1 root root   57 Feb 29 22:01 libpulse.so.0 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libpulse.so.0 4.0K lrwxrwxrwx. 1 root root   64 Feb 29 22:01 libpulse-simple.so.0 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libpulse-simple.so.0 0 lrwxrwxrwx. 1 root root   55 Feb 29 22:04 libxcb.so.1 -> /mnt/main/local/lib/hotfix/opensuse/usr/lib/libxcb.so.1
 * Symbolic links added to /usr/lib

0 lrwxrwxrwx. 1 root root  49 Feb 29 21:59 libz.so.1 -> /mnt/main/local/lib/hotfix/opensuse/lib/libz.so.1
 * Symbolic links added to /lib

--- Patching future systems ---

In order to future systems to be patched symbolic links can be used to patch directly to the same location as these linked system should already have /mnt/main/local mapped and mounted.

All 4 systems have been patched. As of today the systems needed only 1 file each to be linked. /usr/lib/libpng14.so.14

This file is created by creating a soft link to the hotfix dir. ln -s /mnt/main/local/lib/hotfix/opensuse/usr/lib/libpn14.so.14 /usr/lib/libpng14.so.14

Dependencies listed for sox /sbin/ldconfig /sbin/ldconfig libao.so.2 libao.so.2(64bit) libasound.so.2 libasound.so.2(64bit) libasound.so.2(ALSA_0.9) libasound.so.2(ALSA_0.9)(64bit) libasound.so.2(ALSA_0.9.0rc4) libasound.so.2(ALSA_0.9.0rc4)(64bit) libc.so.6(GLIBC_2.7) libc.so.6(GLIBC_2.7)(64bit) libFLAC.so.8 libFLAC.so.8(64bit) libgsm.so.1 libgsm.so.1(64bit) libltdl.so.7 libltdl.so.7(64bit) libm.so.6 libm.so.6(64bit) libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libm.so.6(GLIBC_2.2.5)(64bit) libogg.so.0 libogg.so.0(64bit) libpng12.so.0 libpng12.so.0(64bit) libpng12.so.0(PNG12_0) libpng12.so.0(PNG12_0)(64bit) libsamplerate.so.0 libsamplerate.so.0(64bit) libsamplerate.so.0(libsamplerate.so.0.0) libsamplerate.so.0(libsamplerate.so.0.0)(64bit) libsndfile.so.1 libsndfile.so.1(64bit) libsndfile.so.1(libsndfile.so.1.0) libsndfile.so.1(libsndfile.so.1.0)(64bit) libvorbis.so.0 libvorbis.so.0(64bit) libvorbisenc.so.2 libvorbisenc.so.2(64bit) libvorbisfile.so.3 libvorbisfile.so.3(64bit) libwavpack.so.1 libwavpack.so.1(64bit) libz.so.1 libz.so.1(64bit) rtld(GNU_HASH) rtld(GNU_HASH)