This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-users] Probs compiling open-iscsi and on xen-3.2.1 fedora-core8

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Probs compiling open-iscsi and on xen-3.2.1 fedora-core8
From: "Daniel Schwager" <Daniel.Schwager@xxxxxxxx>
Date: Tue, 29 Apr 2008 20:48:17 +0200
Cc: Daniel Schwager <Daniel.Schwager@xxxxxxxx>
Delivery-date: Tue, 29 Apr 2008 11:49:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciqKZA9dntN/ZNmQqWocaUP1en6hQ==
Thread-topic: Probs compiling open-iscsi and on xen-3.2.1 fedora-core8

i try to compile open-iscsi on a system running a self-compiled xen3.2.1, but 
it failed.

I think the problem is that xen3.2.1 uses two directories for building the xen- 
and linux kernel.
The first directory contains only the vanilla linux- sources -
the other one (xen-3.2.1/build-linux-2.6.18-xen_x86_64) the objectfiles and 
(copied ?) c-files ...

If i try to install open-iscsi like
        wget http://www.open-iscsi.org/bits/open-iscsi-2.0-869.tar.gz           
        tar xfvz open-iscsi-2.0-869.tar.gz
        cd open-iscsi-2.0-869
        make KSRC=/root/xen-3.2.1/xen3.2.1/build-linux-2.6.18-xen_x86_64
        # or make
      # or make install
        # or make KSRC=/root/xen-3.2.1/linux-2.6.18-xen.hg
i got something like

make[1]: Leaving directory `/root/open-iscsi-2.0-869/usr'
make -C kernel
make[1]: Entering directory `/root/open-iscsi-2.0-869/kernel'
make[1]: *** No rule to make target `linux_2_6_', needed by `kernel_check'.  
make[1]: Leaving directory `/root/open-iscsi-2.0-869/kernel'
make: *** [all] Error 2

If i manually correct this problem by changing kernel/Makefile, i got the next 

make[1]: Entering directory `/root/open-iscsi-2.0-869/kernel'
make -C /root/xen-3.2.1/xen-3.2.1/build-linux-2.6.18-xen_x86_64/ M=`pwd` 
KBUILD_OUTPUT=  V=0 modules
make[2]: Entering directory 
make -C /root/xen-3.2.1/linux-2.6.18-xen.hg 
O=/root/xen-3.2.1/xen-3.2.1/build-linux-2.6.18-xen_x86_64 modules

  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.

  WARNING: Symbol version dump 
           is missing; modules will have no dependencies and modversions.

  CC [M]  /root/open-iscsi-2.0-869/kernel/scsi_transport_iscsi.o
cc1: error: include/linux/autoconf.h: No such file or directory
In file included from include/linux/sched.h:4,
                 from include/linux/module.h:9,
                 from /root/open-iscsi-2.0-869/kernel/scsi_transport_iscsi.c:23:

The problem is, that the new xen-3.2.x directory structure does not match the 
directory-structure requirements
for open-iscsi... 

Is there a way to compile it anyway ?

Here is the HOWTO to compile xen-3.2.1 (inherited from 
http://lists.xensource.com/archives/html/xen-users/2008-01/msg00699.html). Maybe
someone who has more knowledge can try to compile open-iscsi against xen3.2.x:

   yum install hgsvn
   mkdir tmp
   cd tmp
   hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
   wget http://bits.xensource.com/oss-xen/release/3.2.1/xen-3.2.1.tar.gz
   tar xfvz xen-3.2.1.tar.gz

   cd xen-3.2.1
   make prep-kernels
   cp -av /boot/config-my-old-config build-linux-2.6.18-xen_x86_64/.config
   make -j7 dist
   make -j7 linux-2.6-xen-build
   make -j7 install
   make linux-2.6-xen-install
   mkinitrd /boot/initrd-

   # and modifiy /boot/grub/menu.lst like described in the xen-3.2.1/README

   # and now ? compile open-iscsi (-: ...


DT Netsolution GmbH   -   Taläckerstr. 30    -    D-70437 Stuttgart
Geschäftsführer: Daniel Schwager, Stefan Hörz - HRB Stuttgart 19870
Tel: +49-711-849910-32, Fax: -932 - Mailto:daniel.schwager@xxxxxxxx

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Probs compiling open-iscsi and on xen-3.2.1 fedora-core8, Daniel Schwager <=