Shared library & install names
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:mime-version:subject:message-id:to:date :x-mailer; bh=emu5EnPscWh2ZbsB9prbx8cM0d0F6lN7xZBxAcUnDvc=; b=oKBmSMNz4/2qvso/Zkt0PJfDjlpFflSmGa+Y0U+ce7gQZ1gUTOyymPBERbCazG+Ovb I9EDWVdlg2lZ77F+9e4M57+LDt4s8TAnlDSLFWxd65NnGqggN5iGZ6/nRUGxlRAP4Vxw ykCWkWoqqt9/bDVbq4bcqW611o/RjK+HGuYhc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:to:date:x-mailer; b=UQtjF0DZ8YOnxxYGJJidqIKVLxE1BvphnrGiJkItCpJeZO7Kk7g3EU5EWQM9l0udBy y+ntcDD/s66k0NhAEzNLaT93elFItzISjVMcoSCpJskTmhhsvBl+C3fqwXpZuVcrpzen JDnJ+QXD1w09kLjxkJEcq4s8EG4vHxS5pbE4A= Hi list, dyld: loaded: ~/.python-eggs/pystuff.egg-tmp/pystuff/shared.so dyld: loaded: /usr/lib/libxml2.2.dylib Regards, Ryan Govostes _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Ryan Govostes