Installing device driver for TSM library


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Installing device driver for TSM library
# 1  
Old 06-01-2010
Installing device driver issue

I am installing an lin_tape-1.38.0-1.src.rpm file but it won't install

Linux version
Linux 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:41:04 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

but I am getting issues when installing

Code:
[root@ DeviceDriver]# rpmbuild --rebuild lin_tape-1.38.0-1.src.rpm
Installing lin_tape-1.38.0-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.54754
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf lin_tape-1.38.0
+ /bin/gzip -dc /usr/src/redhat/SOURCES/lin_tape-1.38.0.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-1.38.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.63815
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd lin_tape-1.38.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 == 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-164.el5xen PROC=x86_64 driver
make -C /lib/modules/2.6.18-164.el5xen/build SUBDIRS=/usr/src/redhat/BUILD/lin_tape-1.38.0 PWD=/usr/src/redhat/BUILD/lin_tape-1.38.0 clean
make: *** /lib/modules/2.6.18-164.el5xen/build: No such file or directory.  Stop.
make: *** [clean] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.63815 (%build)


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


/var/tmp/rpm-tmp.63815 

rpm-tmp.63815 File

Code:
[root@srv-tsm-of DeviceDriver]# cat /var/tmp/rpm-tmp.63815
#!/bin/sh

  RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
  RPM_BUILD_DIR="/usr/src/redhat/BUILD"
  RPM_OPT_FLAGS="-O2 -g -m64 -mtune=generic"
  RPM_ARCH="x86_64"
  RPM_OS="linux"
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR="/usr/share/doc"
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME="lin_tape"
  RPM_PACKAGE_VERSION="1.38.0"
  RPM_PACKAGE_RELEASE="1"
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  RPM_BUILD_ROOT="/var/tmp/lin_tape-1.38.0-1-root-root"
  export RPM_BUILD_ROOT

  PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
  export PKG_CONFIG_PATH

  set -x
  umask 022
  cd "/usr/src/redhat/BUILD"
cd 'lin_tape-1.38.0'
p=`echo $MACHTYPE|cut -f 1 -d '-'`
( [ $p == "i386" ] || [ $p == "i586" ] || [ $p == "i686" ] ) && proc="Intel"
( [ $p == "ppc64" ] || [ $p == "powerpc" ] ) && proc="pSeries"
( [ $p == "s390" ] ) && proc="zSeries"
( [ $p == "s390x" ] ) && proc="zSeries"
( [ $p == "ia64" ] ) && proc="Intel"
( [ $p == "x86_64" ] ) && proc="AMD"
cp -af lin_tape_359X_${proc}.ReadMe lin_tape_359X.ReadMe
cp -af lin_tape_Ultrium_${proc}.ReadMe lin_tape_Ultrium.ReadMe

make KERNEL=2.6.18-164.el5xen PROC=$p driver

exit 0[root@srv-tsm-of DeviceDriver]#

any idea how to solve this?

thanks a lot

Last edited by karlochacon; 06-01-2010 at 02:40 PM..
# 2  
Old 06-01-2010
From the look of it, I'd say you're missing the necessary kernel headers & build utilities. Run
Code:
yum install kernel-devel

and try again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Device driver programming

I want to work one day as a device driver programmer, OS I'm in love is Solaris :D I am learning C in my free time which I don't have because college took my life and I need to study to pass. In college we work in C++ / Java. These languages aren't inteded for device driver programming , saying... (0 Replies)
Discussion started by: solaris_user
0 Replies

2. Programming

regarding device driver

Hi All, I have a device driver that uses UARTserial port to write/read to-from a device. That device driver is working fine on FC3 machine( kernel version 2.6.12)... Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Discussion started by: rajuprade
0 Replies

3. UNIX for Advanced & Expert Users

help regarding device driver

Hi All, I have a device driver that uses UARTserial port to write/read to-from a device. That device driver is working fine on FC3 machine( kernel version 2.6.12)... Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Discussion started by: rajuprade
0 Replies

4. Solaris

SUNWglmr -- rasctrl environment monitoring driver for i2c or SCSI device driver ?

I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
Discussion started by: roygoodwin
1 Replies
Login or Register to Ask a Question