Symbols from new jemalloc not found

Ryo ONODERA <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <CAKqF_hXs1O=n3sa9FBZMQ5D9+a3n1D3MvMF_RB2CVvTnmBBo-A@mail.gmail.com>
Hi,

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.

Could anyone take a look at this problem?

The following is my simple test case.

$ cat test.c
int
main(void)
{
        return 0;
}

$ gcc test.c -ljemalloc
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_sdallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallctl'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_rallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_stats_print'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallctlnametomib'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_message_set'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_sallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_xallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallctlbymib'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_dallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_message_get'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_conf_get'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_nallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallocx'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_usable_size'
ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_conf_set'


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.