Hi,

I executed the steps like this:

Unpack the kernel, did "make mrproper",

copy in the .config I used and issued
the command "make oldconfig && make prepare"

Then in open-iscsi i did make (executed as user with full rights to that
directory).

however this is what I get after the make command in open-iscsi directory:

[EMAIL PROTECTED]:/sources/open-iscsi-2.0-754$ make
make -C usr
make[1]: Entering directory `/sources/open-iscsi-2.0-754/usr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/sources/open-iscsi-2.0-754/usr'
make -C kernel
make[1]: Entering directory `/sources/open-iscsi-2.0-754/kernel'
echo "kernel check... OK"
kernel check... OK
cp 2.6.16-2.6.19/*.c .
cp 2.6.16-2.6.19/*.h .
make -C /lib/modules/2.6.19.2/build M=`pwd` KBUILD_OUTPUT=  V=0 modules
make[2]: Entering directory `/lib/modules/2.6.19.2/build'

 WARNING: Symbol version dump /lib/modules/2.6.19.2/build/Module.symvers
          is missing; modules will have no dependencies and modversions.

what does this warning mean?

 CC [M]  /sources/open-iscsi-2.0-754/kernel/scsi_transport_iscsi.o
 CC [M]  /sources/open-iscsi-2.0-754/kernel/libiscsi.o
 CC [M]  /sources/open-iscsi-2.0-754/kernel/iscsi_tcp.o
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_hdr_digest':
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:111: warning:
'crypto_digest_dige                                 st' is deprecated
(declared at include/linux/crypto.h:718)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_tcp_hdr_recv'                                 :
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:471: warning:
'crypto_digest_dige                                 st' is deprecated
(declared at include/linux/crypto.h:718)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'partial_sg_digest_u                                 pdate':
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:686: warning:
'crypto_digest_upda                                 te' is deprecated
(declared at include/linux/crypto.h:713)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_recv_digest_u                                 pdate':
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:695: warning:
'crypto_digest_upda                                 te' is deprecated
(declared at include/linux/crypto.h:713)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_scsi_data_in'                                 :
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:749: warning:
'crypto_digest_upda                                 te' is deprecated
(declared at include/linux/crypto.h:713)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_tcp_data_recv                                 ':
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:888: warning:
'crypto_digest_init                                 ' is deprecated
(declared at include/linux/crypto.h:710)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:945: warning:
'crypto_digest_upda                                 te' is deprecated
(declared at include/linux/crypto.h:713)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:948: warning:
'crypto_digest_fina                                 l' is deprecated
(declared at include/linux/crypto.h:715)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_data_digest_i                                 nit':
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:1194: warning:
'crypto_digest_ini                                 t' is deprecated
(declared at include/linux/crypto.h:710)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_send_padding'                                 :
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:1450: warning:
'crypto_digest_upd                                 ate' is deprecated
(declared at include/linux/crypto.h:713)
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c: In function
'iscsi_send_digest':
/sources/open-iscsi-2.0-754/kernel/iscsi_tcp.c:1483: warning:
'crypto_digest_fin                                 al' is deprecated
(declared at include/linux/crypto.h:715)
 Building modules, stage 2.
 MODPOST 3 modules
/bin/sh: scripts/mod/modpost: No such file or directory
make[3]: *** [__modpost] Error 127
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/lib/modules/2.6.19.2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/sources/open-iscsi-2.0-754/kernel'
make: *** [all] Error 2
[EMAIL PROTECTED]:/sources/open-iscsi-2.0-754$
How can I fix it?

Thanks in advance,

Joris
On 1/24/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:

I don't know about the open-iscsi modules, but I can give some general
advice about building external kernel modules.

On 1/24/07, Joris Piepers <[EMAIL PROTECTED]> wrote:
>
> This is the original directory the iscsi package made
> /lib/modules/2.6.16.27/build
> /lib/modules/2.6.16.27/kernel
> /lib/modules/2.6.16.27/source
> and some other files

The build and source symlinks are for convenience. The point to the
place where you built your kernel. If you want to build external
modules, you need to keep your kernel directory as you built it (in
the easiest case). You can move your kernel directory later and update
those symlinks to point to the right place.

If you've deleted your kernel directory, you can still get things to
work. Unpack the kernel, do "make mrproper", copy in the .config you
used (should be exactly the same as the one you used before) and issue
the command "make oldconfig && make prepare" as the error shows below.
Now update the symlinks (both build and source unless you did the
preparation in a separate object directory) to this location.

> [EMAIL PROTECTED]:/sources# cd open-iscsi*
> [EMAIL PROTECTED]:/sources/open-iscsi-2.0-754# make
> make -C usr
> make[1]: Entering directory `/sources/open-iscsi-2.0-754/usr'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/sources/open-iscsi-2.0-754/usr'
> make -C kernel
> make[1]: Entering directory `/sources/open- iscsi-2.0-754/kernel'
> echo "kernel check... OK"
> kernel check... OK
> cp 2.6.16-2.6.19/*.c .
> cp 2.6.16-2.6.19/*.h .
> make -C /lib/modules/2.6.19.2/build M=`pwd` KBUILD_OUTPUT=  V=0 modules
> make[2]: Entering directory `/lib/modules/2.6.19.2/build'
>
>   ERROR: Kernel configuration is invalid.
>          include/linux/autoconf.h or include/config/auto.conf are
missing.
>          Run 'make oldconfig && make prepare' on kernel src to fix it.

See how it says "Entering directory `/lib/modules/2.6.19.2/build'"?
It's guessing that you want to build against your currently running
kernel, 2.6.19.2. If you want to build against a different version,
look at the Makefile in open-iscsi-*/kernel. There is probably a
variable like KERNEL_DIR so you can do `make
KERNEL_DIR=/path/to/the/kernel/sources/you/want' or something like
that.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to