libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

Disable CPPUNIT checks

Open dbaio opened this issue 7 years ago • 4 comments

Hi.

Is there a way to disable CPPUNIT checks?

Maybe something in configure like --disable-tests.

If cppunit is installed, it's included a shared library dependency on it.

Regards.

And thank you for libtorrent/rtorrent.

dbaio avatar Nov 17 '18 17:11 dbaio

Which version do you use? 0.13.6 or 0.13.7? And what distribution? 0.13.7 shouldn't be dependent on cppunit even if it's installed (e.g. on Ubuntu 14.04):

$ dpkg -s libcppunit-dev | grep Status
Status: install ok installed
$
$ ldd libtorrent.so | grep unit
$

chros73 avatar Nov 18 '18 17:11 chros73

0.13.7 on FreeBSD

...
checking pkg-config is at least version 0.9.0... yes
checking for CPPUNIT... yes
checking for OPENSSL... yes
...
$ ldd /usr/local/lib/libtorrent.so
/usr/local/lib/libtorrent.so:
        libcppunit-1.14.so.0 => /usr/local/lib/libcppunit-1.14.so.0 (0x800788000)
        libz.so.6 => /lib/libz.so.6 (0x8007de000)
        libcrypto.so.111 => /lib/libcrypto.so.111 (0x800e00000)
        libc++.so.1 => /usr/lib/libc++.so.1 (0x8010ed000)
        libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x8011bc000)
        libm.so.5 => /lib/libm.so.5 (0x8011dd000)
        libc.so.7 => /lib/libc.so.7 (0x800248000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x80120f000)
        libdl.so.1 => /usr/lib/libdl.so.1 (0x8007f8000)
        libthr.so.3 => /lib/libthr.so.3 (0x801227000)

full build log here

dbaio avatar Nov 18 '18 17:11 dbaio

Interesting, it must be distribution specific issue, since it's not the case on Debian flavored systems.

chros73 avatar Nov 19 '18 17:11 chros73

On FreeBSD we are building it with clang.

I tried on Ubuntu.

With gcc it not link against cppunit.

root@vagrant-ubuntu-trusty-64:~/libtorrent# ldd /usr/local/lib/libtorrent.so
	linux-vdso.so.1 =>  (0x00007fffa7775000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8136a67000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8136763000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f813639a000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8136184000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8135e7e000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8136fa9000)

And with clang, it links.

root@vagrant-ubuntu-trusty-64:~/libtorrent# ldd /usr/local/lib/libtorrent.so
	linux-vdso.so.1 =>  (0x00007fff2a8eb000)
	libcppunit-1.13.so.0 => /usr/lib/x86_64-linux-gnu/libcppunit-1.13.so.0 (0x00007fdd340f4000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdd33edb000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdd33bd7000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdd338d1000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdd33508000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdd332f2000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdd330ee000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdd3461e000)

dbaio avatar Nov 20 '18 22:11 dbaio