<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Rinigus,<br>
<br>
There is no suitable docs I am aware of, but anyway following the simple rule to pass "-m sdk-install" if and only if you are installing (removing, updating...) packages in the target should be enough for normal SDK usage.<br>
<br>
The need to install packages also outside sb2 should be exceptional. There is an ongoing activity to improve SDK in regards to this.<br>
<br>
BR,<br>
Martin<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF151274" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> Devel [devel-bounces@lists.sailfishos.org] on behalf of rinigus [rinigus.git@gmail.com]<br>
<b>Sent:</b> Wednesday, April 05, 2017 8:51 AM<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> Re: [SailfishDevel] Odd issues with SDK - shared libraries not recognized as such<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi Martin,
<div><br>
</div>
<div>thank you for the tip, it worked nicely! There were several other libraries affected: boost-program-options, libtiff, and libjpeg-turbo to name in addition to the ones I mentioned earlier.</div>
<div><br>
</div>
<div>As for using sdk-mode - I actually didn't find (relatively fast google search) on what does it do. In all examples on how to build packages manually, I could see "-m sdk-install" option given. So, if you can give me URL with description or tell what does
it do and whether I should omit it, please do so.</div>
<div><br>
</div>
<div>Ideally, I don't want to mess with sb2, all I wanted to run was </div>
<div><br>
</div>
<div>mb2 -t SailfishOS-i486 -s package.spec build</div>
<div><br>
</div>
<div>which failed due to the configuration error. Taking into account this bug, maybe all packages specified in spec files as build-dep should be installed in addition by zypper outside sb2?</div>
<div><br>
</div>
<div>Best wishes,</div>
<div><br>
</div>
<div>Rinigus</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Apr 5, 2017 at 8:03 AM, Martin Kampas <span dir="ltr">
<<a href="redir.aspx?REF=BlRet5twj2Crwc7W7O7I1Z9YFL5MaGTXFsQUmrm967ClrFRjBHzUCAFtYWlsdG86bWFydGluLmthbXBhc0Bqb2xsYS5jb20." target="_blank">martin.kampas@jolla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi Rinigus,<br>
<br>
Fix this by installing boost-regex also outside sb2<br>
<br>
[mersdk@SailfishSDK ~]$ sb2 -t SailfishOS-i486 ldd /usr/lib/libboost_regex.so.1.<wbr>51.0<br>
not a dynamic executable<br>
[...]<br>
[mersdk@SailfishSDK ~]$ sudo zypper in boost-regex<br>
[mersdk@SailfishSDK ~]$ sb2 -t SailfishOS-i486 ldd /usr/lib/libboost_regex.so.1.<wbr>51.0<br>
linux-gate.so.1 => (0x6f758000)<br>
libsb2.so.1 => /usr/lib/libsb2/libsb2.so.1 (0x6f5fb000)<br>
libicuuc.so.52 => /usr/lib/libicuuc.so.52 (0x6f48b000)<br>
libicui18n.so.52 => /usr/lib/libicui18n.so.52 (0x6f282000)<br>
libicudata.so.52 => /usr/lib/libicudata.so.52 (0x6dc16000)<br>
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x6db2e000)<br>
libm.so.6 => /lib/libm.so.6 (0x6dae6000)<br>
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x6dacd000)<br>
libc.so.6 => /lib/libc.so.6 (0x6d907000)<br>
libdl.so.2 => /lib/libdl.so.2 (0x6d902000)<br>
libpthread.so.0 => /lib/libpthread.so.0 (0x6d8e6000)<br>
/lib/ld-linux.so.2 (0x6f759000)<br>
[...]<br>
<br>
Applies to other packages as well.<br>
<br>
Apart from that are you sure you want to use sb2's sdk-install mode?<br>
<br>
BR,<br>
Martin<br>
<br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr>
<div id="m_-158087103049215379divRpF424281" style="direction:ltr"><font size="2" face="Tahoma" color="#000000"><b>From:</b> Devel [<a href="redir.aspx?REF=red6WrN6nZnw3ibb7Yu0XS44p74x0879e6kUNQ0ShUalrFRjBHzUCAFtYWlsdG86ZGV2ZWwtYm91bmNlc0BsaXN0cy5zYWlsZmlzaG9zLm9yZw.." target="_blank">devel-bounces@lists.<wbr>sailfishos.org</a>]
on behalf of rinigus [<a href="redir.aspx?REF=O4gyhzgobECtluZ0ewTLfxROAtl72wmsgN2MItxlW9ylrFRjBHzUCAFtYWlsdG86cmluaWd1cy5naXRAZ21haWwuY29t" target="_blank">rinigus.git@gmail.com</a>]<br>
<b>Sent:</b> Monday, April 03, 2017 9:52 PM<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> [SailfishDevel] Odd issues with SDK - shared libraries not recognized as such<br>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I have been struggling with an odd issue which is present in current stable and EA SDKs. Namely, several libraries are not recognized as dynamic libraries on i486 target. For example:</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">sb2 -t SailfishOS-i486 -m sdk-install ldd /usr/lib/libboost_regex.so.1.<wbr>51.0</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>not a dynamic executable</font></div>
<div><font face="monospace, monospace">Messages from sb2:</font></div>
<div><font face="monospace, monospace"> (WARNING)<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>ldd{bash}[6959]<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>Executing statically linked native binary /srv/mer/targets/SailfishOS-<wbr>i486/lib/<a href="redir.aspx?REF=5PVEdlZK2kDjBwQ3WEDYMHgqXtf8qmNCOuVHnLp6m8OlrFRjBHzUCAFodHRwOi8vcmVkaXIuYXNweD9SRUY9NEt1MUJNRXdFNVBpQnFtdGl2dVJKRllwVUhFdmRULXJiaWFWdjJ4ZHZaQ3hnbE13NEh2VUNBRm9kSFJ3T2k4dmJHUXRNaTR4T1M1emJ3Li4." target="_blank">ld-2.19.so</a></font></div>
<div><font face="monospace, monospace"> (WARNING)<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>ldd{bash}[6960]<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>Executing statically linked native binary /srv/mer/targets/SailfishOS-<wbr>i486/lib/<a href="redir.aspx?REF=5PVEdlZK2kDjBwQ3WEDYMHgqXtf8qmNCOuVHnLp6m8OlrFRjBHzUCAFodHRwOi8vcmVkaXIuYXNweD9SRUY9NEt1MUJNRXdFNVBpQnFtdGl2dVJKRllwVUhFdmRULXJiaWFWdjJ4ZHZaQ3hnbE13NEh2VUNBRm9kSFJ3T2k4dmJHUXRNaTR4T1M1emJ3Li4." target="_blank">ld-2.19.so</a></font></div>
<div><font face="monospace, monospace"># exit 1 (1)</font></div>
</div>
<div><br>
</div>
<div>Probably most libraries are fine, like</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">sb2 -t SailfishOS-i486 -m sdk-install ldd /usr/lib/libboost_filesystem.<wbr>so.1.51.0</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>linux-gate.so.1 => (0x6f79c000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libsb2.so.1 => /usr/lib/libsb2/libsb2.so.1 (0x6f721000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libboost_system.so.1.51.0 => /usr/lib/libboost_system.so.1.<wbr>51.0 (0x6f719000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x6f631000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libm.so.6 => /lib/libm.so.6 (0x6f5ea000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x6f5d0000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libc.so.6 => /lib/libc.so.6 (0x6f409000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libdl.so.2 => /lib/libdl.so.2 (0x6f403000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>/lib/ld-linux.so.2 (0x6f79d000)</font></div>
<div><font face="monospace, monospace">Messages from sb2:</font></div>
<div><font face="monospace, monospace"> (WARNING)<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>ldd{bash}[6829]<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>Executing statically linked native binary /srv/mer/targets/SailfishOS-<wbr>i486/lib/<a href="redir.aspx?REF=5PVEdlZK2kDjBwQ3WEDYMHgqXtf8qmNCOuVHnLp6m8OlrFRjBHzUCAFodHRwOi8vcmVkaXIuYXNweD9SRUY9NEt1MUJNRXdFNVBpQnFtdGl2dVJKRllwVUhFdmRULXJiaWFWdjJ4ZHZaQ3hnbE13NEh2VUNBRm9kSFJ3T2k4dmJHUXRNaTR4T1M1emJ3Li4." target="_blank">ld-2.19.so</a></font></div>
<div><font face="monospace, monospace"> (WARNING)<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>ldd{bash}[6830]<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>Executing statically linked native binary /srv/mer/targets/SailfishOS-<wbr>i486/lib/<a href="redir.aspx?REF=5PVEdlZK2kDjBwQ3WEDYMHgqXtf8qmNCOuVHnLp6m8OlrFRjBHzUCAFodHRwOi8vcmVkaXIuYXNweD9SRUY9NEt1MUJNRXdFNVBpQnFtdGl2dVJKRllwVUhFdmRULXJiaWFWdjJ4ZHZaQ3hnbE13NEh2VUNBRm9kSFJ3T2k4dmJHUXRNaTR4T1M1emJ3Li4." target="_blank">ld-2.19.so</a></font></div>
<div><font face="monospace, monospace"> (WARNING)<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>ldd{bash}[6833]<span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap">
</span>Executing statically linked native binary /srv/mer/targets/SailfishOS-<wbr>i486/lib/<a href="redir.aspx?REF=5PVEdlZK2kDjBwQ3WEDYMHgqXtf8qmNCOuVHnLp6m8OlrFRjBHzUCAFodHRwOi8vcmVkaXIuYXNweD9SRUY9NEt1MUJNRXdFNVBpQnFtdGl2dVJKRllwVUhFdmRULXJiaWFWdjJ4ZHZaQ3hnbE13NEh2VUNBRm9kSFJ3T2k4dmJHUXRNaTR4T1M1emJ3Li4." target="_blank">ld-2.19.so</a></font></div>
<div><font face="monospace, monospace"># exit 0 (0)</font></div>
</div>
<div><br>
</div>
<div>This issue does not appear on ARM target:</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">sb2 -t SailfishOS-armv7hl -m sdk-install ldd /usr/lib/libboost_regex.so.1.<wbr>51.0</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libicuuc.so.52 => /usr/lib/libicuuc.so.52 (0x488cc000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libicui18n.so.52 => /usr/lib/libicui18n.so.52 (0x489d0000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libicudata.so.52 => /usr/lib/libicudata.so.52 (0x48b28000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4a1a4000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libm.so.6 => /lib/libm.so.6 (0x4a256000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4a2cb000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libc.so.6 => /lib/libc.so.6 (0x4a2e3000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libpthread.so.0 => /lib/libpthread.so.0 (0x4a3e8000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>libdl.so.2 => /lib/libdl.so.2 (0x4a40b000)</font></div>
<div><font face="monospace, monospace"><span class="m_-158087103049215379gmail-Apple-tab-span" style="white-space:pre-wrap"></span>/lib/ld-linux-armhf.so.3 (0x40801000)</font></div>
</div>
<div><br>
</div>
<div>The libraries in question that I stumbled upon are libboost_regex and libharfbuzz. I tried to recompile harfbuzz to see if something went wrong on its generation, but got the same issue - its not recognized as a shared library by ldd. </div>
<div><br>
</div>
<div>Note that you can compile and link against these libraries. Don't know if the compiled code would run on the tablet, but it refuses to run under mb2/sb2. Which is a major problem preventing using libraries/code that has configure scripts to check for these
libraries. </div>
<div><br>
</div>
<div>I have found some logs on sfos-porters #irc channel (2013 & 2014) with the similar issue, but there was no solution as far as I could tell.</div>
<div><br>
</div>
<div>Does anyone know how to fix it? Apart from skipping i486 or hacking configure scripts...</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Rinigus </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="redir.aspx?REF=3TaSqKWhJ4WcJKFDTgY7Ufcrqp6ImbIEhmy4d9vI_ialrFRjBHzUCAFtYWlsdG86ZGV2ZWwtdW5zdWJzY3JpYmVAbGlzdHMuc2FpbGZpc2hvcy5vcmc." target="_blank">
devel-unsubscribe@lists.<wbr>sailfishos.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>