Subject: Re: NetBSD and iSCSI
To: Alistair Crooks <agc@pkgsrc.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: netbsd-users
Date: 11/10/2007 11:40:43
On 10-Nov-07, at 9:09 AM, Alistair Crooks wrote:
> 2. The NetBSD iSCSI initiator should be portable to any operating
> system that can use a version of FUSE or ReFUSE, since it is
> entirely coded in userland. I'd love to hear of any experiences,
> positive or negative, with other operating systems.

Adding:
   CPPFLAGS+=3D -D_FILE_OFFSET_BITS=3D64 -DFUSE_USE_VERSION=3D26

and changing:
   LDADD+=3D -lfuse -liscsi

Has the initiator building with MacFUSE on Leopard:

jared-d-mcneills-computer:iscsi-initiator jmcneill$ bmake
gcc -pipe -O2   -g -I/Users/jmcneill/Desktop/iscsi-initiator/../=20
virtdir -I/dist/iscsi/include -D_FILE_OFFSET_BITS=3D64 -=20
DFUSE_USE_VERSION=3D26 -c iscsifs.c
iscsifs.c: In function =91iscsifs_write=92:
iscsifs.c:429: warning: passing argument 5 of =91targetop=92 makes =
pointer =20
from integer without a cast
gcc -pipe -O2   -g -I/Users/jmcneill/Desktop/iscsi-initiator/../=20
virtdir -I/dist/iscsi/include -D_FILE_OFFSET_BITS=3D64 -=20
DFUSE_USE_VERSION=3D26 -c virtdir.c
gcc -pipe -O2   -g -I/Users/jmcneill/Desktop/iscsi-initiator/../=20
virtdir -I/dist/iscsi/include -D_FILE_OFFSET_BITS=3D64 -=20
DFUSE_USE_VERSION=3D26 -c initiator.c
gcc   -o iscsifs iscsifs.o virtdir.o initiator.o -lfuse -liscsi
ld: library not found for -liscsi
collect2: ld returned 1 exit status
*** Error code 1

I guess I need to build libiscsi to test the rest of this :-)

Cheers,
Jared=