[Xapian-tickets] [Xapian] #834: *BSD conditional to modify xapian-bindings/config.ac to suppress -lstdc++ library
Xapian
nobody at xapian.org
Tue Sep 24 05:33:49 BST 2024
#834: *BSD conditional to modify xapian-bindings/config.ac to suppress -lstdc++
library
--------------------------+-------------------------------
Reporter: David Gessel | Owner: Olly Betts
Type: defect | Status: assigned
Priority: normal | Milestone: 1.4.27
Component: Build system | Version: 1.4.22
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: FreeBSD
--------------------------+-------------------------------
Comment (by Olly Betts):
Perl bindings fail to load on OpenBSD:
{{{
# Error: Can't load '/root/xapian-
bindings/perl/auto/Xapian/Xapian.so' for module Xapian: Cannot load
specified object at /usr/libdata/perl5/amd64-openbsd/DynaLoader.pm line
206.
}}}
Python too:
{{{
/usr/local/bin/python3 -O -c 'import os;os.chdir("xapian");import _xapian'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: Cannot load specified object
}}}
So it seems none of the bindings actually work on OpenBSD in my CI job
anyway.
OpenBSD seems to package the Perl, Python and RUby bindings, but just
patch out the addition of `-lstdc++`:
https://github.com/openbsd/ports/blob/master/databases/xapian-
bindings/patches/patch-configure_ac
They don't seem to be doing anything special I can see:
https://github.com/openbsd/ports/blob/master/databases/xapian-
bindings/Makefile
The `sed` expression they apply doesn't look like it does anything to
current 1.4.x - it was added 6 years ago to "Allow building with ruby
2.5"; not sure what the `-fdeclspec` stuff is about - it seems it was
added for Ruby but I didn't get any issues with `__declspec` not being
available so I think that's probably out of date too...
(I do wish packagers would all feed patches upstream - it'd make
everyone's lives simpler.)
The vmactions stuff I'm using for CI runs everything as root inside a VM
so I guess it could be a side effect of running as root.
Anyway, it seems clear we should just remove the `-lstdc++` adding code
completely.
--
Ticket URL: <https://trac.xapian.org/ticket/834#comment:6>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list