<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Thanks all for the replies. The software depends on openssl, libpng and libjpeg. In the past with other projects I left MacPorts in place but used Homebrew to install these dependencies, or just built those dependencies from scratch. It's not a "bad" thing for them to link to MacPorts libraries per se. <div><br></div><div>Some of this might be due to my installing binary pre-built ports, which seem to not be code signed or not signed by me. I don't know if I were to install all ports in source form and build them locally would resolve some of my issues. I'm not sure how to cause port to reinstall everything installed from source and to use source ports rather than binary ports going forward. I'm sure it is documented somewhere...</div><div><br id="lineBreakAtBeginningOfMessage"><div>
Smith<br><br><br>
</div>
<div><br><blockquote type="cite"><div>On May 9, 2024, at 6:39 AM, Bill Cole <macportsusers-20171215@billmail.scconsult.com> wrote:</div><br class="Apple-interchange-newline"><div><div>On 2024-05-09 at 02:03:15 UTC-0400 (Thu, 9 May 2024 00:03:15 -0600)<br>Smith via macports-users <smitty_decoy@mac.com><br>is rumored to have said:<br><br><blockquote type="cite">Hello,<br><br>I occasionally run into a problem where I'm building software from a tarball or a git clone outside of MacPorts, and the build process somehow ends up linking or trying to link against libraries in the MacPorts space (/opt/local). How can I prevent this from happening? Sometimes I just end up deleting /opt/local to get it to build and then re-install MacPorts, which can be painful or at least tiresome. I have to assume there is a better way or that I'm doing something wrong?<br><br>Thanks in advance for any thoughts,<br></blockquote><br>When building software outside of MacPorts, you should cleanse your environment of any clues that /opt/local/ is a place to look for software. Remove /opt/local/bin and /opt/local/sbin from your PATH when running any 'configure' script (or other GNU auto* tools) that looks for tools and libraries.<br><br>Any software that is meant to be multiplatform should have some mechanism for explicitly setting where to find libraries, such as options to an autoconf-based configure script. You can use those or (less ideal) just manually obliterate any hints of /opt/local in the Makefiles created by the configure script.<br><br>-- <br>Bill Cole<br>bill@scconsult.com or billcole@apache.org<br>(AKA @grumpybozo@toad.social and many *@billmail.scconsult.com addresses)<br>Not Currently Available For Hire<br></div></div></blockquote></div><br></div></body></html>