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. When the binaries are linked, I get the following error message for each binary: /usr/bin/ld: mfsmetalogger: hidden symbol `__cpu_indicator_init' in /usr/lib/gcc/x86_64-redhat-linux/6.3.1/libgcc.a(cpuinfo.o) is referenced by DSO /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status I believe this comes from the file src/common/galois_field_encode.cc where it has different code paths based on the CPU capabilities, but I have no idea why this message is coming up or what the correct way is to fix it. My preliminary SRPM is at https://www.lesbg.com/jdieter/lizardfs-3.10.6 -2.fc25.src.rpm The build log is at https://www.lesbg.com/jdieter/lizardfs-build.log 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#Troubleshooting_steps_for_package_maintainers 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 I think it would be better to report upstream and ask for a fix. Cheers Mattia _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx