tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dlopen() and libpthread
On Sun, Oct 21, 2012 at 11:34:59PM +0200, Joerg Sonnenberger wrote:
> Try changing src/pkcs11/pkcs11-global.c, line 47 to use sizeof(*m) to
> not overflow the buffer as start...
Right, that fixes one problem but we are not done yet.
Now ssh-agent correctly dlopen /usr/pkg/lib/opensc-pkcs11.so, which in
turns dlopen libopensc.so (no problem), which then attemps to dlopen
libpscslite.so and here we break again because it is linked with -lpthread
$ ldd /usr/pkg/lib/libpcsclite.so
/usr/pkg/lib/libpcsclite.so:
-lpthread.1 => /usr/lib/libpthread.so.1
-lgcc_s.1 => /usr/lib/libgcc_s.so.1
-lc.12 => /usr/lib/libc.so.12
But this time, threads are really used:
$ nm /usr/pkg/lib/libpcsclite.so|grep pthread_
U pthread_attr_destroy
U pthread_attr_init
U pthread_attr_setdetachstate
U pthread_cancel
U pthread_create
U pthread_detach
U pthread_join
U pthread_setcanceltype
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index