<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>I did an install of my experimental package on a fresh out of the box Solaris 10U9 x86 virtual machine. It looks to me like there is a missing symlink or directory on my system using the default dependencies suggested by Gar.</div><div><br></div><div>All of my 64-bit binaries have an rpath that looks like this:</div><div><br></div><li>
<strong>opt/csw/bin/amd64/ncgen</strong>
<ul>
<li>
base name: <code>ncgen</code>
</li>
<li> runpath:
<ul>
<li>
<code>
/opt/csw/gcc4/lib/64
</code>
</li>
<li>
<code>
/opt/csw/lib/$ISALIST
</code>
</li>
<li>
<code>
/opt/csw/lib/64
</code>
</li>
</ul>
</li><li> needed sonames:
<ul>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libnetcdf.so.6&searchsubmit=1">
libnetcdf.so.6
</a>
</code>
</li>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libhdf5_hl.so.6&searchsubmit=1">
libhdf5_hl.so.6
</a>
</code>
</li>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libhdf5.so.6&searchsubmit=1">
libhdf5.so.6
</a>
</code>
</li>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libz.so.1&searchsubmit=1">
libz.so.1
</a>
</code>
</li>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libm.so.2&searchsubmit=1">
libm.so.2
</a>
</code>
</li>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libnsl.so.1&searchsubmit=1">
libnsl.so.1
</a>
</code>
</li>
<li>
<code>
<a href="http://www.opencsw.org/packagesContainingFile/?fileName=libc.so.1&searchsubmit=1">
libc.so.1
</a>
</code>
</li>
</ul>
</li></ul>
</li><div>In particular, there is an entry for /opt/csw/gcc4/lib/64 in the runpath.</div><div><br></div><div>However my fresh VM install has no /opt/csw/gcc4/lib/64. There is only an amd64 directory.</div><div><br></div><div><div>$ pwd</div><div>/opt/csw/gcc4/lib</div><div>$ ls</div><div>amd64 libgomp.so libssp.so</div><div>libgcc_s.so libgomp.so.1 libssp.so.0</div><div>libgcc_s.so.1 libgomp.so.1.0.0 libssp.so.0.0.0</div></div><div><br></div><div>According to <a href="http://www.opencsw.org/packages/CSWgcc4core/">http://www.opencsw.org/packages/CSWgcc4core/</a> that "64" link is part of gcc4core</div><div><br></div><div>gcc4corert does not depend on gcc4core so I don't get that package on a barebones install, and therefore my 64-bit programs don't run.</div><div><br></div><div>How do I fix this? </div><div>Is this a bug in GCC4?</div><div>Or, is this a bug in Gar? I think it set the RPATH to /opt/csw/gcc4/lib/64 instead of /opt/csw/gcc4/lib/$(ISA)</div><div>Or, is this a bug in my packaging where I need to somehow tweak the RPATH for the 64-bit builds to "Do The Right Thing"?</div></body></html>