[MacPorts] #40167: python27: destroot fails: error: use of undeclared identifier 'Dl_info' (was: port upgrade python27)
MacPorts
noreply at macports.org
Sun Aug 18 17:20:25 PDT 2013
#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 |
-----------------------------+-------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => jwa@…
* cc: ryandesign@… (added)
* port: python27, mercurial, etc => python27
Comment:
The relevant error in the log seems to be:
{{{
:info:destroot /usr/bin/clang -arch x86_64 -arch i386 -isysroot /
-L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db46
-arch x86_64 -arch i386 -DPYTHONFRAMEWORK='"Python"' -o pythonw
./Tools/pythonw.c -I.. -I./../Include
../Python.framework/Versions/2.7/Python
:info:destroot ./Tools/pythonw.c:58:5: error: use of undeclared identifier
'Dl_info'
:info:destroot Dl_info info;
:info:destroot ^
}}}
This was not a clean build and we would usually ask you to
[http://guide.macports.org/chunked/project.html#project.tickets.prerequisites
clean and try again], and we may yet do so if the below does not lead to a
solution.
I Googled that error message and found
[http://sourceforge.net/mailarchive/forum.php?thread_name=50B801C3.7040005%40gmail.com&forum_name
=fink-users one hit, on the fink mailing list], implicating an ancient
copy of dlfcn in /usr/local. Do you have either or both of these files?
{{{
/usr/local/include/dlfcn.h
/usr/local/lib/libdl.dylib
}}}
If so, delete them, clean python27 and try again.
In general, we do not support users having files in /usr/local because of
these types of conflicts.
--
Ticket URL: <https://trac.macports.org/ticket/40167#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list