Andreas Jaeger wrote:
Linda Walsh<suse@tlinx.org> writes:
This is a dup of a post to the general discussion list (OS@OS.O), but though someone here might be better informed as to what's going into 11.0 ...
In 10.3 and most linux builds I've run into so far, 'pthreads' is usually in a separate pthreads library. Has this changed in 11.0? Would they have been moved into some library included by default during a build& link (like glibc)?
There's no change in this area.
Seems like that would be an odd change to make since outside tarballs that use pthreads would likely have a -lpthreads in the final link stage and if OS11 moves them, all those make files would require a different link line for OS11 (i.e. -- one that doesn't try to include what would be a non-existent pthreads library).
The reason I'm asking is I'm looking at a make designed to run on OS11, and I'm getting link errors for the various pthread functions -- all of the functions seem to be missing when the final program is being linked (and it doesn't have an explicit -lpthreads on the link line).
The missing -lpthreads is the problem, you really need it.
Thus my wondering is it the case that pthreads are being moved into one of the standardly linked-with libraries (like glibc -- not requiring explicit naming on the command line), or does linking against against libpthreads happen automatically on the 'gcc' of the future (the one to be in OS11.0)?
I'm confused - you always had to add -lpthreads if you use the pthreads library, nothing has changed,
Andreas
I think quite a while ago I had to use "-lpthread" as libpthreads* doesn't exist, otherwise I am missing the gist of the question. # l /usr/lib64/libpthread* -rw-r--r-- 1 root root 383994 2008-05-16 21:28 /usr/lib64/libpthread.a -rw-r--r-- 1 root root 1812 2008-05-16 21:28 /usr/lib64/libpthread_nonshared.a -rw-r--r-- 1 root root 222 2008-05-16 21:28 /usr/lib64/libpthread.so # l /lib64/libpthread* -rwxr-xr-x 1 root root 142867 2008-05-16 21:35 /lib64/libpthread-2.8.so* lrwxrwxrwx 1 root root 17 2008-05-22 12:10 /lib64/libpthread.so.0 -> libpthread-2.8.so* # l /usr/lib/libpthread* -rw-r--r-- 1 root root 258996 2008-05-16 22:18 /usr/lib/libpthread.a -rw-r--r-- 1 root root 1440 2008-05-16 22:18 /usr/lib/libpthread_nonshared.a -rw-r--r-- 1 root root 216 2008-05-16 22:18 /usr/lib/libpthread.so # l /lib/libpthread* -rwxr-xr-x 1 root root 125358 2008-05-17 01:48 /lib/libpthread-2.8.so* lrwxrwxrwx 1 root root 17 2008-05-22 12:27 /lib/libpthread.so.0 -> libpthread-2.8.so* Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org