From: makisara@vtinsx.ins.vtt.fi (Kai Makisara) Subject: Re: Compiling SCSI tape mt utility? Date: 2 Jan 1993 17:43:26
In article <C071x9.Csq@nmrdc1.nmrdc.nnmc.navy.mil> dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci) writes:
Hello,
Question about SCSI tape driver from tsx-11.mit.edu /pub/linux/ALPHA/scsi.
Regarding the file "mtio.h", I see there is one in both
/usr/src/linux/include/linux AND
/usr/src/tape (from /pub/linux/ALPHA/scsi).
I am using 0.99pl1 Linux WITH tape drivers included in the kernel. I just
want to get mt and tapetest working. Is it correct to change:
#include <sys/mtio.h>
to
#include <sys/mtio.h> <--- first include the one from Linux source
#include "mtio.h" <--- then include one from /pub/linux/ALPHA/scsi
in the files mt.c and tapetest.c???
Just ignore the mtio.h (and ioctl.h) in /usr/src/tape if you have recent
Linux (0.99 is certainly new enough) and libc 4.2. They contain all of the
necessary definitions. If you have <linux/mtio.h> and <linux/ioctl.h> but
not libc 4.2, you need to add <sys/mtio.h> which includes <linux/mtio.h>
and add #include <linux/ioctl.h> to <sys/ioctl.h>. If your Linux is older
you should use the files in /usr/src/tape (or upgrade Linux)
Finally got enough $$$ for SCSI tape and would hate to do something as
stupid as screwing up the include files! Ideas anyone?
--
===========================================================================
phil perucci | "Any opinions expressed are solely my own views and
ssb1pzp@digex.com | do not reflect the position of any organization"
===========================================================================
Kai