extra unwanted symbol is exported by meson-generated shared library

Both meson and cargo are capable (sort of) of building a shared library.

When building libblkio with meson (the default), the resulting libblkio.so exports one extra symbol which is not exported when building it with cargo. Exact symbol is build-environment-dependent, but it looks like

_ZN3std3sys4unix4args3imp15ARGV_INIT_ARRAY17hd75053d2909e1635E

or, after c++filt,

std::sys::unix::args::imp::ARGV_INIT_ARRAY::hd75053d2909e1635

This symbol comes from rust/src/libstd/sys/unix/args.rs.

Apparently, with libblkio, this symbol should not be in use and hence should not be linked into the library at all, but it is linked and exported.

Maybe this is a meson issue.

Assignee Loading
Time tracking Loading