mhVTL compile issue on Ubuntu 12.04.3 LTS

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

mhVTL compile issue on Ubuntu 12.04.3 LTS

floogy
Hi, I'm using the webGUI for mhVTL on Ubuntu. I tried to use the updatetab for updating mhVTL from git, but I got an compile error:
MHVTL LIVE UPDATE

Updating MHVTL :

MHVTL Updates Available : .-git-37bd214
Updating MHVTL, Please Wait ...
Stopping MHVTL, Please Wait ...
STGT STATE : RUNNING , Shutting down ...
shutdown of mhvtl
mhvtl not running...
Removing mhvtl kernel module
make -C usr distclean
make[1]: Betrete Verzeichnis '/var/www/html/mhvtl/mhvtl.git/usr'
rm -f vtltape.o vtltape \
	dump_tape.o dump_tape \
	edit_tape.o edit_tape \
	q.o q \
	vtlcmd.o vtlcmd \
	dump_messageQ.o dump_messageQ \
	core mktape mktape.o \
	vtllib.o libvtlscsi.so \
	libvtlcart.so vtlcart.o spc.o \
	smc.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 \
	z.o z \
	mode.o \
	log.o \
	subprocess.o \
	TAGS \
	make_vtl_media \
	make_vtl_media.1 \
	tapeexerciser tapeexerciser.o \
	vtllibrary vtllibrary.o
make[1]: Verlasse Verzeichnis '/var/www/html/mhvtl/mhvtl.git/usr'
make -C etc distclean
make[1]: Betrete Verzeichnis '/var/www/html/mhvtl/mhvtl.git/etc'
rm -f mhvtl
make[1]: Verlasse Verzeichnis '/var/www/html/mhvtl/mhvtl.git/etc'
make -C scripts distclean
make[1]: Betrete Verzeichnis '/var/www/html/mhvtl/mhvtl.git/scripts'
rm -f update_device.conf
make[1]: Verlasse Verzeichnis '/var/www/html/mhvtl/mhvtl.git/scripts'
make -C kernel distclean
make[1]: Betrete Verzeichnis '/var/www/html/mhvtl/mhvtl.git/kernel'
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
make[1]: Verlasse Verzeichnis '/var/www/html/mhvtl/mhvtl.git/kernel'
make -C /lib/modules/3.2.0-53-generic/build SUBDIRS=/var/www/html/mhvtl/mhvtl.git/kernel modules
make[1]: Betrete Verzeichnis '/usr/src/linux-headers-3.2.0-53-generic'
  CC [M]  /var/www/html/mhvtl/mhvtl.git/kernel/mhvtl.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /var/www/html/mhvtl/mhvtl.git/kernel/mhvtl.mod.o
  LD [M]  /var/www/html/mhvtl/mhvtl.git/kernel/mhvtl.ko
make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-3.2.0-53-generic'
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Betrete Verzeichnis '/var/www/html/mhvtl/mhvtl.git/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -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.9-git-37bd214\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtltape.o vtltape.c
make[1]: Verlasse Verzeichnis '/var/www/html/mhvtl/mhvtl.git/usr'
Compilation Error ... Exitting ...

Unfortunately I'm not able to find any hint in the error message  what went wrong.
nia
Reply | Threaded
Open this post in threaded view
|

Re: mhVTL compile issue on Ubuntu 12.04.3 LTS

nia
Administrator
I need to update the GUI to start showing compilation errors .. it is already listed on my TODO's.

In the meantime, can you run manually from the command line so you can see the errors:

Example, login as root and go to html directory for the GUI and under the scripts directory, run ./update_mhvtl.sh

# cd /var/www/html/mhvtl/scripts
 ./update_mhvtl.sh


Regards,

-nia
Reply | Threaded
Open this post in threaded view
|

Re: mhVTL compile issue on Ubuntu 12.04.3 LTS

floogy
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"1.4.9-git-37bd214\" -D_GNU_SOURCE -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtltape.o vtltape.c
vtltape.c:96:25: fatal error: lzo/lzoconf.h: No such file or directory

Thank you, that's the culprit, I need to install the lzo lib headers
$ LC_ALL=C apt-cache search lzo dev
liblzo2-dev - data compression library (development files)
$ sudo apt-get install liblzo2-dev

That seemed to work:
test -d /opt/mhvtl || mkdir -p /opt/mhvtl
Starting MHVTL, Please Wait ...
vtllibrary process PID is 6052
vtllibrary process PID is 6055
[0:0:0:0]    disk    ATA      VBOX HARDDISK    1.0   /dev/sda  /dev/sg0
[2:0:0:0]    cd/dvd  VBOX     CD-ROM           1.0   /dev/sr0  /dev/sg1
[3:0:0:0]    mediumx STK      L700             0104  /dev/sch0  /dev/sg10
[3:0:1:0]    tape    IBM      ULT3580-TD5      0104  /dev/st0  /dev/sg2
[3:0:2:0]    tape    IBM      ULT3580-TD5      0104  /dev/st1  /dev/sg3
[3:0:3:0]    tape    IBM      ULT3580-TD4      0104  /dev/st2  /dev/sg4
[3:0:4:0]    tape    IBM      ULT3580-TD4      0104  /dev/st3  /dev/sg5
[3:0:8:0]    mediumx STK      L80              0104  /dev/sch1  /dev/sg11
[3:0:9:0]    tape    STK      T10000B          0104  /dev/st4  /dev/sg6
[3:0:10:0]   tape    STK      T10000B          0104  /dev/st5  /dev/sg7
[3:0:11:0]   tape    STK      T10000B          0104  /dev/st6  /dev/sg8
[3:0:12:0]   tape    STK      T10000B          0104  /dev/st7  /dev/sg9

But, under update, when pressing 'return'-button the GUI states, that there is an git-update for mhVTL available...
 MHVTL Updates Available : .-git-37bd214

As a side note, the webUI is green:
MHVTL-GUI is up-to-date  1.1.2-870f28f	

But: Under 'Web Console'-Menu 1.1.0 still shows up.


nia
Reply | Threaded
Open this post in threaded view
|

Re: mhVTL compile issue on Ubuntu 12.04.3 LTS

nia
Administrator
floogy wrote
As a side note, the webUI is green:
MHVTL-GUI is up-to-date  1.1.2-870f28f	

But: Under 'Web Console'-Menu 1.1.0 still shows up.
Ok, this is a very early version of the GUI ! .. The current one out on git is 1.5.0-5290ce3. You may need to replace this version manually also using one of the following methods :

Download tarball :

https://github.com/niadev67/mhvtl-gui/tarball/master/ 


Or

$ mkdir mhvtl-gui
$ cd mhvtl-gui
$ git init  
$ git pull http://github.com/niadev67/mhvtl-gui.git

-nia
Reply | Threaded
Open this post in threaded view
|

Re: mhVTL compile issue on Ubuntu 12.04.3 LTS

floogy
Thank you, nia, this works!