Thanks for the reproducer.
I cannot reproduce this on Bionic 18.04, however:
andreas@nsnx:~/x$ cat test.c
#include <libkmod.h>
int foo() {
kmod_ref((void *)0);
return 0;
}
andreas@nsnx:~/x$ cat main.c
void foo (void);
int main () {
foo();
return 0;
}
andreas@nsnx:~/x$ gcc -fPIC -c -o test.o test.c
andreas@nsnx:~/x$ gcc -shared -fPIC -o libfoo.so test.o -lc -lkmod
andreas@nsnx:~/x$ gcc -L. -o main.o main.c -lfoo -pthread
andreas@nsnx:~/x$ LD_LIBRARY_PATH=. ./main.o
andreas@nsnx:~/x$ l
total 72K
drwxr-xr-x 2 andreas andreas 7 abr 25 10:05 .
drwx-----x 78 andreas andreas 157 abr 25 10:04 ..
-rwxr-xr-x 1 andreas andreas 7,7K abr 25 10:05 libfoo.so
-rw-r--r-- 1 andreas andreas 52 abr 25 10:04 main.c
-rwxr-xr-x 1 andreas andreas 8,1K abr 25 10:05 main.o
-rw-r--r-- 1 andreas andreas 69 abr 25 10:03 test.c
-rw-r--r-- 1 andreas andreas 1,4K abr 25 10:05 test.o
Could you please verify on your end that it works in 18.04?
** Changed in: kmod (Ubuntu)
Status: Confirmed => Incomplete
--
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