I am attempting to build the lin_tape driver on SLES11 SP1. My kernel release is kernel-default-2.6.32.13-0.4.1 and I have installed kernel-source-2.6.32.13-0.4.1. The lin_tape source was downloaded from IBM Fix Central, current release for SLES11 is lin_tape-1.38.0.
The errors received when executing 'rpmbuild --rebuild /usr/src/packages/SRPMS/lin_tape-1.38.0-1.src.rpm: Installing /usr/src/packages/SRPMS/lin_tape-1.38.0-1.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.48979 + umask 022 + cd /usr/src/packages/BUILD + cd /usr/src/packages/BUILD + rm -rf lin_tape-1.38.0 + tar -xf - + /usr/bin/gzip -dc /usr/src/packages/SOURCES/lin_tape-1.38.0.tgz + 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.88846 + umask 022 + cd /usr/src/packages/BUILD + /bin/rm -rf /var/tmp/lin_tape-1.38.0-1-root-root ++ dirname /var/tmp/lin_tape-1.38.0-1-root-root + /bin/mkdir -p /var/tmp + /bin/mkdir /var/tmp/lin_tape-1.38.0-1-root-root + cd lin_tape-1.38.0 ++ cut -f 1 -d - ++ echo s390x-suse-linux + p=s390x + '[' s390x == i386 ']' + '[' s390x == i586 ']' + '[' s390x == i686 ']' + '[' s390x == ppc64 ']' + '[' s390x == powerpc ']' + '[' s390x == s390 ']' + '[' s390x == s390x ']' + proc=zSeries + '[' s390x == ia64 ']' + '[' s390x == x86_64 ']' + cp -af lin_tape_359X_zSeries.ReadMe lin_tape_359X.ReadMe + cp -af lin_tape_Ultrium_zSeries.ReadMe lin_tape_Ultrium.ReadMe + make KERNEL=2.6.32.13-0.4-default PROC=s390x driver make -C /lib/modules/2.6.32.13-0.4-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.38.0 PWD=/usr/src/packages/BUILD/lin_tape-1.38.0 clean make[1]: Entering directory `/usr/src/linux-2.6.32.13-0.4-obj/s390x/default' make -C ../../../linux-2.6.32.13-0.4 O=/usr/src/linux-2.6.32.13-0.4-obj/s390x/default/. clean make[1]: Leaving directory `/usr/src/linux-2.6.32.13-0.4-obj/s390x/default' mkdir bldtmp make KERNEL=2.6.32.13-0.4-default compileclean lin_tape.ko make[1]: Entering directory `/usr/src/packages/BUILD/lin_tape-1.38.0' export PWD make -C /lib/modules/2.6.32.13-0.4-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.38.0 PWD=/usr/src/packages/BUILD/lin_tape-1.38.0 modules make[2]: Entering directory `/usr/src/linux-2.6.32.13-0.4-obj/s390x/default' make -C ../../../linux-2.6.32.13-0.4 O=/usr/src/linux-2.6.32.13-0.4-obj/s390x/default/. modules CC [M] /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.o /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_class_device_encryption_proxy_show’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:457: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_class_device_encryption_write_show’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:566: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_sernum_show’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:755: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:756: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_ww_node_name_show’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:798: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_ww_port_name_show’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:838: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_primary_path_show’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:877: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:878: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_create_proc’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:2939: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:2956: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_register_class_device’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3733: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3741: error: ‘struct device’ has no member named ‘driver_data’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c: In function ‘lin_tape_set_initial_drv_values’: /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3894: error: ‘struct request_queue’ has no member named ‘max_hw_segments’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3894: warning: type defaults to ‘int’ in declaration of ‘_min1’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3894: error: ‘struct request_queue’ has no member named ‘max_hw_segments’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3894: error: ‘struct request_queue’ has no member named ‘max_phys_segments’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3894: warning: type defaults to ‘int’ in declaration of ‘_min2’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3894: error: ‘struct request_queue’ has no member named ‘max_phys_segments’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3911: error: ‘struct request_queue’ has no member named ‘max_sectors’ /usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.c:3913: error: ‘struct request_queue’ has no member named ‘max_sectors’ make[5]: *** [/usr/src/packages/BUILD/lin_tape-1.38.0/lin_tape_scsi_config.o] Error 1 make[4]: *** [_module_/usr/src/packages/BUILD/lin_tape-1.38.0] Error 2 make[3]: *** [sub-make] Error 2 make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.32.13-0.4-obj/s390x/default' make[1]: *** [lin_tape.ko] Error 2 make[1]: Leaving directory `/usr/src/packages/BUILD/lin_tape-1.38.0' make: *** [bldtmp/lin_tape-2.6.32.13-0.4-default.ko] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.88846 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.88846 (%build) Anyone been able to build successfully? Thanks. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/