[Bug 1723042] Re: libkmod2.0-udeb is not linked with pthreads

Andreas Hasenack andreas at canonical.com
Wed Apr 25 13:06:28 UTC 2018


Thanks for the reproducer.

I cannot reproduce this on Bionic 18.04, however:

andreas at nsnx:~/x$ cat test.c
#include <libkmod.h>

int foo() {
 kmod_ref((void *)0);
 return 0;
}
andreas at nsnx:~/x$ cat main.c 
void foo (void);
int main () {
 foo();
 return 0;
}
andreas at nsnx:~/x$ gcc -fPIC -c -o test.o test.c
andreas at nsnx:~/x$ gcc -shared -fPIC -o libfoo.so test.o -lc -lkmod
andreas at nsnx:~/x$ gcc -L. -o main.o main.c -lfoo -pthread
andreas at nsnx:~/x$ LD_LIBRARY_PATH=. ./main.o
andreas at 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
Foundations Bugs, which is subscribed to kmod in Ubuntu.
https://bugs.launchpad.net/bugs/1723042

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

Status in kmod package in Ubuntu:
  Incomplete

Bug description:
  libkmod2.0-udeb is not linked with pthreads

  When running udevadm in d-i the following happens:

  udevadm: Relink `/lib/libkmod.so.2' with `/lib/libpthread.so.0' for
  IFUNC symbol `system'

  Maybe libkmod2.0 needs a rebuild and/or fix up?

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



More information about the foundations-bugs mailing list