[opensuse] OSuSE 11.0 devel Q: has pthreads library location changed?
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)? 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). 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)? Thanks!... -Linda -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 21 May 2008 13:16:00 -0700, Linda Walsh wrote:
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)?
Neither of those is the case. The gcc driver still only links in libc and nothing else. For openSUSE 11.0 you still need to pass -lpthread. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Philipp Thomas wrote:
Neither of those is the case. The gcc driver still only links in libc and nothing else. For openSUSE 11.0 you still need to pass -lpthread. Philipp
I suspected as much...I asked because an 'rpm' source package that I tried to rebuild (rpmbuild -ba), failed due to unresolved references to the various pthread_X{create,...} calls. The link line did not include a -lpthread argument and the openssh.spec file (openssh-5.0p1-16.src.rpm), had some odd comments: #Obsoleted CFLAGS="-DUSE_POSIX_THREADS $RPM_OPT_FLAGS" \ # CXXFLAGS="-DUSE_POSIX_THREADS $RPM_O #Obsoleted LDFLAGS="-lpthread" \ LDFLAGS="-pie" CFLAGS="$RPM_OPT_FLAGS $PIEFLAGS -fstack-protector" \ CXXFLAGS="$RPM_OPT_FLAGS $PIEFLAGS -fstack-protector" I wasn't sure why the OpenSuSE 11.0-FACTORY source for openssh had the "correct" LDFLAGS listed as 'Obsoleted'. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Linda Walsh
-
Philipp Thomas