Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634738 - dev-libs/xapian-bindings-1.4.5[perl] fails compile: xapian_wrap.cc:53662:5: error: ‘totallength’ is not a member of ‘Xapian’
Summary: dev-libs/xapian-bindings-1.4.5[perl] fails compile: xapian_wrap.cc:53662:5: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 658876
  Show dependency tree
 
Reported: 2017-10-19 02:57 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2018-06-28 18:49 UTC (History)
0 users

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


Attachments
build.log (xapian-bindings-1.4.5:20171019-024601.log,13.22 KB, text/plain)
2017-10-19 02:57 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-10-19 02:57:21 UTC
Created attachment 499236 [details]
build.log

>>> Compiling source in /var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5 ...                                   
make -j3                                                                                                                                 
make  all-recursive                                                                                                                      
make[1]: Entering directory '/var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5'                                 
Making all in .                                                                                                                          
make[2]: Entering directory '/var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5'                                 
make[2]: Leaving directory '/var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5'                                  
Making all in perl                                                                                                                       
make[2]: Entering directory '/var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5/perl'                            
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/lib64/perl5/5.26.1/x86_64-linux-t
hread-multi/CORE  -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden  -march=native -mtune=native -O2 -pipe -c
 -o xapian_wrap.lo xapian_wrap.cc                                                                                                        
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/lib64/perl5/5.26.1/x86_64-linux-thread-multi/CORE -fno-strict-
aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -march=native -mtune=native -O2 -pipe -c xapian_wrap.cc  -fPIC -DPIC -o
 .libs/xapian_wrap.o                                                                                                                     
xapian_wrap.cc: In function ‘void _wrap_Database_get_total_length(PerlInterpreter*, CV*)’:                                               
xapian_wrap.cc:53662:5: error: ‘totallength’ is not a member of ‘Xapian’                                                                 
     Xapian::totallength result;                                                                                                         
     ^~~~~~                                                                                                                              
xapian_wrap.cc:53675:9: error: ‘result’ was not declared in this scope                                                                   
         result = (Xapian::totallength)((Xapian::Database const *)arg1)->get_total_length();                                             
         ^~~~~~                                                                                                                          
xapian_wrap.cc:53675:19: error: ‘totallength’ is not a member of ‘Xapian’                                                                
         result = (Xapian::totallength)((Xapian::Database const *)arg1)->get_total_length();                                             
                   ^~~~~~                                                                                                                
xapian_wrap.cc:53681:96: error: ‘result’ was not declared in this scope                                                                  
     ST(argvi) = SWIG_From_unsigned_SS_long  SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(result)); argvi++ ;                      
                                                                                                ^                                        xapian_wrap.cc:955:80: note: in definition of macro ‘SWIG_PERL_CALL_ARGS_1’                                                              
 #define SWIG_PERL_CALL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_CALL arg1)                            
                                                                                ^~~~                          
make[2]: *** [Makefile:847: xapian_wrap.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5/perl'
make[1]: *** [Makefile:522: all-recursive] Error 1        
make[1]: Leaving directory '/var/tmp/portage/dev-libs/xapian-bindings-1.4.5/work/xapian-bindings-1.4.5'
make: *** [Makefile:444: all] Error 2
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-10-19 03:01:33 UTC
It may simply be a case of needing to declare a minimum version of dev-libs/xapian

Portage was quite happy with autounmasking xapian-bindings-1.4.5 and then building it against xapian-1.4.4
Comment 2 Anthony Basile gentoo-dev 2017-10-19 14:21:36 UTC
(In reply to Kent Fredric (IRC: kent\n) from comment #1)
> It may simply be a case of needing to declare a minimum version of
> dev-libs/xapian
> 
> Portage was quite happy with autounmasking xapian-bindings-1.4.5 and then
> building it against xapian-1.4.4

I tested building against xapian-1.4.5.  Did you get the failure by building xapian-bindings-1.4.5 against xapian-1.4.4 ?
Comment 3 Pacho Ramos gentoo-dev 2018-06-27 07:54:16 UTC
per his configure output, it seems he was indeed building with older xapian
checking if /usr/bin/xapian-config version >= 1.4.0... yes (1.4.4)
Comment 4 Pacho Ramos gentoo-dev 2018-06-28 18:49:03 UTC
[master e869d7a5e8b9] dev-libs/xapian-bindings: Fix install (#625592) and deps (#634738)
 1 file changed, 2 insertions(+), 2 deletions(-)