Public bug reported:

I am on 64-bit Lubuntu Trusty Tahr (development branch) 
(64-bit Lubuntu nighlty build of 2014-03-14 with updates)
(this machine is set up with RAID-1, LVM and Encryption, in
 case that matters.)

and am trying to set up an iSCSI target (and client).

2 years ago, I successfully did this on PrecisePangolin following these 
instructions:
http://www.howtoforge.com/using-iscsi-on-ubuntu-10.04-initiator-and-target

Today, on TrustyTahr, I can't get past the installing of the
iscsitarget-dkms package.

I'm getting a simple(?) compile error.

 iscsitarget-dkms package is at version 1.4.20.3+svn496-1ubuntu1

(is there an alternative iSCSI target package that Ubuntu uses/blesses?)

---------------------- begin of package installation 
----------------------------------
$ sudo apt-get install --reinstall iscsitarget-dkms

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 25 not upgraded.
1 not fully installed or removed.
Need to get 0 B/79.0 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 117830 files and directories currently installed.)
Preparing to unpack .../iscsitarget-dkms_1.4.20.3+svn496-1ubuntu1_all.deb ...

------------------------------
Deleting module version: 1.4.20.3+svn496
completely from the DKMS tree.
------------------------------
Done.
Unpacking iscsitarget-dkms (1.4.20.3+svn496-1ubuntu1) over 
(1.4.20.3+svn496-1ubuntu1) ...
Setting up iscsitarget (1.4.20.3+svn496-1ubuntu1) ...
 * Starting iSCSI enterprise target service                                     
                                                     
      modprobe: FATAL: Module iscsi_trgt not found.          [fail]
invoke-rc.d: initscript iscsitarget, action "start" failed.
dpkg: error processing package iscsitarget (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up iscsitarget-dkms (1.4.20.3+svn496-1ubuntu1) ...

Creating symlink /var/lib/dkms/iscsitarget/1.4.20.3+svn496/source ->
                 /usr/src/iscsitarget-1.4.20.3+svn496

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.13.0-17-generic -C /lib/modules/3.13.0-17-generic/build 
M=/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build......(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.13.0-17-generic (x86_64)
Consult /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/make.log for more 
information.
Errors were encountered while processing:
 iscsitarget
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------- end of package installation 
----------------------------------


---------------------- Contents of 
/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/make.log -----------------------
$ cat /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/make.log

DKMS make.log for iscsitarget-1.4.20.3+svn496 for kernel 3.13.0-17-generic 
(x86_64)
Sun Mar 16 08:55:39 EDT 2014
make: Entering directory `/usr/src/linux-headers-3.13.0-17-generic'
  LD      /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/built-in.o
  LD      /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/built-in.o
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/tio.o
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/iscsi.o
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/nthread.o
/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/nthread.c: In function 
‘do_recv’:
/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/nthread.c:147:1: 
warning: the frame size of 1096 bytes is larger than 1024 bytes 
[-Wframe-larger-than=]
 }
 ^
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/wthread.o
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/config.o
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/digest.o
  CC [M]  /var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/conn.o
/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/conn.c: In function 
‘conn_info_show’:
/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/conn.c:51:19: error: 
‘struct ipv6_pinfo’ has no member named ‘daddr’
      &inet6_sk(sk)->daddr);
                   ^
make[2]: *** [/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel/conn.o] 
Error 1
make[1]: *** [/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build/kernel] Error 2
make: *** [_module_/var/lib/dkms/iscsitarget/1.4.20.3+svn496/build] Error 2
make: Leaving directory `/usr/src/linux-headers-3.13.0-17-generic'

---------------------- end of make.log ----------------------

-------------------------------- begin of snippet of conn.c
--------------------------------

void conn_info_show(struct seq_file *seq, struct iscsi_session *session)
{
        struct iscsi_conn *conn;
        struct sock *sk;
        char buf[64];

        list_for_each_entry(conn, &session->conn_list, list) {
                sk = conn->sock->sk;
                switch (sk->sk_family) {
                case AF_INET:
                        snprintf(buf, sizeof(buf),
                                 "%pI4", &inet_sk(sk)->inet_daddr);
                        break;
                case AF_INET6:
                        snprintf(buf, sizeof(buf), "[%pI6]",
                                 &inet6_sk(sk)->daddr);                         
                  <--- Line # 51
                        break;
                default:
                        break;
                }
                seq_printf(seq, "\t\tcid:%u ip:%s ", conn->cid, buf);
                print_conn_state(buf, sizeof(buf), conn->state);
                seq_printf(seq, "state:%s ", buf);
                print_digest_state(buf, sizeof(buf), conn->hdigest_type);
                seq_printf(seq, "hd:%s ", buf);
                print_digest_state(buf, sizeof(buf), conn->ddigest_type);
                seq_printf(seq, "dd:%s\n", buf);
        }
}

-------------------------------- end  of snippet of conn.c
--------------------------------

** Affects: iscsitarget (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to iscsitarget in Ubuntu.
https://bugs.launchpad.net/bugs/1293108

Title:
  Setting up iscsitarget-dkms fails with error: ‘struct ipv6_pinfo’ has
  no member named ‘daddr’

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget/+bug/1293108/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to