Skip Menu |

This queue is for tickets about the File-LibMagic CPAN distribution.

Report information
The Basics
Id: 107519
Status: resolved
Priority: 0/
Queue: File-LibMagic

People
Owner: Nobody in particular
Requestors: trevor [...] tecnopolis.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cannot build on stock Fedora 21
Date: Sat, 3 Oct 2015 03:14:32 -0500
To: bug-File-LibMagic [...] rt.cpan.org
From: Trevor Cordes <trevor [...] tecnopolis.ca>
I cannot build File::LibMagic v1.15 on my fairly stock Fedora 21 systems (32 or 64 bit). in cpan: Checking for magic.h... no This module requires the libmagic.so library and magic.h header. See INSTALL.md for more details on installing these. Manually: perl Makefile.PL Checking for magic.h... no This module requires the libmagic.so library and magic.h header. See perl Makefile.PL --include /usr/include/linux Checking for magic.h... yes Checking for magic_open in -lmagic... no This module requires the libmagic.so library and magic.h header. See perl Makefile.PL --lib /usr/lib --include /usr/include/linux Checking for magic.h... yes Checking for magic_open in -lmagic... no This module requires the libmagic.so library and magic.h header. See find /usr/lib | grep libmagic /usr/lib/libmagic.so.1.0.0 /usr/lib/libmagic.so.1 strings /usr/lib/libmagic.so.1.0.0 |grep magic_open magic_open As you can see, I have the .h and .so files installed from stock Fedora 21 packages. And the library has the required function. I have no idea how to make it "see" what it is looking for. It would be really nice if this module would compile out of the box on popular linux distros. This bug might be same/similar to 85095, but that one seems stalled. File-LibMagic-1.15.tar.gz #perl --version This is perl 5, version 18, subversion 4 (v5.18.4) built for i386-linux-thread-multi Linux 4.1.6-100.fc21.i686+PAE #1 SMP Mon Aug 17 22:43:44 UTC 2015 i686 i686 i386 GNU/Linux Thanks!
On Sat Oct 03 04:14:47 2015, trevor@tecnopolis.ca wrote: Show quoted text
> I cannot build File::LibMagic v1.15 on my fairly stock Fedora 21 > systems > (32 or 64 bit). > > in cpan: > Checking for magic.h... no > This module requires the libmagic.so library and magic.h header. See > INSTALL.md for more details on installing these. > > Manually: > > perl Makefile.PL > Checking for magic.h... no > This module requires the libmagic.so library and magic.h header. See > > perl Makefile.PL --include /usr/include/linux > Checking for magic.h... yes > Checking for magic_open in -lmagic... no > This module requires the libmagic.so library and magic.h header. See > > perl Makefile.PL --lib /usr/lib --include /usr/include/linux > Checking for magic.h... yes > Checking for magic_open in -lmagic... no > This module requires the libmagic.so library and magic.h header. See > > find /usr/lib | grep libmagic > /usr/lib/libmagic.so.1.0.0 > /usr/lib/libmagic.so.1 > > strings /usr/lib/libmagic.so.1.0.0 |grep magic_open > magic_open > > As you can see, I have the .h and .so files installed from stock > Fedora 21 > packages. And the library has the required function.
No, the magic.h in /usr/include/linux is not the right file. This is a linux kernel header. You need to install the dev package for libmagic.
Subject: Re: [rt.cpan.org #107519] cannot build on stock Fedora 21
Date: Sat, 3 Oct 2015 17:33:04 -0500
To: bug-File-LibMagic [...] rt.cpan.org
From: Trevor Cordes <trevor [...] tecnopolis.ca>
On 2015-10-03 Dave Rolsky via RT wrote: Show quoted text
> No, the magic.h in /usr/include/linux is not the right file. This is > a linux kernel header. You need to install the dev package for > libmagic.
Oh, ok thanks! It took some poking around but in Fedora the rpm I require to get these headers/libs is "file-devel" (I was only looking for magic, and file-libs, and file-libs-devel before).