Vladimir Marek wrote:
> http://cr.opensolaris.org/~neuron/unrar/ is updated.
1. usr/src/cmd/Makefile
& usr/src/pkgdefs/Makefile
Need resyncing with gate so it doesn't look as though
you trying to change other stuff
... cut ...
>>>> 10. SUNWunrar dependencies
>>>> You only have the default dependencies, is this correct?
>>>> Have you checked with the dependency checker script that
>>>> there are no others ?
>>> I checked it by ldd
>>> $ ldd /usr/bin/unrar
>>> libCstd.so.1 => /usr/lib/libCstd.so.1
>>> libCrun.so.1 => /usr/lib/libCrun.so.1
>>> libm.so.2 => /lib/libm.so.2
>>> libc.so.1 => /lib/libc.so.1
>>>
>>> Where can I find dependency checker ?
>> I can't remember; did you check you have all the dependencies?
>
> Originally I did, but it didn't seem to work. I was confused by
> misleading output from the script. I gave it another go, and
> it found that compiler build paths were in binary RPATH and RUNPATH
>
> $ gobjdump -x unrar/unrar | grep PATH
> RUNPATH
> /usr/lib:/ws/onnv-tools/SUNWspro/SS12/lib/rw7:/ws/onnv-tools/SUNWspro/SS12/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
> RPATH
> /usr/lib:/ws/onnv-tools/SUNWspro/SS12/lib/rw7:/ws/onnv-tools/SUNWspro/SS12/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
>
> Which is wrong.
>
> I fixed that by adding -norunpath option to CC compiler. Now both RPATH
> and RUNPATH are empty (all libraries needed are in /lib and /usr/lib)
>
> That was a good catch.
If there are no dependencies other than the 'default' ones, then this
looks okay to me.
Paul