On Tue, 2020-11-10 at 20:19 +0100, Christopher Gregory via blfs-support wrote: > > > > Sent: Wednesday, November 11, 2020 at 7:30 AM > > From: "Ken Moffat via blfs-support" < > > [email protected]> > > To: "BLFS Support List" <[email protected]> > > Cc: "Ken Moffat" <[email protected]> > > Subject: Re: [blfs-support] libsoup will not build with sysprof > > > > On Tue, Nov 10, 2020 at 06:34:21PM +0100, Christopher Gregory via > > blfs-support wrote: > > > Hello, > > > > > > I am working through another installation, and have found that > > > libsoup will not compile against sysprof. The following error > > > occurs: > > > > > > /usr/bin/ld: /usr/lib/libsysprof-capture-4.a(sysprof- > > > collector.c.o): in function `use_single_trace': > > > /sources/sysprof-3.38.1/build/../src/libsysprof-capture/sysprof- > > > collector.c:119: undefined reference to `pthread_getspecific' > > > > [...] > sysprof does successfully build and install for me. It is libsoup > that is allergic to sysprof. I have successfully build and installed > libsoup, by disabling the need for it in the meson_options.txt file > in libsoup's source code.
None of us have had to do that, it seems. So something weird on your system (?). > > The mentioned symlink on my system looks like this: > > lrwxrwxrwx 1 root root 25 Nov 2 20:32 /usr/lib/libpthread.so -> > ../../lib/libpthread.so.0 and do you have /lib/libpthread.so.0 -> libpthread-2.32.so? and if so, what does "nm -s /lib/libpthread-2.32.so | grep pthread_getspecific" return? Maybe something went wrong with stripping... > > I used jhalf to build lfs, as I always do. I haven't tried stripping for a long time. Maybe there is a problem there. > > I did not notice libsoup downloading anything even though it does > indeed appear in the sub-modules as a wrapper to download from git. > > I just attempted the build of libsoup again, and added the -v switch > to ninja and these are the relevant lines: > > /usr/bin/ld: /usr/lib/libsysprof-capture-4.a(sysprof-collector.c.o): > in function `use_single_trace': But what is the command leading to the error? Try ninja -v -j1, maybe. If the above links are ok, and the symbol is present in libpthread, and the command line has "-pthread", then I do not see where the error is coming from... > [... same error as above, + others ... ] > collect2: error: ld returned 1 exit status > Regards Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
