Shared library & install names
Shared library & install names
- Subject: Shared library & install names
- From: Ryan Govostes <email@hidden>
- Date: Fri, 26 Dec 2008 20:31:56 -0500
Hi list,
I'm packaging up a Python .egg for distribution. The Python code calls
functions in a shared library, which in turn imports from libxml2. I
need a newer version of libxml2 than what ships with OS X, so I've
built my own, and want to add this to the .egg.
However, I'm having a hard time figuring out the install names for the
shared library (shared.so) and my custom built libxml2.dylib. For
instance, I tried setting the install path of libxml2 to
@loader_path/../libxml2.dylib as follows:
~/.python-eggs/pystuff.egg-tmp/pystuff/shared.so:
@loader_path/../libxml2.dylib (compatibility version 10.0.0, current
version 10.2.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.3)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 117.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/~.python-eggs/pystuff.egg-tmp/pystuff/libxml2.dylib:
@loader_path/../libxml2.dylib (compatibility version 10.0.0, current
version 10.2.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 117.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.3)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current
version 7.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
However, DYLD_PRINT_LIBRARIES reveals it's loading /usr/lib/
libxml2.2.dylib despite my intentions:
dyld: loaded: ~/.python-eggs/pystuff.egg-tmp/pystuff/shared.so
dyld: loaded: /usr/lib/libxml2.2.dylib
This suggests to me that it's not "finding" my libxml2 despite being
in the same directory as shared.so. I take it that I misunderstood
what I've read about install names. What should I look into doing?
Regards,
Ryan Govostes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden