> Sent: Wednesday, November 11, 2020 at 10:09 AM
> From: "Pierre Labastie via blfs-support" 
> <[email protected]>
> To: [email protected]
> Cc: "Pierre Labastie" <[email protected]>
> Subject: Re: [blfs-support] libsoup will not build with sysprof
>
> 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
> 

Hello Pierre,

Below is what is returned:

root [ /sources/libsoup-2.72.0 ]# nm -s /lib/libpthread-2.32.so | grep 
pthread_getspecific
000000000000f4e0 t __GI___pthread_getspecific
000000000000f4e0 T __pthread_getspecific
000000000000f4e0 W pthread_getspecic

The full output of the build can be located at:

https://hastebin.com/cukoguyoxa.makefile

ls -al /lib/libpthread.so.0
lrwxrwxrwx 1 root root 18 Nov  2 20:33 /lib/libpthread.so.0 -> 
libpthread-2.32.so

From looking at the top of the output, they have made sysprof a run-time 
dependency, so I guess that this really does need to work.  I have recompiled 
gcc in the book as I am working through the jhalf created book by build 
dependency.  I do not use the scripts themselves to build blfs, I just like the 
book, and manually copy and paste.  As I now have a second computer, I am using 
ssh to build the system, so I am not in a chroot environment.

I have installed many packages in this build already, and this is actually the 
first that has given me any issue.

Regards,

Christopher.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to