Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

zard
I'm trying to install latest rel. of  mhvtl on my SUSE VM. this my environment:

lsb_release -a
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 11 (x86_64)
Release: 11
Codename: n/a

make && make install procedures, seem exiting with no error. Here below the steps I've followed on my networker server test host:

===============================================================================
networker:~/Desktop # rpm -i mhvtl-utils-1.4-6.x86_64.rpm
mhvtl                     0:off  1:off  2:on   3:on   4:off  5:on   6:off
networker:~/Desktop # rpm -i mhvtl-utils-1.4-6.
mhvtl-utils-1.4-6.i586.rpm    mhvtl-utils-1.4-6.src.rpm     mhvtl-utils-1.4-6.x86_64.rpm
networker:~/Desktop # rpm -i mhvtl-utils-1.4-6.src.rpm
networker:~/Desktop # rpm -qa| grep mh
mhvtl-utils-1.4-6
n
networker:~/Desktop # cd /usr/src/packages/

networker:/usr/src/packages # ls
BUILD  RPMS  SOURCES  SPECS  SRPMS

networker:/usr/src/packages # cd SOURCES/

networker:/usr/src/packages/SOURCES # ls
baselibs.conf         sg3_utils-1.27.tgz                  zlib-1.2.5.tar.bz2
LICENSE               zlib-1.2.2-format.patch             zlib-lfs.patch
mhvtl-2013-01-31.tgz  zlib-1.2.5-gzopen-null-check.patch  zlib-parallel.patch

networker:/usr/src/packages/SOURCES # cd ../BUILD
networker:/usr/src/packages/BUILD # ls
networker:/usr/src/packages/BUILD # tar xfz ../SOURCES/mhvtl-2013-01-31.tgz

networker:/usr/src/packages/BUILD # cd mhvtl-1.4/

networker:/usr/src/packages/BUILD/mhvtl-1.4 # cd kernel

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make
make -C /lib/modules/3.0.13-0.27-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-1.4/kernel modules
make[1]: Entering directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.c:335:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c: In function ‘vtl_sg_copy_user’:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:52: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \
        depmod -a; \
        if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
                sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
        fi
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # cd ..

networker:/usr/src/packages/BUILD/mhvtl-1.4 # make
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic log.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic mode.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic vtllib.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic spc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic smc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic q.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic subprocess.c
cc -shared  -o libvtlscsi.so vtllib.o spc.o smc.o q.o \
                mode.o log.o subprocess.o -lpthread
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic log.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic q.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic -o vtlcart.o vtlcart.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic vtllib.c
cc -shared  -o libvtlcart.so vtllib.o vtlcart.o q.o log.o \
                                -lpthread
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtltape.o vtltape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ssc.o ssc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o default_ssc_pm.o default_ssc_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ult3580_pm.o ult3580_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o hp_ultrium_pm.o hp_ultrium_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o stk9x40_pm.o stk9x40_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o quantum_dlt_pm.o quantum_dlt_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ait_pm.o ait_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o t10000_pm.o t10000_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ibm_03592_pm.o ibm_03592_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtltape vtltape.o ssc.o \
                default_ssc_pm.o \
                ult3580_pm.o \
                hp_ultrium_pm.o \
                stk9x40_pm.o \
                quantum_dlt_pm.o \
                ait_pm.o t10000_pm.o ibm_03592_pm.o \
                -lz -llzo2 -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o dump_tape.o dump_tape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o dump_tape dump_tape.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtlcmd.o vtlcmd.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtlcmd vtlcmd.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o dump_messageQ.o dump_messageQ.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o dump_messageQ dump_messageQ.o -L. -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o mktape.o mktape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o mktape mktape.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o edit_tape.o edit_tape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o edit_tape edit_tape.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtllibrary.o vtllibrary.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtllibrary vtllibrary.o -L. -lvtlscsi
sed -e s'/@HOME_PATH@/\/opt\/mhvtl/' make_vtl_media.in > make_vtl_media.1
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' make_vtl_media.1 > make_vtl_media
rm -f make_vtl_media.1
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.6\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o tapeexerciser tapeexerciser.c
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/usr'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/etc'
sed -e s'/@USR@/vtl/' mhvtl.in > mhvtl.1
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' mhvtl.1 > mhvtl
sed -i s'/@HOME_PATH@/\/opt\/mhvtl/' mhvtl
rm -f mhvtl.1
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/etc'
make -C scripts MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/scripts'
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' update_device.conf.in > update_device.conf
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/scripts'

make install
make usr
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4'
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/usr'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/usr'
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4'
make -C usr install /usr/lib /usr
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/usr'
install -d -m 755 /usr/lib64
install -o root -g bin -m 755 libvtlscsi.so /usr/lib64/
install -o root -g bin -m 755 libvtlcart.so /usr/lib64/
install -d -m 755 /usr/bin
install -o root -g vtl -m 4750 vtltape /usr/bin/
install -o root -g vtl -m 4750 vtllibrary /usr/bin/
install -o vtl -g vtl -m 750 vtlcmd /usr/bin/
install -o vtl -g vtl -m 750 mktape /usr/bin/
install -o vtl -g vtl -m 750 dump_tape /usr/bin/
install -o vtl -g vtl -m 750 edit_tape /usr/bin/
install -o vtl -g vtl -m 755 tapeexerciser /usr/bin/
install -m 700 build_library_config /usr/bin/
install -m 700 make_vtl_media /usr/bin/
make[1]: Nothing to be done for `/usr/lib'.
make[1]: Nothing to be done for `/usr'.
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/usr'
make scripts
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4'
make -C scripts MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/scripts'
make[2]: `update_device.conf' is up to date.
make[2]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/scripts'
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4'
make -C scripts install /usr
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/scripts'
install -m 700 update_device.conf /usr/bin/
make[1]: Nothing to be done for `/usr'.
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/scripts'
make etc
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/etc'
make[2]: `mhvtl' is up to date.
make[2]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/etc'
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4'
make -i -C etc install  USR=vtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/etc'
install -d -m 755 /etc/init.d
install -m 700 mhvtl /etc/init.d
test ! -x /sbin/insserv || /sbin/insserv mhvtl
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/etc'
make -C man install /usr  USR=vtl
make[1]: Entering directory `/usr/src/packages/BUILD/mhvtl-1.4/man'
install -d -m 755 /usr/share/man/man1
install -d -m 755 /usr/share/man/man5
install -o root mhvtl.1 /usr/share/man/man1/
install -o root mktape.1 /usr/share/man/man1/
install -o root vtlcmd.1 /usr/share/man/man1/
install -o root vtltape.1 /usr/share/man/man1/
install -o root edit_tape.1 /usr/share/man/man1/
install -o root vtllibrary.1 /usr/share/man/man1/
install -o root make_vtl_media.1 /usr/share/man/man1/
install -o root build_library_config.1 /usr/share/man/man1/
install -o root mhvtl.conf.5 /usr/share/man/man5/
install -o root device.conf.5 /usr/share/man/man5/
install -o root library_contents.5 /usr/share/man/man5/
make[1]: Nothing to be done for `/usr'.
make[1]: Leaving directory `/usr/src/packages/BUILD/mhvtl-1.4/man'
test -d /opt/mhvtl || mkdir -p /opt/mhvtl
networker:/usr/src/packages/BUILD/mhvtl-1.4 #

networker:/usr/src/packages/BUILD/mhvtl-1.4 # /etc/init.d/mhvtl start

Could not locate library config file: /etc/mhvtl/library_contents.10
Creating a default one
Please stop mhvtl & edit /etc/mhvtl/library_contents.10 to suit your requirements

Could not locate library config file: /etc/mhvtl/library_contents.30
Creating a default one
Please stop mhvtl & edit /etc/mhvtl/library_contents.30 to suit your requirements
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
No kernel module loaded to feed these daemons.

Need mhvtl kernel module version at least 0.18.11

Did you remember to compile the 'mhvtl' kernel module ?

Please see http://sites.google.com/site/linuxvtl2/
=============================================================================

I get the same error even trying previous release of mhvtl... I had run some try till the rel 1.2 but unsuccesfully,
the only errors I noticed is a warning during the compliling process of the mhvtl kernel module "/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size"
but this looks like a warning about variable cast and it shouldn't be the problem, furthermore I noticed the mhvtl.ko module is a 32 bit loadble module...

Anybody out there is facing the same problem and can help, it would be really appreciated.

thanks in advance for your time and support

Regards




Reply | Threaded
Open this post in threaded view
|

Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

Mark Harvey
Administrator
The error - kernel complaining it can't load the mhvtl.ko module..
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
Recommend :
cd kernel source directory:
# cd /usr/src/packages/BUILD/mhvtl-1.4/kernel
Clean out any pre-built bits:
# make distclean
Re-compile mhvtl.ko
# make
Overwrite old kernel module with new one
# make install

build kernel module dependency file
# depmod -a
Try loading kernel module by hand
# modprobe mhvtl opts=0

If error - paste above steps & output for further analysis.
If no error - check if kernel module loaded by 'lsmod | grep mhvtl' & you should be good to start
/etc/init.d/mhvtl start

BTW: What version of suse 11 are you trying ?
Can you :
# cat /etc/*release

Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

RE: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

zard
Hi Mark,
 
I followed your suggestions... but unfortunatly I'm still facing with the same issue :(. You can find  the version of Suse I'm currently using  at the bottom of the captured output here below.
 
Many thanks.
 
Regards.
Davide.
 
networker:/usr/src/packages/BUILD/mhvtl-1.4 # cd kernel

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make distclean
rm -f mhvtl.o mhvtl.ko \
 *.o \
 *.o.d \
 mhvtl.mod.c \
 Modules.symvers \
 Module.symvers \
 .mhvtl.ko.cmd \
 .mhvtl.o.cmd \
 .mhvtl.mod.o.cmd \
 .event.o.cmd \
 .event.o.d \
 Module.markers \
 modules.order \
 TAGS
rm -rf .tmp_versions

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make

make -C /lib/modules/3.0.13-0.27-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-1.4/kernel modules

make[1]: Entering directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'

make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.c:335:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c: In function ‘vtl_sg_copy_user’:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:52: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \

 depmod -a; \

 if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
  sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
 fi

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # depmod -a

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # modprobe mhvtl opts=0

FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # cat /etc/*release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

 

Date: Fri, 8 Feb 2013 16:11:32 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The error - kernel complaining it can't load the mhvtl.ko module..
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
Recommend :
cd kernel source directory:
# cd /usr/src/packages/BUILD/mhvtl-1.4/kernel
Clean out any pre-built bits:
# make distclean
Re-compile mhvtl.ko
# make
Overwrite old kernel module with new one
# make install

build kernel module dependency file
# depmod -a
Try loading kernel module by hand
# modprobe mhvtl opts=0

If error - paste above steps & output for further analysis.
If no error - check if kernel module loaded by 'lsmod | grep mhvtl' & you should be good to start
/etc/init.d/mhvtl start

BTW: What version of suse 11 are you trying ?
Can you :
# cat /etc/*release

Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

Mark Harvey
Administrator
The kernel compile is i386, yet the rest indicates a 64bit system...

Sent from my iPad

On Feb 9, 2013, at 18:26, "zard [via MHVTL - Linux Virtual Tape Library - Community Forums]" <[hidden email]> wrote:

Hi Mark,
 
I followed your suggestions... but unfortunatly I'm still facing with the same issue :(. You can find  the version of Suse I'm currently using  at the bottom of the captured output here below.
 
Many thanks.
 
Regards.
Davide.
 
networker:/usr/src/packages/BUILD/mhvtl-1.4 # cd kernel

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make distclean
rm -f mhvtl.o mhvtl.ko \
 *.o \
 *.o.d \
 mhvtl.mod.c \
 Modules.symvers \
 Module.symvers \
 .mhvtl.ko.cmd \
 .mhvtl.o.cmd \
 .mhvtl.mod.o.cmd \
 .event.o.cmd \
 .event.o.d \
 Module.markers \
 modules.order \
 TAGS
rm -rf .tmp_versions

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make

make -C /lib/modules/3.0.13-0.27-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-1.4/kernel modules

make[1]: Entering directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'

make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.c:335:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c: In function ‘vtl_sg_copy_user’:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:52: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \

 depmod -a; \

 if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
  sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
 fi

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # depmod -a

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # modprobe mhvtl opts=0

FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # cat /etc/*release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

 

Date: Fri, 8 Feb 2013 16:11:32 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The error - kernel complaining it can't load the mhvtl.ko module..
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
Recommend :
cd kernel source directory:
# cd /usr/src/packages/BUILD/mhvtl-1.4/kernel
Clean out any pre-built bits:
# make distclean
Re-compile mhvtl.ko
# make
Overwrite old kernel module with new one
# make install

build kernel module dependency file
# depmod -a
Try loading kernel module by hand
# modprobe mhvtl opts=0

If error - paste above steps & output for further analysis.
If no error - check if kernel module loaded by 'lsmod | grep mhvtl' & you should be good to start
/etc/init.d/mhvtl start

BTW: What version of suse 11 are you trying ?
Can you :
# cat /etc/*release

Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML



To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
NAML
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

RE: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

zard
So, do you mean the problem is the platform? Or the kernel compile rev.?
Do you suggest to re-install my networker test machine on an alternate linux distribution? RH-EL maybe?
 
Many Thanks.
 
Davide.
 

Date: Sat, 9 Feb 2013 01:33:56 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The kernel compile is i386, yet the rest indicates a 64bit system...

Sent from my iPad

On Feb 9, 2013, at 18:26, "zard [via MHVTL - Linux Virtual Tape Library - Community Forums]" <[hidden email]> wrote:

Hi Mark,
 
I followed your suggestions... but unfortunatly I'm still facing with the same issue :(. You can find  the version of Suse I'm currently using  at the bottom of the captured output here below.
 
Many thanks.
 
Regards.
Davide.
 
networker:/usr/src/packages/BUILD/mhvtl-1.4 # cd kernel

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make distclean
rm -f mhvtl.o mhvtl.ko \
 *.o \
 *.o.d \
 mhvtl.mod.c \
 Modules.symvers \
 Module.symvers \
 .mhvtl.ko.cmd \
 .mhvtl.o.cmd \
 .mhvtl.mod.o.cmd \
 .event.o.cmd \
 .event.o.d \
 Module.markers \
 modules.order \
 TAGS
rm -rf .tmp_versions

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make

make -C /lib/modules/3.0.13-0.27-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-1.4/kernel modules

make[1]: Entering directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'

make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.c:335:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c: In function ‘vtl_sg_copy_user’:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:52: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \

 depmod -a; \

 if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
  sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
 fi

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # depmod -a

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # modprobe mhvtl opts=0

FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # cat /etc/*release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

 

Date: Fri, 8 Feb 2013 16:11:32 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The error - kernel complaining it can't load the mhvtl.ko module..
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
Recommend :
cd kernel source directory:
# cd /usr/src/packages/BUILD/mhvtl-1.4/kernel
Clean out any pre-built bits:
# make distclean
Re-compile mhvtl.ko
# make
Overwrite old kernel module with new one
# make install

build kernel module dependency file
# depmod -a
Try loading kernel module by hand
# modprobe mhvtl opts=0

If error - paste above steps & output for further analysis.
If no error - check if kernel module loaded by 'lsmod | grep mhvtl' & you should be good to start
/etc/init.d/mhvtl start

BTW: What version of suse 11 are you trying ?
Can you :
# cat /etc/*release

Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML



To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
NAML
Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

zard
In reply to this post by Mark Harvey
I got it! Sorry, my fault... :)  I've installed the kernel source i586 instead of x86_64, thanks your clue I've check-ed the pre-requirements package rpms and I find the problem.
Now it works!
 
Many thanks, Mark!
 
Davide.
from Italy
 
Ciao.
PS... your mhvtl is a great idea and useful tool! Thanks for the effort in mantaining it. 

Date: Sat, 9 Feb 2013 01:33:56 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The kernel compile is i386, yet the rest indicates a 64bit system...

Sent from my iPad

On Feb 9, 2013, at 18:26, "zard [via MHVTL - Linux Virtual Tape Library - Community Forums]" <[hidden email]> wrote:

Hi Mark,
 
I followed your suggestions... but unfortunatly I'm still facing with the same issue :(. You can find  the version of Suse I'm currently using  at the bottom of the captured output here below.
 
Many thanks.
 
Regards.
Davide.
 
networker:/usr/src/packages/BUILD/mhvtl-1.4 # cd kernel

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make distclean
rm -f mhvtl.o mhvtl.ko \
 *.o \
 *.o.d \
 mhvtl.mod.c \
 Modules.symvers \
 Module.symvers \
 .mhvtl.ko.cmd \
 .mhvtl.o.cmd \
 .mhvtl.mod.o.cmd \
 .event.o.cmd \
 .event.o.d \
 Module.markers \
 modules.order \
 TAGS
rm -rf .tmp_versions

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make

make -C /lib/modules/3.0.13-0.27-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-1.4/kernel modules

make[1]: Entering directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'

make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.c:335:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c: In function ‘vtl_sg_copy_user’:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:52: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \

 depmod -a; \

 if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
  sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
 fi

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # depmod -a

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # modprobe mhvtl opts=0

FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # cat /etc/*release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

 

Date: Fri, 8 Feb 2013 16:11:32 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The error - kernel complaining it can't load the mhvtl.ko module..
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
Recommend :
cd kernel source directory:
# cd /usr/src/packages/BUILD/mhvtl-1.4/kernel
Clean out any pre-built bits:
# make distclean
Re-compile mhvtl.ko
# make
Overwrite old kernel module with new one
# make install

build kernel module dependency file
# depmod -a
Try loading kernel module by hand
# modprobe mhvtl opts=0

If error - paste above steps & output for further analysis.
If no error - check if kernel module loaded by 'lsmod | grep mhvtl' & you should be good to start
/etc/init.d/mhvtl start

BTW: What version of suse 11 are you trying ?
Can you :
# cat /etc/*release

Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML



To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
NAML
Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

Mark Harvey
Administrator
Many thanks for explaining what went wrong.. This answer will potentially help somebody else who encounters the same problem..

I was wondering how you managed it too :)

Sent from my iPad

On Feb 10, 2013, at 1:03, "zard [via MHVTL - Linux Virtual Tape Library - Community Forums]" <[hidden email]> wrote:

I got it! Sorry, my fault... :)  I've installed the kernel source i586 instead of x86_64, thanks your clue I've check-ed the pre-requirements package rpms and I find the problem.
Now it works!
 
Many thanks, Mark!
 
Davide.
from Italy
 
Ciao.
PS... your mhvtl is a great idea and useful tool! Thanks for the effort in mantaining it. 

Date: Sat, 9 Feb 2013 01:33:56 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The kernel compile is i386, yet the rest indicates a 64bit system...

Sent from my iPad

On Feb 9, 2013, at 18:26, "zard [via MHVTL - Linux Virtual Tape Library - Community Forums]" <[hidden email]> wrote:

Hi Mark,
 
I followed your suggestions... but unfortunatly I'm still facing with the same issue :(. You can find  the version of Suse I'm currently using  at the bottom of the captured output here below.
 
Many thanks.
 
Regards.
Davide.
 
networker:/usr/src/packages/BUILD/mhvtl-1.4 # cd kernel

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make distclean
rm -f mhvtl.o mhvtl.ko \
 *.o \
 *.o.d \
 mhvtl.mod.c \
 Modules.symvers \
 Module.symvers \
 .mhvtl.ko.cmd \
 .mhvtl.o.cmd \
 .mhvtl.mod.o.cmd \
 .event.o.cmd \
 .event.o.d \
 Module.markers \
 modules.order \
 TAGS
rm -rf .tmp_versions

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make

make -C /lib/modules/3.0.13-0.27-default/build SUBDIRS=/usr/src/packages/BUILD/mhvtl-1.4/kernel modules

make[1]: Entering directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'

make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules
  CC [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.o
In file included from /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.c:335:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c: In function ‘vtl_sg_copy_user’:
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:51: warning: cast from pointer to integer of different size
/usr/src/packages/BUILD/mhvtl-1.4/kernel/fetch27.c:52: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/src/packages/BUILD/mhvtl-1.4/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/i386/default'
networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \

 depmod -a; \

 if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
  sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
 fi

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # depmod -a

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # modprobe mhvtl opts=0

FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format

networker:/usr/src/packages/BUILD/mhvtl-1.4/kernel # cat /etc/*release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

 

Date: Fri, 8 Feb 2013 16:11:32 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(

The error - kernel complaining it can't load the mhvtl.ko module..
FATAL: Error inserting mhvtl (/lib/modules/3.0.13-0.27-default/kernel/drivers/scsi/mhvtl.ko): Invalid module format
Recommend :
cd kernel source directory:
# cd /usr/src/packages/BUILD/mhvtl-1.4/kernel
Clean out any pre-built bits:
# make distclean
Re-compile mhvtl.ko
# make
Overwrite old kernel module with new one
# make install

build kernel module dependency file
# depmod -a
Try loading kernel module by hand
# modprobe mhvtl opts=0

If error - paste above steps & output for further analysis.
If no error - check if kernel module loaded by 'lsmod | grep mhvtl' & you should be good to start
/etc/init.d/mhvtl start

BTW: What version of suse 11 are you trying ?
Can you :
# cat /etc/*release

Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML



To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
NAML
Regards from Australia
Mark Harvey



To unsubscribe from Compiling mhvtl on SuSE 11: no way to load mhvtl.ko. invalid module format, pls help! :(, click here.
NAML



To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
NAML
Regards from Australia
Mark Harvey