Re: Symbols from new jemalloc not found

Ryo ONODERA <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
Hi,

Taylor R Campbell <[email protected]> writes:

>> 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.

On NetBSD/amd64 10, I have no undefined references.
/usr/lib/libjemalloc.so.0 on NetBSD/amd64 10 has same U symbols too.

My expectation is st_info for symbol type.
Problematic symbols are STT_NOTYPE (st_info).
It should be STT_FUNC.

However I do not know how to modify symbol type.

Thank you.

-- 
Ryo ONODERA // [email protected]
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
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.