compatibleone / accords-platform

www.compatibleone.org
Apache License 2.0
11 stars 12 forks source link

Debian installation #34

Open vesse opened 10 years ago

vesse commented 10 years ago

Hi,

Running dpkg-buildpackage -rsudo -b fails with:

dpkg-shlibdeps: error: couldn't find library libcosql.so.0 needed by debian/libcocspi0/usr/lib/libcocspi.so.0.0.0 (ELF format: 'elf32-i386'; RPATH: '')
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/libcocspi0.substvars debian/libcocspi0/usr/lib/libcocspi.so.0.0.0 returned exit code 2
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: sudo debian/rules binary gave error exit status 2

Running Kubuntu 14.04, comes with gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2

vrenardias commented 10 years ago

On Tue, 2014-08-12 at 23:25 -0700, Vesa Poikajärvi wrote:

Hi,

Running dpkg-buildpackage -rsudo -b fails with:

dpkg-shlibdeps: error: couldn't find library libcosql.so.0 needed by debian/libcocspi0/usr/lib/libcocspi.so.0.0.0 (ELF format: 'elf32-i386'; RPATH: '') dpkg-shlibdeps: error: cannot continue due to the error above Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file. To help dpkg-shlibdeps find private libraries, you might need to use -l. dh_shlibdeps: dpkg-shlibdeps -Tdebian/libcocspi0.substvars debian/libcocspi0/usr/lib/libcocspi.so.0.0.0 returned exit code 2 make: *\ [binary-arch] Error 2 dpkg-buildpackage: error: sudo debian/rules binary gave error exit status 2

Running Kubuntu 14.04, comes with gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2

Hello,

The Debian packaging files have not been updated in a while and since their last update, the cosql daemon has been added. So the error you're getting is due to the packaging being not up to date. I'll try to see if I can have time to update it in the next days.

Regards, V.

vrenardias commented 10 years ago

Hello, Should be fixed by the patch I just commited. Please test :-)

vesse commented 10 years ago

Sorry, still the same result.

vrenardias commented 10 years ago

Can you please copy/paste the last ~30 lines of the build process ?

vesse commented 10 years ago

Here's 160 lines:

Making install in pycompmanager
make[3]: Entering directory `/home/vesse/github/accords-platform/pyaccordsSDK/pycompmanager'
python setup.py build
running build
running build_ext
make[4]: Entering directory `/home/vesse/github/accords-platform/pyaccordsSDK/pycompmanager'
make[4]: Nothing to be done for `install-exec-am'.
python setup.py install --root="/home/vesse/github/accords-platform/debian/tmp" --prefix="/usr"
running install
running build
running build_ext
running install_lib
copying build/lib.linux-i686-2.7/pycompmanager.so -> /home/vesse/github/accords-platform/debian/tmp/usr/lib/python2.7/site-packages
running install_egg_info
Writing /home/vesse/github/accords-platform/debian/tmp/usr/lib/python2.7/site-packages/pycompmanager-1.0-py2.7.egg-info
make[4]: Leaving directory `/home/vesse/github/accords-platform/pyaccordsSDK/pycompmanager'
make[3]: Leaving directory `/home/vesse/github/accords-platform/pyaccordsSDK/pycompmanager'
make[3]: Entering directory `/home/vesse/github/accords-platform/pyaccordsSDK'
make[4]: Entering directory `/home/vesse/github/accords-platform/pyaccordsSDK'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/vesse/github/accords-platform/pyaccordsSDK'
make[3]: Leaving directory `/home/vesse/github/accords-platform/pyaccordsSDK'
make[2]: Leaving directory `/home/vesse/github/accords-platform/pyaccordsSDK'
make[2]: Entering directory `/home/vesse/github/accords-platform'
make[3]: Entering directory `/home/vesse/github/accords-platform'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/vesse/github/accords-platform'
make[2]: Leaving directory `/home/vesse/github/accords-platform'
make[1]: Leaving directory `/home/vesse/github/accords-platform'
sed -e 's@/usr/.*nagios.cfg@/etc/accords/nagios.cfg@g' < `pwd`/debian/tmp/usr/bin/accords > `pwd`/debian/tmp/usr/bin/accords.tmp
mv `pwd`/debian/tmp/usr/bin/accords.tmp `pwd`/debian/tmp/usr/bin/accords
sed -e 's@/usr/.*/accords-nagios.cfg@/etc/accords/nagios.cfg@g' < `pwd`/debian/tmp/etc/accords/accords.ini > `pwd`/debian/tmp/etc/accords/accords.ini.tmp
mv `pwd`/debian/tmp/etc/accords/accords.ini.tmp `pwd`/debian/tmp/etc/accords/accords.ini
mkdir -p `pwd`/debian/tmp/etc/default/ `pwd`/debian/tmp/etc/accords/ `pwd`/debian/tmp/usr/share/doc/compatibleone-accords `pwd`/debian/tmp/var/lib/accords `pwd`/debian/tmp/etc/cosacs/
cp debian/config-cosacs.xml `pwd`/debian/tmp/etc/cosacs/
cp *.xsd `pwd`/debian/tmp/usr/share/doc/compatibleone-accords
cp -r cordscripts debian/co-docs/* debian/*.csp debian/CompatibleOne-Howto.txt `pwd`/debian/tmp/usr/share/doc/compatibleone-accords
cp manifests/openssl.cnf `pwd`/debian/tmp/etc/accords/
cp manifests/os_config.xml `pwd`/debian/tmp/etc/accords/
cp paprocci/pa_config.xml `pwd`/debian/tmp/etc/accords/
cp manifests/on_config.xml `pwd`/debian/tmp/etc/accords/
cp debian/any.xml `pwd`/debian/tmp/etc/accords/
cp Certificates.crt `pwd`/debian/tmp/etc/accords/
cp Certificates.crt `pwd`/debian/tmp/etc/cosacs/
cp `pwd`/debian/tmp/usr/bin/cosacs `pwd`/debian/tmp/usr/bin/cosacs-client
cp accounts.xml coips.xml metrics.xml slamtest.xml `pwd`/debian/tmp/etc/accords
cp scripts/amazon_manifest.xml manifests/ec2config.xml  scripts/cords_user.xml  scripts/publication.xml `pwd`/debian/tmp/etc/accords
cp manifests/style.css `pwd`/debian/tmp/etc/accords
cp manifests/style.css `pwd`/debian/tmp/etc/cosacs
cp debian/cosacs.default `pwd`/debian/tmp/etc/default/cosacs
cd debian/tmp/etc/accords && chmod 600 Certificates.crt coips.xml cords_user.xml openssl.cnf *_config.xml
sed -i  -e 's/\(jamie\|fabio\|admin\)@compatibleone.fr/REPLACE.BY.YOUR@EMAIL.COM/g' \
                debian/tmp/etc/accords/cords_user.xml
mkdir -p debian/tmp/usr/lib/python2.7/pyaccords/pygen
mkdir -p debian/tmp/usr/lib/python2.7/pyaccords/pysrc #debian/tmp/usr/lib/python2.7/cocarrier
cp pyaccords/pygen/*.py debian/tmp/usr/lib/python2.7/pyaccords/
cp pyaccords/pysrc/*.py debian/tmp/usr/lib/python2.7/pyaccords/pysrc/
#cp cocarrier/src/*.py debian/tmp/usr/lib/python2.7/cocarrier/
rm -f `find debian/tmp/ -name \*.pyc`
cp -r cordscripts/*.txt debian/tmp/var/lib/accords
cp -r dashboard/* debian/tmp/var/lib/accords
chmod 755 `grep -l \#\!\/bin debian/tmp/var/lib/accords/*`
grep: debian/tmp/var/lib/accords/images: Is a directory
chmod 644 debian/tmp/var/lib/accords/images/*
rm -f debian/tmp/var/lib/accords/dashboard.inc debian/tmp/var/lib/accords/dashboard.sh
sed -i  -e 's#usr/local/bin#usr/bin#g' -e 's#/usr/local/etc/accords#/etc/accords#g' \
                debian/tmp/var/lib/accords/dashboard-*
dh_testdir
dh_testroot
dh_installchangelogs -a
dh_installdocs -a
dh_installexamples -a
dh_install -a --sourcedir=/home/vesse/github/accords-platform/debian/tmp
dh_installdirs -a
dh_installinit -a
dh_installmenu -a
dh_installman -a
dh_link -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
#dh_makeshlibs -a # For some reason this doesn't generate shlibs files with the version dependency
for i in libcosql0 libcocarrier0 libcocci0 libcocspi0 libcopabr0 libcords0 libcorest0 libcoxml0 libocci0 libpubocci0; do \
                (echo -n $(echo $i|tr -d '0'); echo " 0.0.0 $i (>= 1.0-12)") > debian/$i.shlibs; \
                dh_makeshlibs -p $i -V "$i (>= 1.0-12)"; \
        done
dh_shlibdeps -a
dpkg-shlibdeps: warning: symbol rest_response_status used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol allocate_rest_response used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol DecodeBase64 used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_temporary_filename used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_response_header used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_duplicate_headers used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_valid_string used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_create_header used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol serialise_url_host_no_port used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_client_delete_request used by debian/libcocarrier0/usr/lib/libcocarrier.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: 23 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: symbol rest_response_status used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_request_body used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol liberate_rest_client used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_response_header used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol set_socket_ipv6 used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_cords_xlink_builder used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_client_put_request used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol add_rest_header used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_log_message used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol allocate_rest_client used by debian/libcocci0/usr/lib/libcocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: 48 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: symbol get_default_agent used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_log_debug used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_resolve_category used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_create_link used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_resolve_header used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_remove_elements used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol default_tls used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_resolve_metric used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_client_put used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_create_element used by debian/libcopabr0/usr/lib/libcopabr.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: 40 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: symbol allocate_occi_link_node used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_bad_request used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_create_category used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_invoke_action used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol allocate_rest_header used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_render_links used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_success used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_response_status used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_allocate_uuid used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol rest_html_response used by debian/libcords0/usr/lib/libcords.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: 11 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: symbol allocate_string_secure used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol document_atribut_value used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol liberate used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol document_atribut_password used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol document_element used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol join_string_sep used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol default_tls used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol allocate_string used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol failure used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol document_parse_file used by debian/libcorest0/usr/lib/libcorest.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: 6 other similar warnings have been skipped (use -v to see them all)
dpkg-shlibdeps: warning: symbol rest_valid_string used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol validate_url used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol join_string used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol allocate used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol analyse_url used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol allocate_string used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol occi_html_body used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol join_strings used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: warning: symbol liberate used by debian/libocci0/usr/lib/libocci.so.0.0.0 found in none of the libraries
dpkg-shlibdeps: error: couldn't find library libcosql.so.0 needed by debian/libcocspi0/usr/lib/libcocspi.so.0.0.0 (ELF format: 'elf32-i386'; RPATH: '')
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/libcocspi0.substvars debian/libcocspi0/usr/lib/libcocspi.so.0.0.0 returned exit code 2
make: *** [binary-arch] Error 2