Description of problem: magic_file in magic.h file is not detected on **Fedora 23**. It's required by 'librfm' code when it's compiled: http://koji.fedoraproject.org/koji/getfile?taskID=9445116&name=build.log&offset=-4000 Version-Release number of selected component (if applicable): file-5.22-3.fc23 Actual results: checking for magic_file in -lmagic... no configure: error: *** Shucks! *** Error: libmagic header files were not found. Debian librfm5 is "libmagic-dev" or you can obtain the original author´s latest version by anonymous FTP on ftp.astron.com in the directory /pub/file/file-X.YZ.tar.gz. The Debian version adds a number of new magic entries. It can be obtained from every site carrying a Debian distribution (that is ftp.debian.org and mirrors) In OpenSUSE/Fedora, the librfm5 is called "file-devel". Additional info: librfm is compiled on Fedora 21 and Fedora 22. The code portion involved is: dnl Check for required packages # check for libmagic (from "file" utility) AC_CHECK_LIB([magic],[magic_file]) if test "$ac_cv_lib_magic_magic_file" = "no" ; then AC_MSG_ERROR([*** Shucks! *** Error: libmagic header files were not found. Debian package is "libmagic-dev" or you can obtain the original author´s latest version by anonymous FTP on ftp.astron.com in the directory /pub/file/file-X.YZ.tar.gz. The Debian version adds a number of new magic entries. It can be obtained from every site carrying a Debian distribution (that is ftp.debian.org and mirrors) In OpenSUSE/Fedora, the package is called "file-devel".]) fi Upstream bug: https://sourceforge.net/p/xffm/bugs/73/
This is caused by <https://fedoraproject.org/wiki/Changes/Harden_All_Packages?rd=Changes/Harden_all_packages_with_position-independent_code>. I will change the component to the librfm, because it's the problem with librfm build related to the that Hardening feature. I presume there will be some global solution for that, since it will cause more builds to fail.
Particular build failure is: configure:18836: gcc -o conftest -O2 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld conftest.c -lmagic >&5 /usr/bin/ld: /tmp/ccqYJfEd.o: relocation R_X86_64_PC32 against undefined symbol `magic_file' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle. Changing version to '23'. (As we did not run this process for some time, it could affect also pre-Fedora 23 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23
"relocation R_X86_64_PC32 against undefined symbol" happens when LDFLAGS are set with hardening and CFLAGS not .
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.