Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CPPUNIT checks #182

Open
dbaio opened this issue Nov 17, 2018 · 4 comments
Open

Disable CPPUNIT checks #182

dbaio opened this issue Nov 17, 2018 · 4 comments

Comments

@dbaio
Copy link

dbaio commented Nov 17, 2018

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.

@chros73
Copy link

chros73 commented Nov 18, 2018

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
$

@dbaio
Copy link
Author

dbaio commented Nov 18, 2018

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

@chros73
Copy link

chros73 commented Nov 19, 2018

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

@dbaio
Copy link
Author

dbaio commented Nov 20, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants