Centos 6 dedicated server - Icecast RPM build error

Read 8017 times
Hi can anyone point me in the right direction to get icecast installed on a fully up to date Centos 6 server?

One error that first came up was a missing directory "redhat" so I just created it within  /usr/src/redhat as per the message now it still fails to build a valid RPM file as shown below.

SNIP:


 /usr/bin/install -c -m 644 'icecast_shoutcast_compat.xml.dist' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/doc/icecast_shoutcast_compat.xml.dist'
 /usr/bin/install -c -m 644 'icecast_urlauth.xml.dist' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/doc/icecast_urlauth.xml.dist'
make  install-data-hook
make[3]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/conf'
/bin/sh ../mkinstalldirs /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/etc
mkdir -p -- /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/etc
test -f /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/etc/icecast.xml || \
        /usr/bin/install -c -m 644 icecast.xml.dist /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/etc/icecast.xml
make[3]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/conf'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/conf'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/conf'
Making install in debian
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/debian'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/debian'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/debian'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/debian'
Making install in doc
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/doc'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/doc/icecast" || /bin/mkdir -p "/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast"
 /usr/bin/install -c -m 644 'index.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/index.html'
 /usr/bin/install -c -m 644 'icecast2_admin.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_admin.html'
 /usr/bin/install -c -m 644 'icecast2_basicsetup.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_basicsetup.html'
 /usr/bin/install -c -m 644 'icecast2_config_file.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_config_file.html'
 /usr/bin/install -c -m 644 'icecast2_faq.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_faq.html'
 /usr/bin/install -c -m 644 'icecast2_glossary.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_glossary.html'
 /usr/bin/install -c -m 644 'icecast2_introduction.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_introduction.html'
 /usr/bin/install -c -m 644 'icecast2_relay.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_relay.html'
 /usr/bin/install -c -m 644 'icecast2_stats.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_stats.html'
 /usr/bin/install -c -m 644 'icecast2_win32.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_win32.html'
 /usr/bin/install -c -m 644 'icecast2_yp.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_yp.html'
 /usr/bin/install -c -m 644 'icecast2_listenerauth.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_listenerauth.html'
 /usr/bin/install -c -m 644 'icecast2_changes.html' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/icecast2_changes.html'
 /usr/bin/install -c -m 644 'listener_auth1.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/listener_auth1.jpg'
 /usr/bin/install -c -m 644 'listener_auth2.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/listener_auth2.jpg'
 /usr/bin/install -c -m 644 'listener_auth3.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/listener_auth3.jpg'
 /usr/bin/install -c -m 644 'masterslave.png' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/masterslave.png'
 /usr/bin/install -c -m 644 'relay.png' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/relay.png'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/doc'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/doc'
Making install in web
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/web'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/web'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/icecast/web" || /bin/mkdir -p "/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web"
 /usr/bin/install -c -m 644 'status.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/status.xsl'
 /usr/bin/install -c -m 644 'status2.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/status2.xsl'
 /usr/bin/install -c -m 644 'corner_bottomleft.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/corner_bottomleft.jpg'
 /usr/bin/install -c -m 644 'corner_bottomright.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/corner_bottomright.jpg'
 /usr/bin/install -c -m 644 'corner_topleft.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/corner_topleft.jpg'
 /usr/bin/install -c -m 644 'corner_topright.jpg' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/corner_topright.jpg'
 /usr/bin/install -c -m 644 'icecast.png' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/icecast.png'
 /usr/bin/install -c -m 644 'key.gif' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/key.gif'
 /usr/bin/install -c -m 644 'style.css' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/style.css'
 /usr/bin/install -c -m 644 'auth.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/auth.xsl'
 /usr/bin/install -c -m 644 'server_version.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/server_version.xsl'
 /usr/bin/install -c -m 644 'tunein.png' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/tunein.png'
 /usr/bin/install -c -m 644 'key.png' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/web/key.png'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/web'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/web'
Making install in admin
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/admin'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/admin'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/icecast/admin" || /bin/mkdir -p "/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin"
 /usr/bin/install -c -m 644 'listclients.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/listclients.xsl'
 /usr/bin/install -c -m 644 'listmounts.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/listmounts.xsl'
 /usr/bin/install -c -m 644 'moveclients.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/moveclients.xsl'
 /usr/bin/install -c -m 644 'response.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/response.xsl'
 /usr/bin/install -c -m 644 'stats.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/stats.xsl'
 /usr/bin/install -c -m 644 'manageauth.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/manageauth.xsl'
 /usr/bin/install -c -m 644 'updatemetadata.xsl' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/icecast/admin/updatemetadata.xsl'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/admin'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/admin'
Making install in win32
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32'
Making install in res
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32/res'
make[3]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32/res'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32/res'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32/res'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32'
make[3]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/win32'
Making install in examples
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/examples'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2/examples'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/examples'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2/examples'
make[1]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2'
make[2]: Entering directory `/root/rpmbuild/BUILD/icecast-2.3.2'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/doc/icecast" || /bin/mkdir -p "/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast"
 /usr/bin/install -c -m 644 'README' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/README'
 /usr/bin/install -c -m 644 'AUTHORS' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/AUTHORS'
 /usr/bin/install -c -m 644 'COPYING' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/COPYING'
 /usr/bin/install -c -m 644 'NEWS' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/NEWS'
 /usr/bin/install -c -m 644 'TODO' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/TODO'
 /usr/bin/install -c -m 644 'ChangeLog' '/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast/ChangeLog'
make[2]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2'
make[1]: Leaving directory `/root/rpmbuild/BUILD/icecast-2.3.2'
+ rm -rf /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: icecast-2.3.2-0.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.AMiiSX
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd icecast-2.3.2
+ DOCDIR=/root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ export DOCDIR
+ rm -rf /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ /bin/mkdir -p /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ cp -pr README AUTHORS COPYING NEWS TODO ChangeLog /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ cp -pr doc/icecast2_admin.html doc/icecast2_basicsetup.html doc/icecast2_changes.html doc/icecast2_config_file.html doc/icecast2_faq.html doc/icecast2_glossary.html doc/icecast2_introduction.html doc/icecast2_listenerauth.html doc/icecast2_relay.html doc/icecast2_stats.html doc/icecast2_win32.html doc/icecast2_yp.html doc/index.html doc/index_win32.html doc/win32_section1.html doc/win32_section2.html doc/win32_section3.html /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ cp -pr doc/listener_auth1.jpg doc/listener_auth2.jpg doc/listener_auth3.jpg doc/stats1.jpg doc/windowtitle.jpg /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ cp -pr doc/style.css /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64/usr/share/doc/icecast-2.3.2
+ exit 0
Provides: config(icecast) = 2.3.2-0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libcurl.so.4()(64bit) libm.so.6()(64bit) libogg.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libspeex.so.1()(64bit) libtheora.so.0()(64bit) libtheora.so.0(libtheora.so.1.0)(64bit) libvorbis.so.0()(64bit) libxml2.so.2()(64bit) libxml2.so.2(LIBXML2_2.4.30)(64bit) libxslt.so.1()(64bit) libxslt.so.1(LIBXML2_1.0.11)(64bit) libxslt.so.1(LIBXML2_1.0.18)(64bit) libz.so.1()(64bit) rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64
Wrote: /root/rpmbuild/RPMS/x86_64/icecast-2.3.2-0.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.eeRWKH
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd icecast-2.3.2
+ '[' /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/icecast-2.3.2-0.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.udaAQz
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf icecast-2.3.2
+ exit 0
buildrpm did not create a valid RPM file; check your rpmbuild configuration
Installer exited with error, aborting

END SNIP

Many thanks
Try option "from source" it works for me :)

/usr/local/centovacast/sbin/update --add icecast --icecast-fromsrc
Way to go Headshaker ;D

Top stuff worked like a charm now if only I had given that a thought myself  ::)

Thank you very much for a great working suggestion.