Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491506 - dev-libs/xapian-1.3.1-r1 should set REQUIRED_USE="inmemory? ( chert )" - xapian-inspect.cc:(.text+0x436): undefined reference to `ChertCursor::prev()'
Summary: dev-libs/xapian-1.3.1-r1 should set REQUIRED_USE="inmemory? ( chert )" - xapi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-17 14:39 UTC by Ulenrich
Modified: 2019-10-03 14:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulenrich 2013-11-17 14:39:51 UTC
This USE just compile fine for me:
dev-libs/xapian-1.3.1-r1  USE="brass chert -doc inmemory sse sse2 -static-libs"

But
dev-libs/xapian-1.3.1-r1  USE="brass -chert -doc inmemory sse sse2 -static-libs"
shows: (I didnt try -brass though)

libtool: link: x86_64-pc-linux-gnu-g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self -fvisibility=hidden -march=native -O1 -fpermissive -Wl,-O1 -Wl,--as-needed -o bin/.libs/xapian-inspect bin/bin_xapian_inspect-xapian-inspect.o  ./.libs/libgetopt.a ./.libs/libxapian-1.3.so -lz -luuid
bin/bin_xapian_inspect-xapian-inspect.o: In function `do_until(ChertCursor&, std::string const&)':
xapian-inspect.cc:(.text+0x436): undefined reference to `ChertCursor::prev()'
xapian-inspect.cc:(.text+0x478): undefined reference to `ChertCursor::read_tag(bool)'
xapian-inspect.cc:(.text+0x4b5): undefined reference to `ChertCursor::next()'
xapian-inspect.cc:(.text+0x574): undefined reference to `ChertCursor::read_tag(bool)'
xapian-inspect.cc:(.text+0x5d4): undefined reference to `ChertCursor::read_tag(bool)'
bin/bin_xapian_inspect-xapian-inspect.o: In function `main':
xapian-inspect.cc:(.text+0x89e): undefined reference to `ChertTable::ChertTable(char const*, std::string const&, bool, int, bool)'
xapian-inspect.cc:(.text+0x8ab): undefined reference to `ChertTable::open()'
xapian-inspect.cc:(.text+0x8c2): undefined reference to `ChertTable::really_empty() const'
xapian-inspect.cc:(.text+0x8f9): undefined reference to `ChertCursor::ChertCursor(ChertTable const*)'
xapian-inspect.cc:(.text+0x917): undefined reference to `ChertCursor::find_entry(std::string const&)'
xapian-inspect.cc:(.text+0x92e): undefined reference to `ChertCursor::next()'
xapian-inspect.cc:(.text+0x97a): undefined reference to `ChertCursor::read_tag(bool)'
xapian-inspect.cc:(.text+0xa81): undefined reference to `ChertCursor::next()'
xapian-inspect.cc:(.text+0xb2f): undefined reference to `ChertCursor::find_entry(std::string const&)'
xapian-inspect.cc:(.text+0xb39): undefined reference to `ChertCursor::prev()'
xapian-inspect.cc:(.text+0xca0): undefined reference to `ChertCursor::find_entry(std::string const&)'
xapian-inspect.cc:(.text+0xd16): undefined reference to `ChertCursor::find_entry(std::string const&)'
xapian-inspect.cc:(.text+0x1013): undefined reference to `ChertCursor::~ChertCursor()'
xapian-inspect.cc:(.text+0x101f): undefined reference to `ChertCursor::~ChertCursor()'
xapian-inspect.cc:(.text+0x102c): undefined reference to `ChertTable::~ChertTable()'
xapian-inspect.cc:(.text+0x103e): undefined reference to `ChertTable::~ChertTable()'
xapian-inspect.cc:(.text+0x1113): undefined reference to `ChertCursor::~ChertCursor()'
xapian-inspect.cc:(.text+0x1128): undefined reference to `ChertTable::~ChertTable()'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/xapian-inspect] Error 1
Comment 1 Johan Bergström 2013-11-21 23:07:38 UTC
Sounds good to me. I've talked somewhat with upstream re disabling/enabling everything and their general advice is not to. If you disable chert, things start breaking. I still prefer having it there and fixing use cases.

Patch:
--- dev-libs/xapian/xapian-1.3.1-r1.ebuild
+++ dev-libs/xapian/xapian-1.3.1-r1.ebuild
@@ -17,7 +17,7 @@ IUSE="doc static-libs -sse +sse2 +brass +chert +inmemory"

 DEPEND="sys-libs/zlib"
 RDEPEND="${DEPEND}"
-
+REQUIRED_USE="inmemory? ( chert )"
 S="${WORKDIR}/${MY_P}"

 src_configure() {
Comment 2 Anthony Basile gentoo-dev 2013-11-22 11:12:51 UTC
(In reply to Johan Bergström from comment #1)
> Sounds good to me. I've talked somewhat with upstream re disabling/enabling
> everything and their general advice is not to. If you disable chert, things
> start breaking. I still prefer having it there and fixing use cases.
> 
> Patch:
> --- dev-libs/xapian/xapian-1.3.1-r1.ebuild
> +++ dev-libs/xapian/xapian-1.3.1-r1.ebuild
> @@ -17,7 +17,7 @@ IUSE="doc static-libs -sse +sse2 +brass +chert +inmemory"
> 
>  DEPEND="sys-libs/zlib"
>  RDEPEND="${DEPEND}"
> -
> +REQUIRED_USE="inmemory? ( chert )"
>  S="${WORKDIR}/${MY_P}"
> 
>  src_configure() {


I'm not so sure.  The following work

    USE="-brass -chert -inmemory -doc -sse -sse2 -static-libs"
    USE="-brass -chert  inmemory -doc -sse -sse2 -static-libs"
    USE="-brass  chert -inmemory -doc -sse -sse2 -static-libs"
    USE="-brass  chert  inmemory -doc -sse -sse2 -static-libs"

    USE=" brass  chert -inmemory -doc -sse -sse2 -static-libs"
    USE=" brass  chert  inmemory -doc -sse -sse2 -static-libs" 

The following fail

    USE="brass -chert -inmemory -doc -sse -sse2 -static-libs"
    USE="brass -chert  inmemory -doc -sse -sse2 -static-libs"


It follows that we need REQUIRED_USE="brass? ( chert )"

Please check this at your end too.
Comment 3 Anthony Basile gentoo-dev 2013-12-01 13:03:36 UTC
(In reply to Anthony Basile from comment #2)
> (In reply to Johan Bergström from comment #1)
> > Sounds good to me. I've talked somewhat with upstream re disabling/enabling
> > everything and their general advice is not to. If you disable chert, things
> > start breaking. I still prefer having it there and fixing use cases.
> > 
> > Patch:
> > --- dev-libs/xapian/xapian-1.3.1-r1.ebuild
> > +++ dev-libs/xapian/xapian-1.3.1-r1.ebuild
> > @@ -17,7 +17,7 @@ IUSE="doc static-libs -sse +sse2 +brass +chert +inmemory"
> > 
> >  DEPEND="sys-libs/zlib"
> >  RDEPEND="${DEPEND}"
> > -
> > +REQUIRED_USE="inmemory? ( chert )"
> >  S="${WORKDIR}/${MY_P}"
> > 
> >  src_configure() {
> 
> 
> I'm not so sure.  The following work
> 
>     USE="-brass -chert -inmemory -doc -sse -sse2 -static-libs"
>     USE="-brass -chert  inmemory -doc -sse -sse2 -static-libs"
>     USE="-brass  chert -inmemory -doc -sse -sse2 -static-libs"
>     USE="-brass  chert  inmemory -doc -sse -sse2 -static-libs"
> 
>     USE=" brass  chert -inmemory -doc -sse -sse2 -static-libs"
>     USE=" brass  chert  inmemory -doc -sse -sse2 -static-libs" 
> 
> The following fail
> 
>     USE="brass -chert -inmemory -doc -sse -sse2 -static-libs"
>     USE="brass -chert  inmemory -doc -sse -sse2 -static-libs"
> 
> 
> It follows that we need REQUIRED_USE="brass? ( chert )"
> 
> Please check this at your end too.

ping