Bug#777972: libsearch-xapian-perl: ftbfs with GCC-5
gregor herrmann
gregoa at debian.org
Sat Jul 4 13:21:24 UTC 2015
On Mon, 29 Jun 2015 16:20:20 +1200, Olly Betts wrote:
> On Thu, Feb 12, 2015 at 11:46:58PM +0100, gregor herrmann wrote:
> > > /usr/include/xapian/version.h:28:2: error: #error The C++ ABI version of compiler you are using does not match
> > > #error The C++ ABI version of compiler you are using does not match
> > > ^
> > > /usr/include/xapian/version.h:29:2: error: #error that of the compiler used to build the library. The versions
> > > #error that of the compiler used to build the library. The versions
> > > ^
> > > /usr/include/xapian/version.h:30:2: error: #error must match or your program will not work correctly.
> > > #error must match or your program will not work correctly.
> > > ^
> > > /usr/include/xapian/version.h:31:2: error: #error The Xapian library was built with g++ 4.9.1
> > > #error The Xapian library was built with g++ 4.9.1
> > > ^
> >
> > Right, should be fixed once libxapian is compiled with g++-5.
>
> xapian-core 1.2.21-1 relaxes this check to a warning - apparently the
> ABI changes only affect obscure cases. It's an upstream change, which
> I unfortunately failed to summarise in debian/changelog.
>
> So I'd expect libsearch-xapian-perl will now build.
I did a quick try now (cowbuilder, amd64, sid+experimental, with g++
and friends from experimental). Results: The errors are warnings, but
later we get real problems:
[..]
Running Mkbootstrap for Search::Xapian ()
chmod 644 Xapian.bs
/usr/bin/perl /usr/share/perl/5.20/ExtUtils/xsubpp -C++ -typemap /usr/share/perl/5.20/ExtUtils/typemap -typemap perlobject.map -typemap typemap-errorclasses -typemap typemap Xapian.xs > Xapian.xsc && mv Xapian.xsc Xapian.c
g++ -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DVERSION=\"1.2.19.0\" -DXS_VERSION=\"1.2.19.0\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.20/CORE" Xapian.c
In file included from /usr/include/xapian.h:40:0,
from Xapian.xs:3:
/usr/include/xapian/version.h:29:2: warning: #warning The C++ ABI version of compiler you are using does not exactly match [-Wcpp]
#warning The C++ ABI version of compiler you are using does not exactly match
^
/usr/include/xapian/version.h:30:2: warning: #warning that of the compiler used to build the library. If linking fails [-Wcpp]
#warning that of the compiler used to build the library. If linking fails
^
/usr/include/xapian/version.h:31:2: warning: #warning due to missing symbols, this is probably the reason why. [-Wcpp]
#warning due to missing symbols, this is probably the reason why.
^
/usr/include/xapian/version.h:32:2: warning: #warning The Xapian library was built with g++ 4.9.2 [-Wcpp]
#warning The Xapian library was built with g++ 4.9.2
^
g++ -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DVERSION=\"1.2.19.0\" -DXS_VERSION=\"1.2.19.0\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.20/CORE" handle_exception.cc
In file included from /usr/include/xapian.h:40:0,
from handle_exception.cc:1:
/usr/include/xapian/version.h:29:2: warning: #warning The C++ ABI version of compiler you are using does not exactly match [-Wcpp]
#warning The C++ ABI version of compiler you are using does not exactly match
^
/usr/include/xapian/version.h:30:2: warning: #warning that of the compiler used to build the library. If linking fails [-Wcpp]
#warning that of the compiler used to build the library. If linking fails
^
/usr/include/xapian/version.h:31:2: warning: #warning due to missing symbols, this is probably the reason why. [-Wcpp]
#warning due to missing symbols, this is probably the reason why.
^
/usr/include/xapian/version.h:32:2: warning: #warning The Xapian library was built with g++ 4.9.2 [-Wcpp]
#warning The Xapian library was built with g++ 4.9.2
^
rm -f blib/arch/auto/Search/Xapian/Xapian.so
cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -shared -L/usr/local/lib -fstack-protector Xapian.o handle_exception.o -o blib/arch/auto/Search/Xapian/Xapian.so \
-lxapian \
[..]
dh_auto_test
make -j1 test TEST_VERBOSE=1
make[1]: Entering directory '/tmp/buildd/libsearch-xapian-perl-1.2.19.0'
Running Mkbootstrap for Search::Xapian ()
chmod 644 Xapian.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use Search::Xapian;'
# at t/01use.t line 3.
# Tried to use 'Search::Xapian'.
# Error: Can't load '/tmp/buildd/libsearch-xapian-perl-1.2.19.0/blib/arch/auto/Search/Xapian/Xapian.so' for module Search::Xapian: /tmp/buildd/libsearch-xapian-perl-1.2.19.0/blib/arch/auto/Search/Xapian/Xapian.so: undefined symbol: _ZNK6Xapian8Database18positionlist_beginEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE at /usr/lib/x86_64-linux-gnu/perl/5.20/DynaLoader.pm line 187.
# at t/01use.t line 3.
# Compilation failed in require at t/01use.t line 3.
# BEGIN failed--compilation aborted at t/01use.t line 3.
# Looks like you failed 1 test of 3.
t/01use.t .............
1..3
not ok 1 - use Search::Xapian;
ok 2
ok 3
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
[..]
(same for other tests)
Not sure if I'm doing something wrong ...
Cheers,
gregor
--
.''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Uriah Heep: Suicidal Man
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150704/4b8a45dd/attachment.sig>
More information about the pkg-perl-maintainers
mailing list