#40167: python27: destroot fails: error: use of undeclared identifier 'Dl_info' -----------------------------+------------------- Reporter: rob.edgerley@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: python27 | -----------------------------+------------------- Comment (by rob.edgerley@…): Well I'm both delighted and frustrated at the same time. I searched all day for a fix, and couldn't find a thing. That did the trick, thanks _very_ much! Just to summarise the problem and fix: Problem: Upgrade of py-*, mercurial, kate etc. etc. failed because python27 failed to make the necessary upgrade. Solution: delete† the following file files (if they exist): {{{ /usr/local/include/dlfcn.h /usr/local/lib/libdl.dylib }}} Solution: Perform a clean of the ports, {{{ sudo port clean all }}} Upgrade (with debug information for good measure): {{{ sudo port -d upgrade python27 }}} If everything passes then, upgrade the remaining outdated ports. {{{ sudo port upgrade outdated }}} Et voila! Thanks again for the support! † Take caution when deleting any kind of file. Check that it is safe for you to do so first. In my case, I renamed these files before deleting them, just to be on the safe side. -- Ticket URL: <https://trac.macports.org/ticket/40167#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X