Omega on OpenBSD with shared libraries

Olly Betts olly at survex.com
Wed Sep 25 20:44:39 BST 2024


On Mon, Sep 23, 2024 at 01:20:31PM +0200, Andrew McConachie wrote:
> The issue I’m having is that because slowcgi runs in a chroot environment
> the omega executable cannot load its shared libraries. Should the omega
> executable be built statically in this case? I feel like I must be missing
> something obvious, because I don’t see how the OpenBSD Omega package can
> ever work without completely defeating chroot.

If you're going to run something using shared libraries in a chroot-ed
environment, you're going to need to ensure those shared libraries are
available inside the chroot (e.g. by hard linking or copying them into
the chroot - simplest approach is to ensure they have the same paths
inside as outside).

Linking statically would work too but has the usual downsides.

This isn't specific to Omega or Xapian at all though - if the slowcgi
docs don't discuss solutions to this I'd suggest reaching out to the
slowcgi developers.

Cheers,
    Olly



More information about the Xapian-discuss mailing list