Omega on OpenBSD with shared libraries

Andrew McConachie andrew at depht.com
Thu Sep 26 09:58:20 BST 2024



On 25 Sep 2024, at 21:44, Olly Betts wrote:

> 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.
>

Thanks Olly.

Your message makes me realize this is more of a packaging and distro 
issue than an Omega issue.

—Andrew



More information about the Xapian-discuss mailing list