Re: Symbols from new jemalloc not found

Taylor R Campbell <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
> Date: Thu, 26 Sep 2024 12:48:12 +0900
> From: Ryo ONODERA <[email protected]>
> 
> On NetBSD/amd64-current of today with new jemalloc,
> linking to jemalloc always returns undefined references.
> This problem causes build failures of pkgsrc/www/firefox
> and misc/libreoffice at least.
> [...]
> $ gcc test.c -ljemalloc
> ld: /usr/lib/libjemalloc.so: undefined reference to `__je_sdallocx'
> [...]

We should create expected-symbols files for all these libraries so
this doesn't happen again by accident.

libc may be a lot of work (probably more than libm) but once the work
is done it will be easy to keep up to date and it will be invaluable
for preventing this class of mistake in the future -- especially on
release branches.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.