Hi all.
magic_file function is not detected on my Fedora 23 build-system. 'file' package is a 5.22 version (see http://koji.fedoraproject.org/koji/buildinfo?buildID=614070, clic "info" to see all packaged files).
librfm-5.3.16.0 is not compiled:
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".
I tried to remove magic_file checking in configure.ac (http://fpaste.org/208949/), -lmagic library is not detected, but RPM building finishes.
librfm-5.3.16.0 is compiled fine in Fedora 21 instead.
This is a bug with the file or file-devel rpm for fedora-23
Note: Librfm and modules will compile if you remove the libmagic test from
configure, but then mimetype determination by magic (contents of the
file) will be inactive.