home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22445 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!tik.vtt.fi!tik.vtt.fi!makisara
  2. From: makisara@vtinsx.ins.vtt.fi (Kai Makisara)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Compiling SCSI tape mt utility?
  5. Date: 2 Jan 93 17:43:26
  6. Organization: Technical Research Centre, Instrument Lab., Espoo, Finland
  7. Lines: 45
  8. Message-ID: <MAKISARA.93Jan2174326@vtinsx.vtt.fi>
  9. References: <C071x9.Csq@nmrdc1.nmrdc.nnmc.navy.mil>
  10. NNTP-Posting-Host: vtinsx.ins.vtt.fi
  11. In-reply-to: dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil's message of 1 Jan 93 21:19:55 GMT
  12.  
  13. In article <C071x9.Csq@nmrdc1.nmrdc.nnmc.navy.mil> dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci) writes:
  14.    Hello,
  15.  
  16.      Question about SCSI tape driver from tsx-11.mit.edu /pub/linux/ALPHA/scsi.
  17.  
  18.      Regarding the file "mtio.h", I see there is one in both
  19.  
  20.        /usr/src/linux/include/linux    AND
  21.        /usr/src/tape                        (from /pub/linux/ALPHA/scsi).
  22.  
  23.    I am using 0.99pl1 Linux WITH tape drivers included in the kernel.  I just
  24.    want to get mt and tapetest working.  Is it correct to change:
  25.  
  26.      #include <sys/mtio.h>
  27.  
  28.    to
  29.  
  30.      #include <sys/mtio.h>      <--- first include the one from Linux source
  31.      #include "mtio.h"          <--- then include one from /pub/linux/ALPHA/scsi
  32.  
  33.    in the files mt.c and tapetest.c???
  34.  
  35. Just ignore the mtio.h (and ioctl.h) in /usr/src/tape if you have recent
  36. Linux (0.99 is certainly new enough) and libc 4.2. They contain all of the
  37. necessary definitions. If you have <linux/mtio.h> and <linux/ioctl.h> but
  38. not libc 4.2, you need to add <sys/mtio.h> which includes <linux/mtio.h>
  39. and add #include <linux/ioctl.h> to <sys/ioctl.h>. If your Linux is older
  40. you should use the files in /usr/src/tape (or upgrade Linux)
  41.  
  42.    Finally got enough $$$ for SCSI tape and would hate to do something as
  43.    stupid as screwing up the include files!  Ideas anyone? 
  44.  
  45.  
  46.    -- 
  47.    ===========================================================================
  48.      phil perucci      | "Any opinions expressed are solely my own views and 
  49.      ssb1pzp@digex.com |  do not reflect the position of any organization"
  50.    ===========================================================================
  51.  
  52.     Kai
  53. --
  54. DISCLAIMER: The views expressed here are mine and may not always
  55. coincide with the views of my employer.
  56.  
  57. *  Kai Makisara                *  email Kai.Makisara@vtt.fi    *
  58.