On Fri, 2020-11-27 at 17:50 +0000, Ken Moffat via blfs-support wrote:
> 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'
> > 
> > The only way that I could get libsoup to compile and install was by
> > going into the meson_options.txt and setting the option to use
> > sysprof to disabled.
> > 
> > Has anyone actually tested and got this combination to work?
> > 
> > I notice that arch have dropped the need to make sysprof a
> > requirement.  I have not found any patch to date to actually get it
> > to work.  I am using the svn version of systemd blf from 2020-11-
> > 01.  There has been no update to sysprof so I could not see if a
> > later version worked.
> > 
> > Re-installing sysprof made no difference to the above error.  I
> > have only used the commands listed in the book and not added
> > anything extra to the build commands, ie nothing optional.
> > 
> > Regards,
> > 
> > Christopher.
> 
> Starting a fresh sub-thread to reply to this, because we were
> floundering.  I've just hit this, and apart from Christopher's post
> google found
> https://github.com/mesonbuild/meson/issues/7929
> 
> Seems to be a problem with meson-0.56.0, apparently will be fixed
> with 0.56.1 by
> https://github.com/mesonbuild/meson/commit/2b923f532c3e16687910fecb09cedb80a76597cf.diff
> but that didn't make any difference for me.

Just to be sure:  it is not enough to just patch meson and recompile
libsoup. Sysprof has to be recompiled to after the change to meson: the
problem is in the .pc file for sysprof (-pthread not present in the
"public" part of the .pc file).

I guess those of us who had built sysprof with a previous version of
meson could not see the problem, even if they were building libsoup
with meson 0.56...

> 
> I then tried Christopher's change to -Dsysprof=disabled and libsoup
> built.  I agree with him that it shows no signs of downloading
> anything for sysprof.
> 
> Meson reported:
> Dependency sysprof-capture-4 skipped: feature sysprof disabled
> and the verbose output from ninja did not mention sysprof.
> 

Pierre

-- 
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