Subject: Re: Busybox and iSCSI?
To: Peter Eisch <peter@boku.net>
From: Alistair Crooks <agc@pkgsrc.org>
List: pkgsrc-users
Date: 12/05/2007 11:05:05
INFTIM is usually defined to be -1.

I've never tried building the NetBSD iSCSI target on that platform,
but don't see any reason why it shouldn't succeed - busybox does support
threads, right?

Please keep me informed how it goes...

Oh, and the latest and greatest (20071205) version of the target has
been released now, you are strongly advised to use that.

Best,
Alistair

On Tue, Dec 04, 2007 at 08:42:59AM -0600, Peter Eisch wrote:
> 
> Building from pkgsrc the compile stops due to the undefined constant INFTIM.
> Is there a suggestion for finding a way to patch over this or is there
> little chance of this working on this platform
> (armv5tejl-unknown-linux-gcc)?
> 
> Thanks,
> 
> peter
> 
> 
> [root@kelly netbsd-iscsi-target]# bmake
> => Bootstrap dependency digest>=20010302: found digest-20070803
> ===> Skipping vulnerability checks.
> WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
> WARNING: To fix run: `download-vulnerability-list'.
> ===> Building for netbsd-iscsi-target-20071130
> gcc -O2 -I/usr/include -Wall -Wstrict-prototypes -fno-strict-aliasing
> -fno-common -Wno-trigraphs -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64
> -D_GNU_SOURCE -I../include -pthread -I/usr/include -c util.c
> In file included from util.c:96:
> ../include/iscsiutil.h:165:1: warning: "__BYTE_ORDER" redefined
> In file included from /usr/include/endian.h:37,
>                  from /usr/include/sys/types.h:212,
>                  from util.c:35:
> /usr/include/bits/endian.h:13:1: warning: this is the location of the
> previous definition
> In file included from util.c:96:
> ../include/iscsiutil.h:166:1: warning: "__BIG_ENDIAN" redefined
> In file included from /usr/include/sys/types.h:212,
>                  from util.c:35:
> /usr/include/endian.h:33:1: warning: this is the location of the previous
> definition
> In file included from util.c:96:
> ../include/iscsiutil.h:167:1: warning: "__LITTLE_ENDIAN" redefined
> In file included from /usr/include/sys/types.h:212,
>                  from util.c:35:
> /usr/include/endian.h:32:1: warning: this is the location of the previous
> definition
> util.c: In function `iscsi_waitfor_connection':
> util.c:642: error: `INFTIM' undeclared (first use in this function)
> util.c:642: error: (Each undeclared identifier is reported only once
> util.c:642: error: for each function it appears in.)
> *** Error code 1
> 
> Stop.
> bmake: stopped in 
> /shares/internal/PUBLIC/pkgsrc/devel/netbsd-iscsi-target/work/netbsd-iscsi-2
> 0071130/src
> *** Error code 1
> 
> Stop.
> bmake: stopped in /shares/internal/PUBLIC/pkgsrc/devel/netbsd-iscsi-target
> *** Error code 1
> 
> Stop.
> bmake: stopped in /shares/internal/PUBLIC/pkgsrc/devel/netbsd-iscsi-target
> [root@kelly netbsd-iscsi-target]#