<div class="gmail_quote"><div dir="ltr">On Sat, Apr 7, 2018, 10:26 AM nico <<a href="mailto:slack@lodpp.net">slack@lodpp.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello !<br>
<br>
Bit of context first:<br>
I try to create a slackbuild script for dublin-traceroute (<br>
<a href="https://github.com/insomniacslk/dublin-traceroute" rel="noreferrer" target="_blank">https://github.com/insomniacslk/dublin-traceroute</a> ) which depends on<br>
libtins ( <a href="https://github.com/mfontanini/libtins" rel="noreferrer" target="_blank">https://github.com/mfontanini/libtins</a> )<br>
<br>
The cmake-template for slackbuilds is doing a good job - and I got the<br>
package libtins/dublin-traceroute building and installing fine<br>
<br>
Pbm:<br>
I cannot start dublin-traceroute<br>
<br>
:~ $ dublin-traceroute<br>
dublin-traceroute: error while loading shared libraries:<br>
libdublintraceroute.so.0.1.1: cannot open shared object file: No such<br>
file or directory<br>
<br>
ldd is pointing in the right direction... lib are not found (for both<br>
libtins/libdublintraceroute)<br>
:~ $ ldd /usr/local/bin/dublin-traceroute<br>
     linux-vdso.so.1 (0x00007ffc474ff000)<br>
     libdublintraceroute.so.0.1.1 => not found <<<<<<<<<<<<<<<<<<<<<<br>
     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc60c887000)<br>
     libtins.so.4.0 => not found <<<<<<<<<<<<<<<<<<<<<<br>
     libpcap.so.1 => /usr/lib64/libpcap.so.1 (0x00007fc60c637000)<br>
     libssl.so.1 => /lib64/libssl.so.1 (0x00007fc60c3c4000)<br>
     libcrypto.so.1 => /lib64/libcrypto.so.1 (0x00007fc60bf65000)<br>
     libjsoncpp.so.11 => /usr/lib64/libjsoncpp.so.11 (0x00007fc60bd30000)<br>
     libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fc60b9b1000)<br>
     libm.so.6 => /lib64/libm.so.6 (0x00007fc60b616000)<br>
     libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fc60b3ff000)<br>
     libc.so.6 => /lib64/libc.so.6 (0x00007fc60b015000)<br>
     /lib64/ld-linux-x86-64.so.2 (0x00007fc60caa6000)<br>
     libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200<br>
(0x00007fc60ae0f000)<br>
     libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007fc60abef000)<br>
     libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007fc60a99e000)<br>
     libdl.so.2 => /lib64/libdl.so.2 (0x00007fc60a79a000)<br>
<br>
but they do exist in /usr/local/lib:<br>
:~ $ ls -lastr /usr/local/lib | egrep "dublin|tins"<br>
10212 -rwxr-xr-x  1 root root 10456832 Apr  7 13:52 libtins.so.4.0*<br>
     0 lrwxrwxrwx  1 root root       14 Apr  7 13:53 libtins.so -><br>
libtins.so.4.0*<br>
     0 lrwxrwxrwx  1 root root       28 Apr  7 14:12<br>
libdublintraceroute.so -> libdublintraceroute.so.0.1.1*<br>
   612 -rwxr-xr-x  1 root root   623688 Apr  7 14:16<br>
libdublintraceroute.so.0.1.1*<br>
<br>
<br>
 From googling, main issue would be lib are looked in those pathes and<br>
obviously /usr/local/lib is not one of them :<br>
  # cat /etc/ld.so.conf<br>
/lib64<br>
/usr/lib64<br>
/usr/local/lib64<br>
/usr/x86_64-slackware-linux/lib64<br>
/usr/lib64/seamonkey<br>
<br>
I could copy libs to a proper directory, makes symlinks or edit<br>
/etc/ld.so.conf .....<br>
<br>
As I want to submit those slackbuilds once finished to <a href="http://slackbuilds.org" rel="noreferrer" target="_blank">slackbuilds.org</a>,<br>
what could be an acceptable solution to fix the lib issues ?<br>
<br>
<br>
Best regards,<br>
<br>
Nico<br></blockquote></div><div><br></div><div>Best guess is that you need some more tweaking of your cmake options. Can you attach your SlackBuilds so we can have some of the experts here look them over? They might just need a few tweaks to get everything working properly.</div><div><br></div><div>Jeremy</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div>