Re: Problem building LizardFS - hidden symbol is referenced by DSO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2017-04-12 at 08:02 +0200, Mattia Verga wrote:
> Il 11/04/2017 20:34, Jonathan Dieter ha scritto:
> > I would like to get the LizardFS distributed filesystem into
> > Fedora,
> > but I'm running into problems compiling it with Fedora's hardening
> > flags enabled.
<snip>
> > I would greatly appreciate any help pointing me in the right
> > direction.
> > 
> > 
> 
> You can try to troubleshoot what flag exactly is causing the problem:
> https://fedoraproject.org/wiki/Changes/Harden_All_Packages#Troublesho
> oting_steps_for_package_maintainers

Thanks, this put me on the right track for debugging it

> Also, here it is an explanation of the error message:
> http://stackoverflow.com/questions/23696585/what-does-exactly-the-
> warning-mean-about-hidden-symbol-being-referenced-by-dso

And this finally helped me figure out what the problem was.

The problem had nothing to do with the hardening flags at all.  For
each binary, LizardFS normally builds a static library that then gets
compiled into the binary.

Fedora's default build flags call for dynamic libraries everywhere, but
that's what caused the bug I was seeing (and doesn't make much sense
anyway, given the context: mfsmetalogger opening the library
mfsmetalogger.so to run?)

Because LizardFS doesn't actually provide any libraries, I've just
passed -DBUILD_SHARED_LIBS:BOOL=OFF and it's fixed.

Jonathan
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux