<div dir="ltr"><div><br></div><div style>Hello guys,</div><div style><br></div><div style>I'm building an RPM for RHEL 5 x64_86 and got this error by <span style="font-size:11pt;font-family:Calibri,sans-serif">check</span><span lang="RU" style="font-size:11pt;font-family:Calibri,sans-serif">-</span><span style="font-size:11pt;font-family:Calibri,sans-serif">rpaths:</span></div>
<div style><span style="font-size:11pt;font-family:Calibri,sans-serif"><br></span></div><div style><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0001: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains a standard rpath '/usr/lib64' in [/usr/lib64:/usr/loc\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">al/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/ssl/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib/ope\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">nssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/local/lib64' in [/usr/lib64:/u\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/sfw/lib64' in [/usr/lib64:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/s\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/opt/local/lib64' in [/usr/lib64:/u\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/pkg/lib64' in [/usr/lib64:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/s\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/local/openssl/lib64' in [/usr/\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">lib64:/usr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/u\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sr/local/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/li\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">b:/usr/lib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/local/ssl/lib64' in [/usr/lib6\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">4:/usr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ocal/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/u\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sr/lib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/ssl/lib64' in [/usr/lib64:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/s\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/local/lib' in [/usr/lib64:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/s\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/sfw/lib' in [/usr/lib64:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ocal/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/ssl\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib/o\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">penssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0001: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains a standard rpath '/usr/lib' in [/usr/lib64:/usr/local\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/ssl/lib\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib/opens\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/opt/local/lib' in [/usr/lib64:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/s\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/pkg/lib' in [/usr/lib64:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ocal/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/ssl\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib/o\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">penssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/local/openssl/lib' in [/usr/li\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">b64:/usr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/local/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/usr/lib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/openssl/lib' in [/usr/lib64:/u\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">sr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/local/ssl/lib' in [/usr/lib64:\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/usr/local/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/loc\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">al/ssl/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/lib/openssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px">ERROR   0002: file '/usr/local/lib/erlang/lib/crypto-2.3/priv/lib/crypto.so' contains an invalid rpath '/usr/ssl/lib' in [/usr/lib64:/usr/l\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">ocal/lib64:/usr/sfw/lib64:/opt/local/lib64:/usr/pkg/lib64:/usr/local/openssl/lib64:/usr/lib/openssl/lib64:/usr/openssl/lib64:/usr/local/ssl\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">/lib64:/usr/lib/ssl/lib64:/usr/ssl/lib64:/usr/local/lib:/usr/sfw/lib:/usr/lib:/opt/local/lib:/usr/pkg/lib:/usr/local/openssl/lib:/usr/lib/o\</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px">penssl/lib:/usr/openssl/lib:/usr/local/ssl/lib:/usr/lib/ssl/lib:/usr/ssl/lib]</span></font></div><div style="font-family:Calibri,sans-serif;font-size:11pt">
<br></div></div><div style="font-family:Calibri,sans-serif;font-size:11pt"><br></div><div style="font-family:Calibri,sans-serif;font-size:11pt">I've found the specific config in <span style="font-family:arial;font-size:small">otp_src_R16B/lib/crypto/c_src/x86_64-unknown-linux-gnu/Makefile:</span></div>
</div><div><br></div><div><div>ifeq ($(DYNAMIC_CRYPTO_LIB),yes)</div><div>SSL_DED_LD_RUNTIME_LIBRARY_PATH = -Wl,-R/usr/lib64 -Wl,-R/usr/local/lib64 -Wl,-R/usr/sfw/lib64 -Wl,-R/opt/local/lib64 -Wl,-R/usr/pkg/lib64 \</div><div>
-Wl,-R/usr/local/openssl/lib64 -Wl,-R/usr/lib/openssl/lib64 -Wl,-R/usr/openssl/lib64 -Wl,-R/usr/local/ssl/lib64 -Wl,-R/usr/lib/ssl/lib64 -W\</div><div>l,-R/usr/ssl/lib64 -Wl,-R/usr/local/lib -Wl,-R/usr/sfw/lib -Wl,-R/usr/lib -Wl,-R/opt/local/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/local/openssl/\</div>
<div>lib -Wl,-R/usr/lib/openssl/lib -Wl,-R/usr/openssl/lib -Wl,-R/usr/local/ssl/lib -Wl,-R/usr/lib/ssl/lib -Wl,-R/usr/ssl/lib</div></div><div><br></div><div><br></div><div style>Is it really needed to have hardcoded RPATHS there?</div>
<div><br></div><div style>Will appreciate any clearance on this issue.</div><div><br></div>-- <br><div>Aleksandr Vinokurov</div><div>+7 (921) 982-21-43</div><div>@aleksandrvin</div>
</div>