Re: GIO will link with -pthread soon



On 11/11/2009 08:10 PM, Ryan Lortie wrote:

> libdbus links against libpthread.

Hmm:

$ ldd /usr/lib/libdbus-1.so.3.4.0
	linux-vdso.so.1 =>  (0x00007fff8ebff000)
	libc.so.6 => /lib/libc.so.6 (0x0000003501000000)
	/lib64/ld-linux-x86-64.so.2 (0x00000034ffa00000)

Although:

$ nm /usr/lib64/libdbus-1.so.3.4.0 | grep 'U pthread'
                 U pthread_cond_broadcast@@GLIBC_2.3.2
                 U pthread_cond_destroy@@GLIBC_2.3.2
                 U pthread_cond_init@@GLIBC_2.3.2
                 U pthread_cond_signal@@GLIBC_2.3.2
                 U pthread_cond_timedwait@@GLIBC_2.3.2
                 U pthread_cond_wait@@GLIBC_2.3.2
                 U pthread_mutex_destroy@@GLIBC_2.2.5
                 U pthread_mutex_init@@GLIBC_2.2.5
                 U pthread_mutex_lock@@GLIBC_2.2.5
                 U pthread_mutex_unlock@@GLIBC_2.2.5
                 U pthread_self@@GLIBC_2.2.5

It looks like the pthread subset libdbus uses is provided by
/lib64/libc-2.9.so.  I guess that's what you meant about things turning
out ok on Linux with glibc?  So can we avoid linking with libpthread
entirely on Linux (in both libdbus and libgio)?

(I don't particularly object to linking with libpthread in gio, but I'm
curious...)

	-brian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]