#44346: Selfupdate fails with Undefined symbols for architecture x86_64: "_rl_username_completion_function" ---------------------------------+-------------------------------- Reporter: bugmail-macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: Port: | ---------------------------------+-------------------------------- Comment (by cal@…): `/opt/local/include` and `/opt/local/lib` are removed from the respective compiler's search paths when using selfupdate. MacPorts itself (or rather, its configure script) takes care of that, so those are probably not the problem. That leaves the ones in `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs` which are unused unless an SDK is being used (selfupdate doesn't). The version in `/usr/include/readline/readline.h` should be the correct header. I think what you're seeing is an incompatibility between the header being used and the library actually being linked. The copies of libreadline in `/Library/Frameworks/R.framework` might be the problem here -- I think those are, unfortunately, in the compiler's standard search paths. You could try moving R.framework to `/var/tmp` for the time of the selfupdate and see if that helps. -- Ticket URL: <https://trac.macports.org/ticket/44346#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X