Bug 1210424 - magic_file() not found
Summary: magic_file() not found
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: librfm
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. (sagitter)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1204162 1343892
Blocks: harden-failure
TreeView+ depends on / blocked
 
Reported: 2015-04-09 16:57 UTC by Antonio T. (sagitter)
Modified: 2016-12-20 13:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 13:31:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1304277 0 unspecified CLOSED when hardening enabled linker says relocation R_X86_64_PC32 against undefined symbol can not be used when making a share... 2021-02-22 00:41:40 UTC

Internal Links: 1304277

Description Antonio T. (sagitter) 2015-04-09 16:57:03 UTC
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/

Comment 1 Jan Kaluža 2015-04-10 07:21:19 UTC
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.

Comment 2 Jan Kaluža 2015-04-10 07:22:28 UTC
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

Comment 3 Jan Kurik 2015-07-15 14:17:49 UTC
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

Comment 4 Sergio Basto 2016-07-25 00:03:45 UTC
"relocation R_X86_64_PC32 against undefined symbol"  happens when LDFLAGS are set with hardening and CFLAGS not .

Comment 5 Fedora End Of Life 2016-11-24 11:40:49 UTC
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.

Comment 6 Fedora End Of Life 2016-12-20 13:31:31 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.