SANE 1.0.1 on FreeBSD 3.2-RELEASE

Steve Darrall (steve@haagen-dazs.org)
Sat, 21 Aug 1999 07:50:42 +0100

Hiya,

I'm trying to compile the latest version of SANE. I was getting

gcc -o find-scanner find-scanner.o ../sanei/libsanei.a ../lib/liblib.a -lm
../sanei/libsanei.a(sanei_scsi.o): In function `sanei_scsi_open':
sanei_scsi.o(.text+0x5b): undefined reference to `cam_open_pass'
sanei_scsi.o(.text+0xd1): undefined reference to `cam_close_device'
../sanei/libsanei.a(sanei_scsi.o): In function `sanei_scsi_close':
sanei_scsi.o(.text+0x3c8): undefined reference to `cam_close_device'
../sanei/libsanei.a(sanei_scsi.o): In function `sanei_scsi_cmd':
sanei_scsi.o(.text+0x453): undefined reference to `cam_getccb'
sanei_scsi.o(.text+0x54d): undefined reference to `cam_send_ccb'
sanei_scsi.o(.text+0x564): undefined reference to `cam_freeccb'
sanei_scsi.o(.text+0x633): undefined reference to `cam_freeccb'
sanei_scsi.o(.text+0x651): undefined reference to `cam_freeccb'
gmake[1]: *** [find-scanner] Error 1
gmake[1]: Leaving directory `/d1/src/sane-1.0.1/tools'
gmake: *** [all-recursive] Error 1

as an error, so I modified the Makefile in tools, and now I've got the errors
down to

gcc -o find-scanner find-scanner.o -L/d1/src/sane-1.0.1/sanei/libsanei.a ../lib/liblib.a -lm
find-scanner.o: In function `scanner_do_inquiry':
find-scanner.o(.text+0xc8): undefined reference to `sanei_scsi_cmd'
find-scanner.o(.text+0x104): undefined reference to `sanei_scsi_cmd'
find-scanner.o: In function `main':
find-scanner.o(.text+0x3f6): undefined reference to `sanei_scsi_open'
find-scanner.o(.text+0x45f): undefined reference to `sanei_scsi_close'
gmake[1]: *** [find-scanner] Error 1
gmake[1]: Leaving directory `/d1/src/sane-1.0.1/tools'
gmake: *** [all-recursive] Error 1

et al are present, but for some reason, they're getting missed.

Can anyone give me any pointers as to what I'm doing wrong?

FYI I used ./configure --enable-shared --enable-static

TIA for any help you can offer

Steve

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com