[MacPorts] #18848: python26 : no dynamic library built
MacPorts
noreply at macports.org
Wed Mar 18 12:12:02 PDT 2009
#18848: python26 : no dynamic library built
---------------------------------+------------------------------------------
Reporter: neric27@… | Owner: blb@…
Type: defect | Status: closed
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Resolution: fixed | Keywords:
Port: python26 |
---------------------------------+------------------------------------------
Comment(by mcalhoun@…):
Replying to [comment:8 neric27@…]:
> Please, can you make a clear statement about why no dynamic library is
built ?
A dynamic library is being built, but it is not installed in the way
samba4 expects.
As has been previously indicated, dynamic libraries can be installed
in the form libXYZ.dylib.[[BR]]
They are linked in with
{{{
gcc ... -L... -lXYZ
}}}
python26 installs as a Framework.[[BR]]
It is inteded to be linked in as
{{{
gcc ... -F... -framework Python
}}}
Although this is only possible if python_select is installed.
To be sure to link in the correct library, you simply have to give the
full path
{{{
gcc ... ${frameworks_dir}/Python.framework/Versions/2.6/Python
}}}
${frameworks_dir}/Python.framework/Versions/2.6/Python[[BR]]
is the dynamic library, just with the Framework naming convention.
You can ask python how to link in the library, and it would give the
correct answer.[[BR]]
samba4, unfortunately, does not ask python.[[BR]]
It simply assumes the -L .. -lxxx structure.[[BR]]
This is why the earlier post suggested that it was a samba4 problem.
--
Ticket URL: <http://trac.macports.org/ticket/18848#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list