#190 kernel 2.6.15 compile error in iscsi-ioctl.c

4.0.2
open
5
2006-02-06
2006-02-06
Noël Köthe
No

Hello,

runing i386 Debian sarge with kernel 2.6.15:

# uname -a
Linux server 2.6.15-1-686-smp #1 SMP Wed Jan 18
21:19:02 CET 2006 i686 GNU/Linux

server:/usr/src/linux-iscsi-4.0.2# LC_ALL=C make

Note: using kernel source from
/lib/modules/2.6.15-1-686-smp/build
containing kernel version 2.6.15

Note: using kernel config from
/lib/modules/2.6.15-1-686-smp/build/.config

make[1]: Entering directory
`/usr/src/linux-headers-2.6.15-1-686-smp'
CC [M]
/usr/src/linux-iscsi-4.0.2/driver/iscsi-initiator.o
CC [M] /usr/src/linux-iscsi-4.0.2/driver/iscsi-attr.o
CC [M] /usr/src/linux-iscsi-4.0.2/driver/iscsi-session.o
CC [M] /usr/src/linux-iscsi-4.0.2/driver/iscsi-task.o
CC [M] /usr/src/linux-iscsi-4.0.2/driver/iscsi-portal.o
CC [M] /usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.o
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c: In
function `iscsi_register_interface':
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:117:
warning: implicit declaration of function
`class_simple_create'
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:118:
warning: assignment makes pointer from integer without
a cast
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:122:
warning: implicit declaration of function
`class_simple_device_add'
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:130:
warning: implicit declaration of function
`class_simple_destroy'
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c: In
function `iscsi_unregister_interface':
/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:139:
warning: implicit declaration of function
`class_simple_device_remove'
make[2]: ***
[/usr/src/linux-iscsi-4.0.2/driver/iscsi-ioctl.o] Error 1
make[1]: ***
[_module_/usr/src/linux-iscsi-4.0.2/driver] Error 2
make[1]: Leaving directory
`/usr/src/linux-headers-2.6.15-1-686-smp'
make: *** [module] Error 2

Discussion

  • Kevin Williams
    Kevin Williams
    2006-02-14

    Logged In: YES
    user_id=516171

    Confirmed bug on fedora core 4 w/ 2.6.15 updated kernel:
    [root@devxps1 linux-iscsi-4.0.2]#
    TOPDIR=/usr/src/kernels/2.6.15-1.1831_FC4-i686
    [root@devxps1 linux-iscsi-4.0.2]# export TOPDIR
    [root@devxps1 linux-iscsi-4.0.2]# make

    Note: using kernel source from
    /lib/modules/2.6.15-1.1831_FC4/build
    containing kernel version 2.6.15-1.1831_FC4

    Note: using kernel config from
    /lib/modules/2.6.15-1.1831_FC4/build/.config

    make[1]: Entering directory
    `/usr/src/kernels/2.6.15-1.1831_FC4-i686'
    CC [M]
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-initiator.o
    CC [M] /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-attr.o
    CC [M]
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-session.o
    CC [M] /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-task.o
    CC [M] /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-portal.o
    CC [M] /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.o
    cc1: warnings being treated as errors
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c: In
    function âiscsi_register_interfaceâ:
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:117:
    warning: implicit declaration of function âclass_simple_createâ
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:118:
    warning: assignment makes pointer from integer without a cast
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:122:
    warning: implicit declaration of function
    âclass_simple_device_addâ
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:130:
    warning: implicit declaration of function âclass_simple_destroyâ
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c: In
    function âiscsi_unregister_interfaceâ:
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.c:139:
    warning: implicit declaration of function
    âclass_simple_device_removeâ
    make[2]: ***
    [/usr/src/iscsi/linux-iscsi-4.0.2/driver/iscsi-ioctl.o] Error 1
    make[1]: ***
    [_module_/usr/src/iscsi/linux-iscsi-4.0.2/driver] Error 2
    make[1]: Leaving directory
    `/usr/src/kernels/2.6.15-1.1831_FC4-i686'
    make: *** [module] Error 2

     
  • Logged In: NO

    4.0.2 does not support 2.6.15. The README should indicate
    what version is supports. For 2.6.15 try open-iscsi.org