<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Add -Wl,-R<pathtoyourlibmagic.so> in the Makefile link line.<div class=""><br class=""></div><div class="">christos<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 27, 2021, at 12:47 PM, Matthew Czarnek <<a href="mailto:matthew.czarnek@verizonmedia.com" class="">matthew.czarnek@verizonmedia.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p class=""><defanged_div dir="ltr" class="">You may be right about that:<br class="">





</defanged_div></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><defanged_span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">icdev$: ldd bin/file</defanged_span></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><defanged_span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><defanged_span class="gmail-Apple-tab-span" style="white-space:pre"> </defanged_span>linux-vdso.so.1 =><defanged_span class="gmail-Apple-converted-space">  </defanged_span>(0x00007ffd287f6000)</defanged_span></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><defanged_span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><defanged_span class="gmail-Apple-tab-span" style="white-space:pre">        </defanged_span>libmagic.so.1 => /lib64/libmagic.so.1 (0x00007f7564470000)</defanged_span></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><defanged_span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><defanged_span class="gmail-Apple-tab-span" style="white-space:pre">    </defanged_span>libc.so.6 => /lib64/libc.so.6 (0x00007f75640a2000)</defanged_span></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><defanged_span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><defanged_span class="gmail-Apple-tab-span" style="white-space:pre">    </defanged_span>libz.so.1 => /lib64/libz.so.1 (0x00007f7563e8c000)</defanged_span></p><p class="gmail-p1" defanged_style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><defanged_span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><defanged_span class="gmail-Apple-tab-span" style="white-space:pre">    </defanged_span>/lib64/ld-linux-x86-64.so.2 (0x00007f756468d000)<br class=""><br class="">Is there a different way to tell it which installation directory to use? Does exec-prefix need to be set?<br class=""><br class="">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 '<a href="http://magic.h.in/" class="">magic.h.in</a>'  Probably that's fine and something related to Makefiles that I don't understand.</defanged_span></p><div class=""><br class="webkit-block-placeholder"></div><defanged_div class=""><br class=""><p class=""><defanged_div class="gmail_quote"></defanged_div></p><p class=""><defanged_div dir="ltr" class="gmail_attr">On Thu, May 27, 2021 at 12:38 PM Christos Zoulas <<a href="mailto:christos@zoulas.com" class="">christos@zoulas.com</a>> wrote:<br class=""></defanged_div></p><defanged_div class=""><blockquote class="gmail_quote" defanged_style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p class=""><defanged_div style="overflow-wrap: break-word;" class="">Perhaps it is picking up the old libmagic.so. What does 'ldd file/bin/file' say?</defanged_div></p><p class=""><defanged_div class=""><br class=""></defanged_div></p><defanged_div class=""><p class=""><defanged_div class="">christos<br class=""></defanged_div></p><p class=""><defanged_div class=""><br class=""></defanged_div></p><blockquote type="cite" class=""><p class=""><defanged_div class="">On May 27, 2021, at 12:23 PM, Matthew Czarnek <<a href="mailto:matthew.czarnek@verizonmedia.com" target="_blank" class="">matthew.czarnek@verizonmedia.com</a>> wrote:</defanged_div></p><defanged_div class=""><br class=""><p class=""><defanged_div class=""></defanged_div></p><p class=""><u class=""></u>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.<br class=""><br class="">I'm now trying to compile file 5-40 from source and run it and it's throwing an error message:<br class="">





<u class=""></u></p><p class=""><u class=""></u>./file/bin/file _samples/magic8<u class=""></u></p><p class=""><u class=""></u>./file/bin/file: symbol lookup error: ./file/bin/file: undefined symbol: magic_version<u class=""></u></p><br class="">Would you know how to solve this?<br class=""><br class="">Thanks,<br class="">Matt<br class=""><br class="">Steps I used to build this and install to separate location so I don't overwrite the already installed file command:<br class="">Download file 5-40<br class=""><p class=""><u class=""></u>./configure --prefix=<path>/file/<br class="">make<br class="">make install<br class=""><br class="">run using:<br class="">





<u class=""></u></p><p class=""><u class=""></u>./file/bin/file _samples/magic8<u class=""></u></p><p class=""><u class=""></u>
<u class=""></u></p><p class=""><u class=""></u>./file/bin/file: symbol lookup error: ./file/bin/file: undefined symbol: magic_version<br class=""><br class="">I've tried a couple others too, such as:<br class="">





<u class=""></u></p><p class=""><u class=""></u>./file file<u class=""></u></p><p class=""><u class=""></u>
<u class=""></u></p><p class=""><u class=""></u>./file: symbol lookup error: ./file: undefined symbol: magic_version<u class=""></u></p><p class=""><defanged_div class=""><br class=""></defanged_div></p><defanged_div class=""><u class=""></u>
-- <br class="">File mailing list<br class=""><a href="mailto:File@astron.com" target="_blank" class="">File@astron.com</a><br class=""><a href="https://mailman.astron.com/mailman/listinfo/file" target="_blank" class="">https://mailman.astron.com/mailman/listinfo/file</a><br class=""><defanged_span id="gmail-m_-7280495227959031752cid:1FEA81C3-B82F-4588-9B5B-A2C98B1B5E41" class=""><sanitizer.log></defanged_span><u class=""></u><div class=""><br class="webkit-block-placeholder"></div><defanged_div class=""></defanged_div></defanged_div></defanged_div></blockquote><div class=""><br class="webkit-block-placeholder"></div><defanged_div class=""><br class=""><div class=""><br class="webkit-block-placeholder"></div><defanged_div class=""><div class=""><br class="webkit-block-placeholder"></div><defanged_div class=""></defanged_div></defanged_div></defanged_div></defanged_div></blockquote><div class=""><br class="webkit-block-placeholder"></div><defanged_div class="">
<span id="cid:5D3FD0DF-0FA2-441C-B9E9-0BB1693D5759"><sanitizer.log></span></defanged_div></defanged_div></defanged_div></div></blockquote></div><br class=""></div></body></html>