Problem following development instructions: building libqb fails

JimBeam

Member
Aug 26, 2010
74
1
6
Hi,
(Trying to see if I can get the floppy patch from this thread http://forum.proxmox.com/threads/10910-Floppy-patch into the proper format)
Trying to follow the developer build instructions at
https://git.proxmox.com/?p=pve-common.git;a=blob_plain;f=README.dev;hb=HEAD

#installed a squeeze x64 vm, prerequisites and now getting git repos:
cd ~
git clone git://git.proxmox.com/git/libqb.git
cd libqb
# get an error here:
#"Most source can be installed with 'make dinstall' command.", so...
make dinstall
...
make[6]: Entering directory `/home/<username>/libqb/libqb-0.10.1/tests'
PASS: array.test
PASS: map.test
FAIL: util.test
PASS: rb.test
PASS: log.test
PASS: loop.test
FAIL: ipc.test
FAIL: resources.test
===================================================
3 of 8 tests failed
See tests/test-suite.log
Please report to quarterback-devel@fedorahosted.org
===================================================

# so did just make, which only failed resources.test.. but still fails

What should I have done instead?
 
Error log of the last run:
================================================
libqb 0.10.1.4-b298e: tests/test-suite.log
================================================

1 of 8 tests failed.

.. contents:: :depth: 2


FAIL: resources.test (exit: 1)
==============================

/dev/shm/qb-test_ipc_disp_us-control-32058-8

Error: shared memory segments not closed/unlinked
 
Strange!

Just tried again with a clean squeeze x64 vm.

Did this:
adduser proxmoxuser

aptitude update
aptitude safe-upgrade

#followed
#https://git.proxmox.com/?p=pve-common.git;a=blob_plain;f=README.dev;hb=HEAD

apt-get -y install build-essential git-core debhelper autotools-dev \
doxygen check pkg-config libnss3-dev groff quilt dpatch libxml2-dev \
libncurses5-dev libslang2-dev libldap2-dev xsltproc python-pexpect \
python-pycurl libdbus-1-dev openipmi sg3-utils libnet-snmp-perl \
libnet-telnet-perl snmp python-openssl libxml2-utils automake autoconf \
libsqlite3-dev sqlite3 libfuse-dev libglib2.0-dev librrd-dev \
librrds-perl rrdcached lintian libdevel-cycle-perl libjson-perl \
liblinux-inotify2-perl libio-stringy-perl unzip fuse-utils \
libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl \
libauthen-pam-perl libterm-readline-gnu-perl libssl-dev open-iscsi \
libapache2-mod-perl2 libfilesys-df-perl libfile-readbackwards-perl \
libpci-dev texi2html libgnutls-dev libsdl1.2-dev bridge-utils \
libvncserver0 rpm2cpio apache2-mpm-prefork libintl-perl \
libapache2-request-perl libnet-dns-perl vlan libio-socket-ssl-perl \
libfile-sync-perl ifenslave-2.6 libnet-ldap-perl console-data \
libtool dietlibc-dev liblocale-po-perl

su - proxmoxuser
cd ~
git clone git://git.proxmox.com/git/libqb.git
# no need for the rest right now
#
#install sources using make dinstall
cd ~/libqb
make dinstall
.....
make[5]: Nothing to be done for `resources.test'.
make[5]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1/tests'
make check-TESTS
make[5]: Entering directory `/home/proxmoxuser/libqb/libqb-0.10.1/tests'
make[6]: Entering directory `/home/proxmoxuser/libqb/libqb-0.10.1/tests'
PASS: array.test
PASS: map.test
FAIL: util.test
PASS: rb.test
PASS: log.test
PASS: loop.test
FAIL: ipc.test
FAIL: resources.test
===================================================
3 of 8 tests failed
See tests/test-suite.log
Please report to quarterback-devel@fedorahosted.org
===================================================
make[6]: *** [test-suite.log] Error 1
make[6]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1/tests'
make[5]: *** [check-TESTS] Error 2
make[5]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1/tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1/tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1'
dh_auto_test: make -j1 check returned exit code 2
make[1]: *** [build] Error 29
make[1]: Leaving directory `/home/proxmoxuser/libqb/libqb-0.10.1'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
make: *** [libqb_0.10.1-2_amd64.deb] Error 2
 
Unfortunately not:
# as root
cd ~
git clone git://git.proxmox.com/git/libqb.git
# no need for the rest right now
#
#install sources using make dinstall
cd ~/libqb
make dinstall
...
make check-TESTS
make[5]: Entering directory `/root/libqb/libqb-0.10.1/tests'
make[6]: Entering directory `/root/libqb/libqb-0.10.1/tests'
PASS: array.test
PASS: map.test
FAIL: util.test
PASS: rb.test
PASS: log.test
PASS: loop.test
FAIL: ipc.test
FAIL: resources.test
===================================================
3 of 8 tests failed
See tests/test-suite.log
Please report to quarterback-devel@fedorahosted.org
===================================================
make[6]: *** [test-suite.log] Error 1
make[6]: Leaving directory `/root/libqb/libqb-0.10.1/tests'
make[5]: *** [check-TESTS] Error 2
make[5]: Leaving directory `/root/libqb/libqb-0.10.1/tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/root/libqb/libqb-0.10.1/tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/root/libqb/libqb-0.10.1'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/root/libqb/libqb-0.10.1'
dh_auto_test: make -j1 check returned exit code 2
make[1]: *** [build] Error 29
make[1]: Leaving directory `/root/libqb/libqb-0.10.1'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
make: *** [libqb_0.10.1-2_amd64.deb] Error 2
whoami
root
 
@snowman: thanks. Tried running make as root (in the normal user's directory). Still test failures.
Increased VM memory from 512 to 2048 and retried. Same problem.

I guess I'll just wait for the Proxmox team to upgrade libqb ;)