[File] [E] Error running file 5-40
Christos Zoulas
christos at zoulas.com
Thu May 27 17:28:09 UTC 2021
Add -Wl,-R<pathtoyourlibmagic.so> in the Makefile link line.
christos
> On May 27, 2021, at 12:47 PM, Matthew Czarnek <matthew.czarnek at verizonmedia.com> wrote:
>
> You may be right about that:
>
> icdev$: ldd bin/file
>
> linux-vdso.so.1 => (0x00007ffd287f6000)
>
> libmagic.so.1 => /lib64/libmagic.so.1 (0x00007f7564470000)
>
> libc.so.6 => /lib64/libc.so.6 (0x00007f75640a2000)
>
> libz.so.1 => /lib64/libz.so.1 (0x00007f7563e8c000)
>
> /lib64/ld-linux-x86-64.so.2 (0x00007f756468d000)
>
> Is there a different way to tell it which installation directory to use? Does exec-prefix need to be set?
>
> Something else interesting I noticed: I don't seem to have a 'magic.h' file in the file-5.40 folder that was extracted from the zip. Though I do have a 'magic.h.in <http://magic.h.in/>' Probably that's fine and something related to Makefiles that I don't understand.
>
>
>
> On Thu, May 27, 2021 at 12:38 PM Christos Zoulas <christos at zoulas.com <mailto:christos at zoulas.com>> wrote:
>
> Perhaps it is picking up the old libmagic.so. What does 'ldd file/bin/file' say?
>
>
>
> christos
>
>
>
>> On May 27, 2021, at 12:23 PM, Matthew Czarnek <matthew.czarnek at verizonmedia.com <mailto:matthew.czarnek at verizonmedia.com>> wrote:
>>
>>
>> Thank you again to Christos and Guy for helping me determine that my version of "file" is very out of date and the newest version would probably fix my problem.
>>
>> I'm now trying to compile file 5-40 from source and run it and it's throwing an error message:
>>
>> ./file/bin/file _samples/magic8
>>
>> ./file/bin/file: symbol lookup error: ./file/bin/file: undefined symbol: magic_version
>>
>>
>> Would you know how to solve this?
>>
>> Thanks,
>> Matt
>>
>> Steps I used to build this and install to separate location so I don't overwrite the already installed file command:
>> Download file 5-40
>> ./configure --prefix=<path>/file/
>> make
>> make install
>>
>> run using:
>>
>> ./file/bin/file _samples/magic8
>>
>> ./file/bin/file: symbol lookup error: ./file/bin/file: undefined symbol: magic_version
>>
>> I've tried a couple others too, such as:
>>
>> ./file file
>>
>> ./file: symbol lookup error: ./file: undefined symbol: magic_version
>>
>>
>>
>> --
>> File mailing list
>> File at astron.com <mailto:File at astron.com>
>> https://mailman.astron.com/mailman/listinfo/file <https://mailman.astron.com/mailman/listinfo/file>
>> <sanitizer.log>
>>
>
>
>
>
>
> <sanitizer.log>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20210527/7bcf6766/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20210527/7bcf6766/attachment.asc>
More information about the File
mailing list