You are not logged in.

#1 2010-06-07 15:49:45

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Iscsi connector

Hi all,
along the way i'm trying to connect to my nas (qnap TS809 pro) througjt iscsi.
With my old OS (xp) it's symple by using iscsi connector by microsoft.
With Arch I've try to install open-iscsi but I get this error:

$ makepkg
==> Making package: open-iscsi 2.0.871.2-2 i686 (Mon Jun  7 17:45:07 CEST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found open-iscsi-2.0-871.2.tar.gz in build dir
  -> Found open-iscsi in build dir
  -> Found open-iscsi.conf.d in build dir
==> Validating source files with md5sums...
    open-iscsi-2.0-871.2.tar.gz ... Passed
    open-iscsi ... Passed
    open-iscsi.conf.d ... Passed
==> Extracting Sources...
  -> Extracting open-iscsi-2.0-871.2.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Entering fakeroot environment...
==> Starting build()...
make -C utils/sysdeps
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/sysdeps'
cc -march=i686 -mtune=generic -O2 -pipe   -O2 -fno-inline -Wall -Wstrict-prototypes -g   -c -o sysdeps.o sysdeps.c
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/sysdeps'
make -C utils/fwparam_ibft
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/fwparam_ibft'
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -I../../usr   -c -o fw_entry.o fw_entry.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -I../../usr   -c -o fwparam_ibft_sysfs.o fwparam_ibft_sysfs.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -I../../usr   -c -o prom_lex.o prom_lex.c
<stdout>:1621:17: warning: 'yyunput' defined but not used
<stdout>:1662:16: warning: 'input' defined but not used
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -I../../usr   -c -o prom_parse.tab.o prom_parse.tab.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -I../../usr   -c -o fwparam_ppc.o fwparam_ppc.c
fwparam_ppc.c: In function 'loop_devs':
fwparam_ppc.c:358:2: warning: passing argument 4 of 'qsort' from incompatible pointer type
/usr/include/stdlib.h:761:13: note: expected '__compar_fn_t' but argument is of type 'int (*)(const char **, const char **)'
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/fwparam_ibft'
make -C usr
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr'
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o util.o util.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o io.o io.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o auth.o auth.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o login.o login.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o log.o log.c
log.c:333:13: warning: '__dump_char' defined but not used
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o md5.o md5.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o sha1.o sha1.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iface.o iface.c
iface.c:311:12: warning: 'iface_get_next_id' defined but not used
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o idbm.o idbm.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o sysfs.o sysfs.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o host.o host.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o session_info.o session_info.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iscsi_sysfs.o iscsi_sysfs.c
iscsi_sysfs.c: In function 'iscsi_sysfs_get_sid_from_path':
iscsi_sysfs.c:608:2: warning: implicit declaration of function 'lstat'
iscsi_sysfs.c:618:2: warning: implicit declaration of function 'S_ISDIR'
iscsi_sysfs.c:618:2: warning: implicit declaration of function 'S_ISLNK'
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o netlink.o netlink.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o initiator.o initiator.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o scsi.o scsi.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o actor.o actor.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o event_poll.o event_poll.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o mgmt_ipc.o mgmt_ipc.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o isns.o isns.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o cxgb3i.o cxgb3i.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o be2iscsi.o be2iscsi.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o transport.o transport.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iscsid.o iscsid.c
iscsid.c: In function 'main':
iscsid.c:407:2: warning: implicit declaration of function 'umask'
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o ../utils/sysdeps/sysdeps.o netlink.o initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o isns.o cxgb3i.o be2iscsi.o transport.o iscsid.o -o iscsid
iscsi_sysfs.o: In function `iscsi_sysfs_get_sid_from_path':
/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr/iscsi_sysfs.c:618: undefined reference to `S_ISDIR'
/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr/iscsi_sysfs.c:618: undefined reference to `S_ISLNK'
iscsi_sysfs.o: In function `iscsi_sysfs_get_blockdev_from_lun':
/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr/iscsi_sysfs.c:872: undefined reference to `S_ISLNK'
/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr/iscsi_sysfs.c:879: undefined reference to `S_ISDIR'
collect2: ld returned 1 exit status
make[1]: *** [iscsid] Error 1
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr'
make: *** [user] Error 2
==> ERROR: Build Failed.
    Aborting...

However, durimg my search over the internet I don't find more documents or experiences with iscsi.
Isn't it?
Any ideas to make iscisi work?

Ale

Offline

#2 2010-06-07 19:59:39

cipparello
Member
From: Verona, Italy
Registered: 2008-05-19
Posts: 16

Re: Iscsi connector

Hi alexbit,
    to successfully build the package you need to patch usr/iscsi_sysfs.c file with the following diff from the dev team of open-iscsi project:

http://git.kernel.org/?p=linux/kernel/g … c9f2f7bfe0

As specified the stat.h include is missing from the stable source code:

iscsi tools: fix compile errors

On some distros iscsi_sysfs.c is failing to compile
due to missing includes for lstat functionality.

bye

Offline

#3 2010-06-08 06:03:07

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: Iscsi connector

cipparello wrote:

Hi alexbit,
    to successfully build the package you need to patch usr/iscsi_sysfs.c file with the following diff from the dev team of open-iscsi project:

http://git.kernel.org/?p=linux/kernel/g … c9f2f7bfe0

As specified the stat.h include is missing from the stable source code:

iscsi tools: fix compile errors

On some distros iscsi_sysfs.c is failing to compile
due to missing includes for lstat functionality.

bye

Please... can you on "how to patch usr/iscsi_sysfs.c" on my arch workstation?
As you can understand I'm so noob...!
;-)

Last edited by Alexbit (2010-06-08 06:03:36)

Offline

#4 2010-06-08 07:38:16

cipparello
Member
From: Verona, Italy
Registered: 2008-05-19
Posts: 16

Re: Iscsi connector

- save this diff in a file named open-iscsi-build-error.patch

--- a/usr/iscsi_sysfs.c
+++ b/usr/iscsi_sysfs.c
@@ -22,6 +22,8 @@
 #include <string.h>
 #include <errno.h>
 #include <dirent.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 
 #include "log.h"
 #include "initiator.h"

- add the filename in the source array inside your PKGBUILD

- put this line before the make statement:
    patch -Np1 -i ${srcdir}/open-iscsi-build-error.patch || return 1

- recalculate md5 for new source (makepkg -g >> PKGBUILD)

Now rebuild...

I added a comment and a request to include the patch on AUR: http://aur.archlinux.org/packages.php?ID=16746

Last edited by cipparello (2010-06-08 07:49:14)

Offline

#5 2010-06-08 09:47:27

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: Iscsi connector

This is the source of my modded PKGBUILD

# Contributor: Stefan Kirrmann <kirrmann@no-log.org>
# Modified: Marco Lima <cipparello@gmail.com>
pkgname=open-iscsi
pkgver=2.0.871.2
_pkgver=2.0-871.2
pkgrel=2
pkgdesc="userland tools"
arch=('i686' 'x86_64')
url="http://www.open-iscsi.org"
license=('GPL')
depends=('bash')
install="${pkgname}.install"
backup=('etc/iscsi/iscsid.conf' 'etc/iscsi/initiatorname.iscsi' 'etc/conf.d/open-iscsi')
source=("http://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/releases/${pkgname}-${_pkgver}.tar.gz" \
    "open-iscsi" "open-iscsi.conf.d" "open-iscsi-build-error.patch")
#source=("http://www.open-iscsi.org/bits/${pkgname}-${_pkgver}.tar.gz" \
options=('docs')
md5sums=('27485b8ea977c4b4185f611cc9b57180'
         'b191af2549f7aff89321b54421eab96f'
         'd6e94c159ddfdeb1ebe69c0760ed1fa6')

build() {
  cd ${startdir}/src/${pkgname}-${_pkgver}
  
  # don't build kernel modules
  patch -Np1 -i ${srcdir}/open-iscsi-build-error.patch || return 1
  sed -i 's|$(MAKE) -C kernel|#$(MAKE) -C kernel|' Makefile
  sed -i "/@echo.*kernel\//d" Makefile
  # include iscsistart program in the package
  sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile
  
  make || return 1
  make DESTDIR=${pkgdir} install_user || return 1
  
  install -D -m755 ${startdir}/src/open-iscsi ${pkgdir}/etc/rc.d/open-iscsi
  install -D -m644 ${startdir}/src/open-iscsi.conf.d ${pkgdir}/etc/conf.d/open-iscsi
  
  # change permission configuration file
#  chmod 600 ${startdir}/pkg/etc/iscsi/iscsid.conf
  install -D -m644 ${startdir}/src/${pkgname}-${_pkgver}/etc/iscsid.conf ${pkgdir}/etc/iscsi
  
  # copy docs
  mkdir -p ${pkgdir}/usr/share/doc/${pkgname}
  install -m644 Changelog ${pkgdir}/usr/share/doc/${pkgname}/
  install -m644 README ${pkgdir}/usr/share/doc/${pkgname}/
}
md5sums=('27485b8ea977c4b4185f611cc9b57180'
         'b191af2549f7aff89321b54421eab96f'
         'd6e94c159ddfdeb1ebe69c0760ed1fa6'
         '62ae85c40267499b7f49fc9882ee4c20')

I've put the open-iscsi-build-error.patch in open-iscsi folder where stay PKGBUILD and the other file

I've recalculate md5 and than dire a makepkg but I get this error

 

$ makepkg
==> Making package: open-iscsi 2.0.871.2-2 i686 (Tue Jun  8 11:40:59 CEST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found open-iscsi-2.0-871.2.tar.gz in build dir
  -> Found open-iscsi in build dir
  -> Found open-iscsi.conf.d in build dir
  -> Found open-iscsi-build-error.patch in build dir
==> Validating source files with md5sums...
    open-iscsi-2.0-871.2.tar.gz ... Passed
    open-iscsi ... Passed
    open-iscsi.conf.d ... Passed
    open-iscsi-build-error.patch ... Passed
==> Extracting Sources...
  -> Extracting open-iscsi-2.0-871.2.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
/home/myuser/MyCompiledAPP/open-iscsi/PKGBUILD: line 26: patch: command not found
==> ERROR: Build Failed.
    Aborting...

Where i drop?
sad

Offline

#6 2010-06-08 10:04:39

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Iscsi connector

You installed the base-devel group?

EDIT: Ok, you already did said you are a noob, but looks this is something you can really solve by yourself, the error says "prog X not found", you PKGBUILD runs prog X to do something, so what you can conclude? that you need prog X. "But I dont know what is prog X!!" So google it, or use pacman -Ss, or better use pkgfile from the pkgtools to find what package owns 'patch'.

Usually error output explain a lot, you only need to interpret it smile (but is ok, to ask when you cant interpret it to get the solution)

In this case I recommend that you install base-devel and not only patch, because you gonna probably need something more from the base-devel

Last edited by kazuo (2010-06-08 10:15:53)

Offline

#7 2010-06-08 11:30:24

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: Iscsi connector

Thank you!!!
Now install work (or it seems to me)!

$ makepkg
==> Making package: open-iscsi 2.0.871.2-2 i686 (Tue Jun  8 13:09:33 CEST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found open-iscsi-2.0-871.2.tar.gz in build dir
  -> Found open-iscsi in build dir
  -> Found open-iscsi.conf.d in build dir
  -> Found open-iscsi-build-error.patch in build dir
==> Validating source files with md5sums...
    open-iscsi-2.0-871.2.tar.gz ... Passed
    open-iscsi ... Passed
    open-iscsi.conf.d ... Passed
    open-iscsi-build-error.patch ... Passed
==> Extracting Sources...
  -> Extracting open-iscsi-2.0-871.2.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file usr/iscsi_sysfs.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 22 with fuzz 1.
make -C utils/sysdeps
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/sysdeps'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/sysdeps'
make -C utils/fwparam_ibft
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/fwparam_ibft'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils/fwparam_ibft'
make -C usr
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr'
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iscsi_sysfs.o iscsi_sysfs.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o ../utils/sysdeps/sysdeps.o netlink.o initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o isns.o cxgb3i.o be2iscsi.o transport.o iscsid.o -o iscsid
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o strings.o strings.c
strings.c: In function 'enlarge_data':
strings.c:83:7: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t'
strings.c:83:7: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'size_t'
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o discovery.o discovery.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iscsiadm.o iscsiadm.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o ../utils/sysdeps/sysdeps.o ../utils/fwparam_ibft/fw_entry.o ../utils/fwparam_ibft/fwparam_ibft_sysfs.o ../utils/fwparam_ibft/fwparam_ppc.o ../utils/fwparam_ibft/prom_lex.o ../utils/fwparam_ibft/prom_parse.tab.o strings.o discovery.o iscsiadm.o -o iscsiadm
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o iscsistart.o iscsistart.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE   -c -o statics.o statics.c
cc -march=i686 -mtune=generic -O2 -pipe -O2 -g -Wall -Wstrict-prototypes -I../include -I. -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -static netlink.o util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o ../utils/sysdeps/sysdeps.o initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o isns.o cxgb3i.o be2iscsi.o transport.o ../utils/fwparam_ibft/fw_entry.o ../utils/fwparam_ibft/fwparam_ibft_sysfs.o ../utils/fwparam_ibft/fwparam_ppc.o ../utils/fwparam_ibft/prom_lex.o ../utils/fwparam_ibft/prom_parse.tab.o iscsistart.o statics.o -o iscsistart
login.o: In function `resolve_address':
/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr/login.c:168: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/usr'
make -C utils
make[1]: Entering directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils'
cc -march=i686 -mtune=generic -O2 -pipe  -O2 -fno-inline -Wall -Wstrict-prototypes -g   -c -o md5.o md5.c
cc -march=i686 -mtune=generic -O2 -pipe  -O2 -fno-inline -Wall -Wstrict-prototypes -g   -c -o iscsi-iname.o iscsi-iname.c
cc -march=i686 -mtune=generic -O2 -pipe  -O2 -fno-inline -Wall -Wstrict-prototypes -g md5.o iscsi-iname.o  -o iscsi-iname
make[1]: Leaving directory `/home/alessiob/MyCompiledAPP/open-iscsi/src/open-iscsi-2.0-871.2/utils'

Compilation complete                 Output file
-----------------------------------  ----------------
Built iSCSI daemon:                  usr/iscsid
Built management application:        usr/iscsiadm
Built boot tool:                     usr/iscsistart

Read README file for detailed information.
#make -C kernel
Kernel Compilation complete          Output file
-----------------------------------  ----------------
install -d /home/alessiob/MyCompiledAPP/open-iscsi/pkg//sbin
install -m 755 usr/iscsid usr/iscsiadm utils/iscsi_discovery utils/iscsi-iname usr/iscsistart /home/alessiob/MyCompiledAPP/open-iscsi/pkg//sbin
install -d /home/alessiob/MyCompiledAPP/open-iscsi/pkg/usr/share/man/man8
install -m 644 doc/iscsid.8 doc/iscsiadm.8 doc/iscsi_discovery.8 /home/alessiob/MyCompiledAPP/open-iscsi/pkg/usr/share/man/man8
if [ ! -f /etc/iscsi/iscsid.conf ]; then \
                install -d /home/alessiob/MyCompiledAPP/open-iscsi/pkg/etc/iscsi ; \
                install -m 644 etc/iscsid.conf /home/alessiob/MyCompiledAPP/open-iscsi/pkg/etc/iscsi ; \
        fi
if [ -f /etc/debian_version ]; then \
                make install_initd_debian ; \
        elif [ -f /etc/redhat-release ]; then \
                make install_initd_redhat ; \
        elif [ -f /etc/SuSE-release ]; then \
                make install_initd_suse ; \
        fi
if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then \
                echo "InitiatorName=`/sbin/iscsi-iname`" > /etc/iscsi/initiatorname.iscsi ; \
                echo "***************************************************" ; \
                echo "Setting InitiatorName to `cat /etc/iscsi/initiatorname.iscsi`" ; \
                echo "To override edit /etc/iscsi/initiatorname.iscsi" ; \
                echo "***************************************************" ; \
        fi
/bin/sh: line 1: /sbin/iscsi-iname: No such file or directory
/bin/sh: line 1: /etc/iscsi/initiatorname.iscsi: No such file or directory
***************************************************
cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
Setting InitiatorName to 
To override edit /etc/iscsi/initiatorname.iscsi
***************************************************
install -d /home/alessiob/MyCompiledAPP/open-iscsi/pkg/etc/iscsi/ifaces
install -m 644 etc/iface.example /home/alessiob/MyCompiledAPP/open-iscsi/pkg/etc/iscsi/ifaces
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
bsdtar: Failed to set default locale
==> Leaving fakeroot environment.
==> Finished making: open-iscsi 2.0.871.2-2 i686 (Tue Jun  8 13:09:39 CEST 2010)

Now I've to config and... I think that I'll have problem for sure!
Ale

Offline

#8 2010-06-09 09:12:14

outerdark
Member
From: Germany, Freiburg
Registered: 2007-04-02
Posts: 38

Re: Iscsi connector

cipparello wrote:

I added a comment and a request to include the patch on AUR: http://aur.archlinux.org/packages.php?ID=16746

Thanks to cipparello. I updated the AUR package and included the patch

Offline

#9 2010-06-10 07:41:33

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: Iscsi connector

(please no-kill me ;-) )

...after some UNsuccessful try...
is a guide over there to help to connect to iscsi target?

Ale

Offline

#10 2010-06-10 09:14:38

outerdark
Member
From: Germany, Freiburg
Registered: 2007-04-02
Posts: 38

Offline

Board footer

Powered by FluxBB