problem building lin_tape drive on SLES 11

Hello,

I am new to this site - hoping someone can help with this issue.

SUSE Build:

uname -a

Linux tsm1 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 x86_64 x86_64 GNU/Linux

I’m trying to build the lin_tape (IBM tape) driver. According to instructions, I’m running the command below and getting the errors shown:

rpmbuild --rebuild lin_tape-2.5.0-1.src.rpm

Installing lin_tape-2.5.0-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.93338

  • umask 022
  • cd /usr/src/packages/BUILD
  • cd /usr/src/packages/BUILD
  • rm -rf lin_tape-2.5.0
  • /usr/bin/gzip -dc /usr/src/packages/SOURCES/lin_tape-2.5.0.tgz
  • tar -xf -
  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
  • cd lin_tape-2.5.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.93338
  • umask 022
  • cd /usr/src/packages/BUILD
  • /bin/rm -rf /var/tmp/lin_tape-2.5.0-1-root-root
    ++ dirname /var/tmp/lin_tape-2.5.0-1-root-root
  • /bin/mkdir -p /var/tmp
  • /bin/mkdir /var/tmp/lin_tape-2.5.0-1-root-root
  • cd lin_tape-2.5.0
    ++ echo x86_64-suse-linux
    ++ 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=3.0.13-0.27-default PROC=x86_64 driver
    make: Nothing to be done for `driver’.
  • exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.93338
  • umask 022
  • cd /usr/src/packages/BUILD
  • cd lin_tape-2.5.0
  • rm -rf /var/tmp/lin_tape-2.5.0-1-root-root
  • install -D -m 644 bldtmp/lin_tape-3.0.13-0.27-default.ko /var/tmp/lin_tape-2.5.0-1-root-root/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/lin_tape.ko
    install: cannot stat `bldtmp/lin_tape-3.0.13-0.27-default.ko’: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.93338 (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93338 (%install)

I have the following kernel packages installed:

rpm -qa|grep kernel

kernel-trace-devel-3.0.101-0.7.17.1
kernel-default-3.0.13-0.27.1
kernel-default-devel-3.0.101-0.7.17.1
kernel-firmware-20110923-0.7.64
linux-kernel-headers-2.6.32-1.4.13
kernel-source-3.0.101-0.7.17.1
kernel-syms-3.0.101-0.7.17.1
kernel-xen-devel-3.0.101-0.7.17.1
kernel-default-base-3.0.13-0.27.1

Any help, hints, or suggestions would be greatly appreciated.

Thanks in advance

gobarr1,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team
http://forums.suse.com

Hi gobarr1,

while during my first look at your message, I couldn’t spot the cause of the “+ make KERNEL=3.0.13-0.27-default PROC=x86_64 driver … make: Nothing to be done for `driver’.” message, a more detailed look might reveal the true cause:

[QUOTE]I have the following kernel packages installed:

rpm -qa|grep kernel

kernel-trace-devel-3.0.101-0.7.17.1
kernel-default-3.0.13-0.27.1
kernel-default-devel-3.0.101-0.7.17.1
kernel-firmware-20110923-0.7.64
linux-kernel-headers-2.6.32-1.4.13
kernel-source-3.0.101-0.7.17.1
kernel-syms-3.0.101-0.7.17.1
kernel-xen-devel-3.0.101-0.7.17.1
kernel-default-base-3.0.13-0.27.1[/QUOTE]

While you have installed (and are running) the kernel “3.0.13-0.27-default”, you have installed the kernel sources for “3.0.101-0.7.17.1” - this doesn’t match, the auto-detection within the build script of the driver RPM thus is unable to build properly.

Compiling the driver for 3.0.101 usually won’t allow you to run it on 3.0.13, so you better make sure you’re compiling for the right version. If you’re trying to cross-compile (on a different machine than the future machine the driver will be loaded), you’ll need to tell the script inside the RPM to compile for 3.0.101.

Regards,
Jens