Tuesday, November 02, 2021

Re: [NEW] devel/elfcat

On Tue, Oct 26, 2021 at 02:14:46PM +0000, Klemens Nanni wrote:
> On Tue, Oct 26, 2021 at 12:59:11PM +0200, Frederic Cambus wrote:
> > Hi ports@,
> >
> > Here is a new port: devel/elfcat
> >
> > It is written in Rust and doesn't require any dependencies.
> >
> > From DESCR:
> >
> > elfcat is an ELF visualizer, which generates interactive HTML files
> > from ELF binaries.
>
> `make port-lib-depends-check' reports
> Extra: c++abi.5
> which I don't see in `ldd $(which elfcat)' after `make install', so that
> library should go.

I don't see this warning on amd64, and ldd reports it is there:

Start End Type Open Ref GrpRef Name
00000df919fd6000 00000df91a01c000 rlib 0 1 0 /usr/lib/libc++abi.so.5.0

I haven't verified this is the reason, but a quick grep in Rust source
tree found this in library/unwind/build.rs:

} else if target.contains("openbsd") {
if target.contains("sparc64") {
println!("cargo:rustc-link-lib=gcc");
} else {
println!("cargo:rustc-link-lib=c++abi");
}
} else if target.contains("solaris") {

No comments:

Post a Comment