Re: Omega on OpenBSD with shared libraries

Olly Betts <[email protected]> Wed, 25 Sep 2024 20:44:39 +0100
Newsgroups gmane.comp.search.xapian.general
Message-ID <[email protected]>
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