Ticket #44 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Shared libraries on OS X aren't .so; breaks Python tests

Reported by: broder@… Owned by:
Priority: major Milestone: 3.0 release
Component: zephyr.build Version: 3.0~beta.2362
Keywords: Cc:
Platform: MacOS X

Description

Shared libraries on Mac OS X are built with the .dylib extension. Because zephyr/lib/zephyr_tests.py specifically tries to load libzephyr.so.4.0.0, that fails on OS X, which causes the libzephyr build to fail as well.

For even more fun, OS X's shared libraries puts the version number before the extension instead of after, so it's libzephyr.4.0.0.dylib.

Since libtool creates a simple libzephyr.{so,dylib} symlink in .libs as part of its build process, I think it's sufficient to load that instead, conditionalizing on sys.platform to pick the correct extension.

Attachments

library-extensions.diff Download (1.2 KB) - added by broder@… 4 years ago.

Change History

Changed 4 years ago by broder@…

comment:1 Changed 4 years ago by kcr@…

  • Milestone set to 3.0 release

comment:2 Changed 4 years ago by kcr@…

  • Status changed from new to closed
  • Resolution set to fixed

[2512] should find the libraries now.

Note: See TracTickets for help on using tickets.