Why does `rpmbuild` of IBM Tivoli Storage Manager sources fail with errors?
Issue
-
Trying to build
rpm
fromlin_tape-1.67.0-1.src.rpm
which was provided by IBM. Its failing with the following errors.# rpmbuild --rebuild lin_tape-1.67.0-1.src.rpm Installing lin_tape-1.67.0-1.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.91677 + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf lin_tape-1.67.0 + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/lin_tape-1.67.0.tgz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd lin_tape-1.67.0 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.91677 + umask 022 + cd /usr/src/redhat/BUILD + cd lin_tape-1.67.0 ++ echo x86_64-redhat-linux-gnu ++ cut -f 1 -d - + p=x86_64 + '[' x86_64 == i386 ']' + '[' x86_64 == i586 ']' + '[' x86_64 == i686 ']' + '[' x86_64 == ppc64 ']' + '[' x86_64 == powerpc ']' + '[' x86_64 == powerpc64 ']' + '[' x86_64 == s390 ']' + '[' x86_64 == s390x ']' + '[' x86_64 == ia64 ']' + '[' x86_64 == x86_64 ']' + proc=AMD + cp -af lin_tape_359X_AMD.ReadMe lin_tape_359X.ReadMe + cp -af lin_tape_Ultrium_AMD.ReadMe lin_tape_Ultrium.ReadMe + make KERNEL=2.6.18-308.el5 PROC=x86_64 driver make -C /lib/modules/2.6.18-308.el5/build SUBDIRS=/usr/src/redhat/BUILD/lin_tape-1.67.0 PWD=/usr/src/redhat/BUILD/lin_tape-1.67.0 clean make[1]: Entering directory `/lib/modules/2.6.18-308.el5/build' make[1]: *** No rule to make target `clean'. Stop. make[1]: Leaving directory `/lib/modules/2.6.18-308.el5/build' make: *** [clean] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.91677 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.91677 (%build)
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.