[sane-devel] Compiling SANE backends on Mac OS X 10.1.5
David Alan Hjelle
dahjelle at yahoo.com
Tue Jun 3 05:30:00 BST 2003
Hello.
I've been trying to get my Microtek SlimScan C6 cheap-o scanner to work
under Mac OS X for a while now, and just recently ran across SANE. I
figure I should be able to use SANE with the GIMP, which I use somewhat
regularly.
I was trying to compile the lastest CVS snapshot (from June 2, 2003) of
SANE backends, but I ran into some problems.
./configure ran no problem.
make, however, eventually gave me the following errors (Or, at least,
these are the errors deaing with the sanei_scsi.c file that seemed to
be the cause for the compilation problem. I think everything else was
just warnings. Of course, what do I know? I'm only just teaching myself
C programming and have only had experience in VB and Java <shrug>.):
cc -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 -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-pedantic -ansi sanei_scsi.c
sanei_scsi.c:4444: illegal statement, missing `;' after `io_object_t'
sanei_scsi.c:4446: illegal expression, found `int'
sanei_scsi.c:4452: illegal expression, found `int'
sanei_scsi.c:4454: illegal statement, missing `;' after `CFNumberRef'
sanei_scsi.c:4460: illegal statement, missing `;' after `io_iterator_t'
sanei_scsi.c:4466: illegal statement, missing `;' after `io_object_t'
sanei_scsi.c:4476: illegal statement, missing `;' after `CFNumberRef'
sanei_scsi.c:4480: illegal expression, found `int'
sanei_scsi.c:4483: illegal statement, missing `;' after `CFNumberRef'
sanei_scsi.c:4487: illegal expression, found `int'
sanei_scsi.c:4503: illegal statement, missing `;' after `SInt32'
sanei_scsi.c:4512: illegal statement, missing `;' after `HRESULT'
sanei_scsi.c:4536: illegal statement, missing `;' after `CDBInfo'
sanei_scsi.c:4540: illegal statement, missing `;' after
`IOVirtualRange'
sanei_scsi.c:4541: illegal statement, missing `;' after `UInt32'
sanei_scsi.c:4542: illegal statement, missing `;' after `Boolean'
sanei_scsi.c:4559: illegal statement, missing `;' after `SCSIResults'
sanei_scsi.c:4560: illegal statement, missing `;' after `UInt32'
sanei_scsi.c:4595: illegal expression, found `int'
sanei_scsi.c:4601: illegal expression, found `int'
sanei_scsi.c:4603: illegal statement, missing `;' after `CFNumberRef'
sanei_scsi.c:4609: illegal statement, missing `;' after `io_iterator_t'
sanei_scsi.c:4615: illegal statement, missing `;' after `io_object_t'
sanei_scsi.c:4625: illegal statement, missing `;' after `CFNumberRef'
sanei_scsi.c:4629: illegal expression, found `int'
sanei_scsi.c:4632: illegal statement, missing `;' after `CFNumberRef'
sanei_scsi.c:4636: illegal expression, found `int'
sanei_scsi.c:4641: illegal statement, missing `;' after `SInt32'
sanei_scsi.c:4651: illegal statement, missing `;' after `HRESULT'
sanei_scsi.c:4664: illegal statement, missing `;' after `SCSIInquiry'
sanei_scsi.c:4665: illegal statement, missing `;' after `UInt32'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from /usr/include/machine/types.h:30,
from /usr/include/sys/types.h:70,
from ../include/sane/config.h:444,
from sanei_scsi.c:47:
/usr/include/ppc/types.h:75: warning: ANSI C does not support `long
long'
/usr/include/ppc/types.h:76: warning: ANSI C does not support `long
long'
In file included from sanei_scsi.c:47:
../include/sane/config.h:445: warning: ANSI C forbids const or volatile
functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:27,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:5,
from sanei_scsi.c:184:
/usr/include/stdint.h:68: warning: ANSI C does not support `long long'
/usr/include/stdint.h:69: warning: ANSI C does not support `long long'
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:32,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:5,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:120:
warning: ANSI C does not support `long long'
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:121:
warning: ANSI C does not support `long long'
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:291:
warning: function declaration isn't a prototype
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:292:
warning: function declaration isn't a prototype
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:6,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:346:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:7,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h:63:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:35,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:8,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:40:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:11,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:36,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:8,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:516:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:36,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:8,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:89:
warning: ANSI C restricts enumerator values to range of `int'
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:232:
warning: ANSI C forbids const or volatile functions
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:235:
warning: ANSI C forbids const or volatile functions
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:449:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:14,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h:64:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h:166:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:40,
from sanei_scsi.c:184:
/usr/include/math.h:191: warning: function declaration isn't a
prototype
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:63,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h:209:
warning: ANSI C forbids const or volatile functions
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:66,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:
In function `CFSwapInt16':
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:40:
`asm' undeclared (first use in this function)
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:40:
(Each undeclared identifier is reported only once
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:40:
for each function it appears in.)
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:40:
parse error before `volatile'
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:33:
warning: unused parameter `arg'
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:
In function `CFSwapInt32':
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:64:
`asm' undeclared (first use in this function)
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:64:
parse error before `volatile'
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h:57:
warning: unused parameter `arg'
In file included from /usr/include/mach/machine/vm_types.h:27,
from /usr/include/mach/port.h:65,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h:66,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h:10,
from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:72,
from sanei_scsi.c:184:
/usr/include/mach/ppc/vm_types.h: At top level:
/usr/include/mach/ppc/vm_types.h:181: warning: ANSI C does not support
`long long'
In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:82,
from sanei_scsi.c:184:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:171:
warning: ANSI C forbids const or volatile functions
In file included from /usr/include/mach/memory_object_types.h:68,
from /usr/include/mach/mach_types.h:69,
from
/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:38,
from sanei_scsi.c:185:
/usr/include/mach/vm_types.h:34: warning: ANSI C does not support `long
long'
In file included from /usr/include/mach/mach_types.h:69,
from
/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:38,
from sanei_scsi.c:185:
/usr/include/mach/memory_object_types.h:73: warning: ANSI C does not
support `long long'
/usr/include/mach/memory_object_types.h:74: warning: ANSI C does not
support `long long'
In file included from
/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:48,
from sanei_scsi.c:185:
/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:83:
warning: ANSI C forbids zero-size array `content'
/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:93:
warning: ANSI C forbids zero-size array `args'
In file included from
/System/Library/Frameworks/IOKit.framework/Headers/cdb/IOSCSILib.h:15,
from sanei_scsi.c:187:
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSICommand.h:61:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSICommand.h:71:
warning: comma at end of enumerator list
In file included from
/System/Library/Frameworks/IOKit.framework/Headers/cdb/IOSCSILib.h:16,
from sanei_scsi.c:187:
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIDevice.h:66:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIDevice.h:79:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIDevice.h:88:
warning: ANSI C restricts enumerator values to range of `int'
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIDevice.h:89:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIDevice.h:95:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIDevice.h:101:
warning: comma at end of enumerator list
In file included from
/System/Library/Frameworks/IOKit.framework/Headers/cdb/IOSCSILib.h:17,
from sanei_scsi.c:187:
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:61:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:66:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:77:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:105:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:116:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:137:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:150:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:170:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:175:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:182:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:255:
warning: comma at end of enumerator list
/System/Library/Frameworks/IOKit.framework/Headers/scsi/scsi-device/SCSIPublic.h:289:
warning: comma at end of enumerator list
In file included from ../include/sane/sanei.h:66,
from sanei_scsi.c:198:
../include/sane/sane.h:197: warning: ANSI C forbids const or volatile
functions
In file included from sanei_scsi.c:199:
../include/sane/sanei_config.h:87: warning: ANSI C forbids const or
volatile functions
../include/sane/sanei_config.h:104: warning: ANSI C forbids const or
volatile functions
sanei_scsi.c: In function `sanei_scsi_open':
sanei_scsi.c:812: warning: unused variable `real_dev'
sanei_scsi.c: In function `sanei_scsi_cmd2':
sanei_scsi.c:4444: parse error before `scsiDevice'
sanei_scsi.c:4447: `i' undeclared (first use in this function)
sanei_scsi.c:4447: `scsiDevice' undeclared (first use in this function)
sanei_scsi.c:4452: parse error before `int'
sanei_scsi.c:4457: `deviceTypeRef' undeclared (first use in this
function)
sanei_scsi.c:4460: parse error before `scsiObjectIterator'
sanei_scsi.c:4463: `scsiObjectIterator' undeclared (first use in this
function)
sanei_scsi.c:4466: parse error before `device'
sanei_scsi.c:4467: `device' undeclared (first use in this function)
sanei_scsi.c:4476: parse error before `scsiTargetRef'
sanei_scsi.c:4481: `scsiTargetRef' undeclared (first use in this
function)
sanei_scsi.c:4481: `scsitarget' undeclared (first use in this function)
sanei_scsi.c:4483: parse error before `scsiLunRef'
sanei_scsi.c:4488: `scsiLunRef' undeclared (first use in this function)
sanei_scsi.c:4488: `scsilun' undeclared (first use in this function)
sanei_scsi.c:4491: warning: comparison between signed and unsigned
sanei_scsi.c:4502: parse error before `*'
sanei_scsi.c:4507: `plugInInterface' undeclared (first use in this
function)
sanei_scsi.c:4508: `score' undeclared (first use in this function)
sanei_scsi.c:4512: parse error before `plugInResult'
sanei_scsi.c:4515: `plugInResult' undeclared (first use in this
function)
sanei_scsi.c:4518: `scsiDeviceInterface' undeclared (first use in this
function)
sanei_scsi.c:4528: parse error before `*'
sanei_scsi.c:4532: `cdbCommandInterface' undeclared (first use in this
function)
sanei_scsi.c:4536: parse error before `cdb'
sanei_scsi.c:4537: `cdb' undeclared (first use in this function)
sanei_scsi.c:4540: parse error before `range'
sanei_scsi.c:4546: `range' undeclared (first use in this function)
sanei_scsi.c:4548: `transferCount' undeclared (first use in this
function)
sanei_scsi.c:4549: `isWrite' undeclared (first use in this function)
sanei_scsi.c:4559: parse error before `results'
sanei_scsi.c:4564: `seqNumber' undeclared (first use in this function)
sanei_scsi.c:4569: `results' undeclared (first use in this function)
sanei_scsi.c: In function `sanei_scsi_find_devices':
sanei_scsi.c:4595: parse error before `int'
sanei_scsi.c:4596: `i' undeclared (first use in this function)
sanei_scsi.c:4601: parse error before `int'
sanei_scsi.c:4606: `deviceTypeRef' undeclared (first use in this
function)
sanei_scsi.c:4609: parse error before `scsiObjectIterator'
sanei_scsi.c:4612: `scsiObjectIterator' undeclared (first use in this
function)
sanei_scsi.c:4615: parse error before `scsiDevice'
sanei_scsi.c:4616: `scsiDevice' undeclared (first use in this function)
sanei_scsi.c:4625: parse error before `scsiTargetRef'
sanei_scsi.c:4630: `scsiTargetRef' undeclared (first use in this
function)
sanei_scsi.c:4630: `scsitarget' undeclared (first use in this function)
sanei_scsi.c:4632: parse error before `scsiLunRef'
sanei_scsi.c:4637: `scsiLunRef' undeclared (first use in this function)
sanei_scsi.c:4637: `scsilun' undeclared (first use in this function)
sanei_scsi.c:4640: parse error before `*'
sanei_scsi.c:4646: `plugInInterface' undeclared (first use in this
function)
sanei_scsi.c:4647: `score' undeclared (first use in this function)
sanei_scsi.c:4651: parse error before `plugInResult'
sanei_scsi.c:4654: `plugInResult' undeclared (first use in this
function)
sanei_scsi.c:4657: `scsiDeviceInterface' undeclared (first use in this
function)
sanei_scsi.c:4664: parse error before `inquiry'
sanei_scsi.c:4667: `inquiry' undeclared (first use in this function)
sanei_scsi.c:4668: `inquirySize' undeclared (first use in this
function)
sanei_scsi.c:4585: warning: unused parameter `findtype'
sanei_scsi.c:4586: warning: unused parameter `findbus'
sanei_scsi.c:4586: warning: unused parameter `findchannel'
sanei_scsi.c:4586: warning: unused parameter `findid'
sanei_scsi.c: In function `sanei_scsi_req_enter2':
sanei_scsi.c:4700: warning: unused parameter `idp'
sanei_scsi.c: In function `sanei_scsi_req_wait':
sanei_scsi.c:4706: warning: unused parameter `id'
sanei_scsi.c: In function `sanei_scsi_req_flush_all_extended':
sanei_scsi.c:4717: warning: unused parameter `fd'
make[1]: *** [sanei_scsi.o] Error 1
make: *** [all-recursive] Error 1
Wow, that was really long. Sorry. I hope that was enough info, though.
I hope you can help. I'd love to get this scanner working again.
In Christ Alone,
David Alan Hjelle
1 Corithians 2:2
http://welcome.to/theJESUSpage
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
More information about the sane-devel
mailing list