delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/26/22:25:09

X-Spam-Check-By: sourceware.org
Message-ID: <4591B29F.BEA9C839@dessent.net>
Date: Tue, 26 Dec 2006 15:39:11 -0800
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Newbee problem at compile mtx scsi changer tool
References: <emreg3$ns3$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Pierre Bernhardt wrote:

> checking for scsi/scsi.h... no
> checking for scsi/scsi_ioctl.h... no
> checking for scsi/sg.h... no
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I think the problem comes from here...
> 
> [...]
>
> Could anybody help me to identify the missing or problem?

You already found the problem.  mtx expects to directly call a kernel
API that does not exist on Cygwin.  From the mtx FAQ file:

  Note that mtx 1.2 and above use the SCSI GENERIC interface on Linux,
  FreeBSD, and Solaris (at least). They do NOT use the tape device node.
  Please read the man page for directions.

This means there is no way this is going to work on Cygwin as there is
no such kernel API to call.  It would probably work if it used only the
tape device node, but it has been coded to specifically not work in that
way.

Note that there is already a Cygwin-specific "mt" package that you can
install through setup.exe that supports the basic tape operations but I
don't know if it will support autoloader-specific commands.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019