This issue affects the PMDK project -
https://github.com/pmem/issues/issues/806

Minimal reproduction:
$ cat test.c
#include <libkmod.h>

int foo() {
        kmod_ref((void *)0);
        return 0;
}
cat main.c
void foo (void);
int main () {
        foo();
        return 0;
}
$ gcc -fPIC -c -o test.o test.c
$ gcc -shared -fPIC -o libfoo.so test.o -lc -lkmod
$ gcc -L. -o main.o main.c -lfoo -pthread
$ LD_LIBRARY_PATH=. ./main.o
./main.o: Relink `/lib/x86_64-linux-gnu/libkmod.so.2' with 
`/lib/x86_64-linux-gnu/libpthread.so.0' for IFUNC symbol `system'



** Bug watch added: github.com/pmem/issues/issues #806
   https://github.com/pmem/issues/issues/806

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1723042

Title:
  libkmod2.0-udeb is not linked with pthreads

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1723042/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to