[sane-devel] SANE OS X 10.3 Install Problems

2003-11-24 Thread Mattias Ellert
Guy Brooker wrote:
 It's been a while since I've been able to concentrate on SANE, apologies for
 my absence.
 
 I added the OSX_ONLY_10_2_API and OSX_ONLY_10_1_API defines as I knew the
 old API was going to go, but didn't have time to test on Panther at the
 time.
 
 Could someone add a test to the config script ?

I installed 10.3 yesterday, and started working on the autoconf stuff.

Mattias

-- 


mattias.ell...@tsl.uu.se   tel: +46 18 471 32 58
http://www.tsl.uu.se/~ellert/  fax: +46 18 471 35 13





[sane-devel] SANE OS X 10.3 Install Problems

2003-11-24 Thread Phil Barrett
Randolph Fritz wrote:
 I think, probably, a better approach would be to have sanei_osx_SAM.c.
 But, the API is very new, and Apple plans on offering their own
 standard scanner driver (In later versions of Mac OS X, however, the
 mass storage stack will include support for other SCSI peripheral
 devices, such as scanners.), so it may be best to wait on that.

On a related note, OS X 10.3 introduced changes to the Image Capture
Architecture, making it TWAIN-like in its parameters, and included the new
EPSON Scanner driver. It's a step forward for users, but the fact that
only EPSON have shipped [OS X native] TWAIN or ICA scanner drivers means
there remains a big need for SANE on OS X.

The updated SDK was released on Friday:
http://developer.apple.com/sdk/index.html#ImageCapture

It should be pretty easy to bridge ICA and SANE, in either direction.

A SANE driver bridged to ICA underneath (to allow SANE apps to use ICA
drivers) would be of little use for scanning right now due to the EPSON-only
issue, but it might make more sense for digital cameras, for which there is
wide ICA support.

But an ICA driver bridged to SANE underneath would widen usability on OS X
considerably, by giving transparent (apart from discovery and
configuration) access to SANE-supported scanners through the Image Capture
application.

Phil




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-23 Thread Henning Meier-Geinitz
Hi,

On Fri, Nov 21, 2003 at 05:51:36PM +0100, Guy Brooker wrote:
 It's been a while since I've been able to concentrate on SANE, apologies for
 my absence.
 
 I added the OSX_ONLY_10_2_API and OSX_ONLY_10_1_API defines as I knew the
 old API was going to go, but didn't have time to test on Panther at the
 time.
 
 Could someone add a test to the config script ?

If you tell me for what I should test I can propse a test :-)

 The new API works fine in Panther (at least if it is compiled on Jaguar),
 and I've got a bit of extra code to handle the sense codes to submit to CVS,
 unless someone has added that already.
 
 I'll try and take a look at this over the weekend.

Ok. There are some open bugs for MacOS X on our bug tracking system:

https://alioth.debian.org/tracker/index.php?func=detailaid=300172group_id=1308atid=410366
https://alioth.debian.org/tracker/index.php?func=detailaid=300171group_id=1308atid=410366
https://alioth.debian.org/tracker/index.php?func=detailaid=300317group_id=1308atid=410366

If anyone of the MacOS X developers is intersted, I can add them to
the bug tracking system so MacOS X bugs can be assigned to them. If
you even want to fix them, you can also have cvs access :-)

See http://www.sane-project.org/cvs.html for how to get access.

Bye,
  Henning



[sane-devel] SANE OS X 10.3 Install Problems

2003-11-23 Thread Randolph Fritz
On Sun, Nov 23, 2003 at 02:34:40PM +0100, Henning Meier-Geinitz wrote:
 Hi,
 
 On Fri, Nov 21, 2003 at 08:52:38PM -0800, Randolph Fritz wrote:
  Would that this was that simple!  The new Mac OS X SCSI Architecture
  Model is misnamed; it is a grand unified transport layer, covering
  SCSI, USB (Storage), FireWire SBP2 and ATAPI.  So this may be the
  story for a lot of different scanners in 10.3 and later versions of Mac
  OS.  Or maybe not, depending on how many manufacturers adopt it.
  
  Perhaps it would be a good idea to start a
  sanei_osx_scsi_architecture_family file?
 
 And that would be #included in sanei_scsi.c? Otherwise we would need
 to link every backend to that object just for MacOS X. I don't think
 that that would make sense.
 

I think, probably, a better approach would be to have sanei_osx_SAM.c.
But, the API is very new, and Apple plans on offering their own
standard scanner driver (In later versions of Mac OS X, however, the
mass storage stack will include support for other SCSI peripheral
devices, such as scanners.), so it may be best to wait on that.

Meantime, I tried removing fork() from the SCSI driver on OS X (the
job has already been done for OS/2, so it was simple) and I still have
my scanner problem.  Bah!

Randolph

Ref:
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/MassStorage/01_About/index.html?http://developer.apple.com/documentation/DeviceDrivers/Conceptual/MassStorage/01_About/chapter_1_section_1.html




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-23 Thread Randolph Fritz
On Sun, Nov 23, 2003 at 02:38:07PM +0100, Henning Meier-Geinitz wrote:
 
 On Fri, Nov 21, 2003 at 05:51:36PM +0100, Guy Brooker wrote:
  
  It's been a while since I've been able to concentrate on SANE,
  apologies for my absence.
  
  I added the OSX_ONLY_10_2_API and OSX_ONLY_10_1_API defines as I knew the
  old API was going to go, but didn't have time to test on Panther at the
  time.
  
  Could someone add a test to the config script ?
 
 If you tell me for what I should test I can propse a test :-)
 

Darwin version 6 or higher, I think, would work.

Randolph



[sane-devel] SANE OS X 10.3 Install Problems

2003-11-23 Thread Henning Meier-Geinitz
Hi,
On Sun, Nov 23, 2003 at 12:30:51PM -0800, Randolph Fritz wrote:
  If you tell me for what I should test I can propse a test :-)
  
 
 Darwin version 6 or higher, I think, would work.

Ok, and how can I check for that version? Is there a C macro or can I
use some program (uname?)?

Bye,
  Henning



[sane-devel] SANE OS X 10.3 Install Problems

2003-11-23 Thread Randolph Fritz
On Sun, Nov 23, 2003 at 09:53:18PM +0100, Henning Meier-Geinitz wrote:
 Hi,
 On Sun, Nov 23, 2003 at 12:30:51PM -0800, Randolph Fritz wrote:
   If you tell me for what I should test I can propse a test :-)
   
  
  Darwin version 6 or higher, I think, would work.
 
 Ok, and how can I check for that version? Is there a C macro or can I
 use some program (uname?)?
 

uname -r will give that; but thinking it over, it might be better to
test for the old API by checking for the IOKit/IOCFPlugIn.h header,
and test for the new one by checking for
IOKit/scsi-commands/SCSICmds_INQUIRY_Definitions.h.

Randolph




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-21 Thread Randolph Fritz
On Thu, Nov 20, 2003 at 09:02:22AM -, Phil Barrett wrote:
  Well, I can't help because I don't have any MacOS X experience but
  maybe one of the OS X hackers can. So I quote everything and send it
  to sane-devel. Please reply to sane-devel, not to me personally.
 
   -DV_MAJOR=1 -DV_MINOR=0 -D_REENTRANT -g -O2 -W -Wall sanei_scsi.c
   sanei_scsi.c:210:35: IOKit/cdb/IOSCSILib.h: No such file or directory
 ...
 
 Simple enough: this header is an old API, which is not included in OS X 10.3
 (Panther).
 
 The code for the new API is in sanei_scsi.c already, so the solution is just
 to define OSX_ONLY_10_2_API somewhere.
 

Would that this was that simple!  The new Mac OS X SCSI Architecture
Model is misnamed; it is a grand unified transport layer, covering
SCSI, USB (Storage), FireWire SBP2 and ATAPI.  So this may be the
story for a lot of different scanners in 10.3 and later versions of Mac
OS.  Or maybe not, depending on how many manufacturers adopt it.

Perhaps it would be a good idea to start a
sanei_osx_scsi_architecture_family file?

Randolph




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-21 Thread Guy Brooker
It's been a while since I've been able to concentrate on SANE, apologies for
my absence.

I added the OSX_ONLY_10_2_API and OSX_ONLY_10_1_API defines as I knew the
old API was going to go, but didn't have time to test on Panther at the
time.

Could someone add a test to the config script ?

The new API works fine in Panther (at least if it is compiled on Jaguar),
and I've got a bit of extra code to handle the sense codes to submit to CVS,
unless someone has added that already.

I'll try and take a look at this over the weekend.

Cheers
Guy

 
On 20/11/03 10:02 am, Phil Barrett p...@cambridgeanimation.com wrote:

 Well, I can't help because I don't have any MacOS X experience but
 maybe one of the OS X hackers can. So I quote everything and send it
 to sane-devel. Please reply to sane-devel, not to me personally.
 
 -DV_MAJOR=1 -DV_MINOR=0 -D_REENTRANT -g -O2 -W -Wall sanei_scsi.c
 sanei_scsi.c:210:35: IOKit/cdb/IOSCSILib.h: No such file or directory
 ...
 
 Simple enough: this header is an old API, which is not included in OS X 10.3
 (Panther).
 
 The code for the new API is in sanei_scsi.c already, so the solution is just
 to define OSX_ONLY_10_2_API somewhere.
 
 It seems this wasn't defined before, so I suspect the code using the new API
 has to be considered untested and potentially buggy.
 
 (Note that it fails to compile using gcc 2.95 without some reorganisation of
 variable and function declarations in the new API code.)
 
 Phil
 




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-20 Thread Phil Barrett
 Well, I can't help because I don't have any MacOS X experience but
 maybe one of the OS X hackers can. So I quote everything and send it
 to sane-devel. Please reply to sane-devel, not to me personally.

  -DV_MAJOR=1 -DV_MINOR=0 -D_REENTRANT -g -O2 -W -Wall sanei_scsi.c
  sanei_scsi.c:210:35: IOKit/cdb/IOSCSILib.h: No such file or directory
...

Simple enough: this header is an old API, which is not included in OS X 10.3
(Panther).

The code for the new API is in sanei_scsi.c already, so the solution is just
to define OSX_ONLY_10_2_API somewhere.

It seems this wasn't defined before, so I suspect the code using the new API
has to be considered untested and potentially buggy.

(Note that it fails to compile using gcc 2.95 without some reorganisation of
variable and function declarations in the new API code.)

Phil




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-20 Thread Henning Meier-Geinitz
Hi,

On Thu, Nov 20, 2003 at 09:02:22AM -, Phil Barrett wrote:
 Simple enough: this header is an old API, which is not included in OS X 10.3
 (Panther).
 
 The code for the new API is in sanei_scsi.c already, so the solution is just
 to define OSX_ONLY_10_2_API somewhere.
 
 It seems this wasn't defined before, so I suspect the code using the new API
 has to be considered untested and potentially buggy.
 
 (Note that it fails to compile using gcc 2.95 without some reorganisation of
 variable and function declarations in the new API code.)

Thanks for the explanation. Patches and testers are welcome. I don't
think we should change that before 1.0.13, however. At least if there
are not some people who can test the changes.

Bye,
  Henning



[sane-devel] SANE OS X 10.3 Install Problems

2003-11-19 Thread Randolph Fritz
On Tue, Nov 18, 2003 at 08:59:54PM +0100, Henning Meier-Geinitz wrote:
 
 On Tue, Nov 18, 2003 at 11:05:49AM -0700, Erick Schmidt wrote:
  I tried the sane-backends in the snapshots directory per your link 
  below and received the same error:
 
 Well, I can't help because I don't have any MacOS X experience but
 maybe one of the OS X hackers can. So I quote everything and send it
 to sane-devel. Please reply to sane-devel, not to me personally.
 

The Mac OS X SCSI drivers are a work in progress.  Take a look at
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/WorkingWithSAM/WWS_Intro/chapter_1_section_1.html
for details.

Randolph




[sane-devel] SANE OS X 10.3 Install Problems

2003-11-18 Thread Henning Meier-Geinitz
Hi,

On Tue, Nov 18, 2003 at 11:05:49AM -0700, Erick Schmidt wrote:
 I tried the sane-backends in the snapshots directory per your link 
 below and received the same error:

Well, I can't help because I don't have any MacOS X experience but
maybe one of the OS X hackers can. So I quote everything and send it
to sane-devel. Please reply to sane-devel, not to me personally.

 -DV_MAJOR=1 -DV_MINOR=0 -D_REENTRANT -g -O2 -W -Wall sanei_scsi.c
 sanei_scsi.c:210:35: IOKit/cdb/IOSCSILib.h: No such file or directory
 sanei_scsi.c: In function `sanei_scsi_open':
 sanei_scsi.c:1168: warning: implicit declaration of function 
 `CreateGUIDFromDevName'
 sanei_scsi.c:1168: warning: assignment makes pointer from integer 
 without a cast
 sanei_scsi.c:849: warning: unused variable `real_dev'
 sanei_scsi.c: In function `sanei_scsi_cmd2_old_api':
 sanei_scsi.c:4914: error: `IOSCSIDeviceInterface' undeclared (first use 
 in this function)
 sanei_scsi.c:4914: error: (Each undeclared identifier is reported only 
 once
 sanei_scsi.c:4914: error: for each function it appears in.)
 sanei_scsi.c:4914: error: `scsiDeviceInterface' undeclared (first use 
 in this function)
 sanei_scsi.c:4915: error: `IOCDBCommandInterface' undeclared (first use 
 in this function)
 sanei_scsi.c:4915: error: `cdbCommandInterface' undeclared (first use 
 in this function)
 sanei_scsi.c:4916: error: `CDBInfo' undeclared (first use in this 
 function)
 sanei_scsi.c:4916: error: parse error before cdb
 sanei_scsi.c:4920: error: `SCSIResults' undeclared (first use in this 
 function)
 sanei_scsi.c:4920: error: parse error before results
 sanei_scsi.c:4931: error: `kIOSCSIDeviceClassName' undeclared (first 
 use in this function)
 sanei_scsi.c:4935: error: `kSCSIDevTypeScanner' undeclared (first use 
 in this function)
 sanei_scsi.c:4935: error: `kSCSIDevTypeProcessor' undeclared (first use 
 in this function)
 sanei_scsi.c:4939: error: parse error before kSCSIPropertyDeviceTypeID
 sanei_scsi.c:4954: error: parse error before kSCSIPropertyIOUnit
 sanei_scsi.c:4960: error: parse error before kSCSIPropertyTarget
 sanei_scsi.c:4966: error: parse error before kSCSIPropertyLun
 sanei_scsi.c:4971: warning: comparison between signed and unsigned
 sanei_scsi.c:4972: warning: comparison between signed and unsigned
 sanei_scsi.c:4973: warning: comparison between signed and unsigned
 sanei_scsi.c:4986: error: `kIOSCSIUserClientTypeID' undeclared (first 
 use in this function)
 sanei_scsi.c:4996: error: `kIOSCSIDeviceInterfaceID' undeclared (first 
 use in this function)
 sanei_scsi.c:5011: error: `kIOCDBCommandInterfaceID' undeclared (first 
 use in this function)
 sanei_scsi.c:5016: error: `cdb' undeclared (first use in this function)
 sanei_scsi.c:5044: error: `results' undeclared (first use in this 
 function)
 sanei_scsi.c: In function `sanei_scsi_find_devices_old_api':
 sanei_scsi.c:5084: error: `IOSCSIDeviceInterface' undeclared (first use 
 in this function)
 sanei_scsi.c:5084: error: `scsiDeviceInterface' undeclared (first use 
 in this function)
 sanei_scsi.c:5085: error: `SCSIInquiry' undeclared (first use in this 
 function)
 sanei_scsi.c:5085: error: parse error before inquiry
 sanei_scsi.c:5096: error: `kIOSCSIDeviceClassName' undeclared (first 
 use in this function)
 sanei_scsi.c:5100: error: `kSCSIDevTypeScanner' undeclared (first use 
 in this function)
 sanei_scsi.c:5100: error: `kSCSIDevTypeProcessor' undeclared (first use 
 in this function)
 sanei_scsi.c:5104: error: parse error before kSCSIPropertyDeviceTypeID
 sanei_scsi.c:5119: error: parse error before kSCSIPropertyIOUnit
 sanei_scsi.c:5125: error: parse error before kSCSIPropertyTarget
 sanei_scsi.c:5131: error: parse error before kSCSIPropertyLun
 sanei_scsi.c:5140: error: `kIOSCSIUserClientTypeID' undeclared (first 
 use in this function)
 sanei_scsi.c:5149: error: `kIOSCSIDeviceInterfaceID' undeclared (first 
 use in this function)
 sanei_scsi.c:5158: error: `inquiry' undeclared (first use in this 
 function)
 sanei_scsi.c:5063: warning: unused parameter `findtype'
 sanei_scsi.c:5063: warning: unused parameter `findbus'
 sanei_scsi.c:5064: warning: unused parameter `findchannel'
 sanei_scsi.c:5064: warning: unused parameter `findid'
 sanei_scsi.c: At top level:
 sanei_scsi.c:5267: warning: type mismatch with previous implicit 
 declaration
 sanei_scsi.c:1168: warning: previous implicit declaration of 
 `CreateGUIDFromDevName'
 sanei_scsi.c:5267: warning: `CreateGUIDFromDevName' was previously 
 implicitly declared to return `int'
 sanei_scsi.c: In function `CreateDevNameFromGUID':
 sanei_scsi.c:5311: warning: initialization discards qualifiers from 
 pointer target type
 sanei_scsi.c: In function `ExecuteSCSITask':
 sanei_scsi.c:5397: warning: int format, long unsigned int arg (arg 3)
 sanei_scsi.c:5411: warning: int format, size_t arg (arg 3)
 sanei_scsi.c:5468: warning: long int format, different type arg (arg 3)
 sanei_scsi.c: In function `sanei_scsi_cmd2_stuc_api':
 

[sane-devel] SANE OS X 10.3 Install Problems

2003-11-16 Thread Henning Meier-Geinitz
Hi,

On Sat, Nov 15, 2003 at 08:06:31PM -0700, Erick Schmidt wrote:
 gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
 -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d 
 -DPATH_SANE_DATA_DIR=/usr/local/share  -DV_MAJOR=1 -DV_MINOR=0 
 -g -O2 -W -Wall sanei_scsi.c
 sanei_scsi.c:187:34: IOKit/cdb/IOSCSILib.h: No such file or directory

That's the actual error. It can't find that include file. There have
been some changes in the development version of sane-backends in this
respect but I don't know if they really fix that problem. Could you
please try a development snapshot from:
http://www.sane-project.org/snapshots/

Bye,
  Henning



[sane-devel] SANE OS X 10.3 Install Problems

2003-11-08 Thread Henning Meier-Geinitz
Hi,

On Fri, Nov 07, 2003 at 01:15:21PM -0700, Erick Schmidt wrote:
 Has anyone been able to successfully install SANE on a OS X box running 
 10.3 (Panther)? I tried installing the new version of SANE 1.0.13 and 
 SANE 1.0.12 and received the following error:
 
 
 ...
 sanei_scsi.c: In function `sanei_scsi_req_wait':
 sanei_scsi.c:5935: warning: unused parameter `id'
 sanei_scsi.c: In function `sanei_scsi_req_flush_all_extended':
 sanei_scsi.c:5944: warning: unused parameter `fd'
 make[1]: *** [sanei_scsi.o] Error 1
 make: *** [all-recursive] Error 1
 g5:/build/sane-backends-1.0.13-pre1 root#

Please show us some more context. There is no error at all, only two
warnings. I guess the actual error was some lines above the ones you
showed us.

There is one ChangeLog entry that may be relevant:

* README.darwin sanei/sanei_scsi.c: Added support for the
  MacOS X IOKit SCSI Architecture Model API. Added support for
  Firewire scanners. Patch from Guy Brooker
  guy_broo...@mac.com.


1.0.12 works?

Bye,
  Henning



[sane-devel] SANE OS X 10.3 Install Problems

2003-11-07 Thread Erick Schmidt
Hi,

Has anyone been able to successfully install SANE on a OS X box running 
10.3 (Panther)? I tried installing the new version of SANE 1.0.13 and 
SANE 1.0.12 and received the following error:


...
sanei_scsi.c: In function `sanei_scsi_req_wait':
sanei_scsi.c:5935: warning: unused parameter `id'
sanei_scsi.c: In function `sanei_scsi_req_flush_all_extended':
sanei_scsi.c:5944: warning: unused parameter `fd'
make[1]: *** [sanei_scsi.o] Error 1
make: *** [all-recursive] Error 1
g5:/build/sane-backends-1.0.13-pre1 root#

Thanks for the help.