[Xapian-discuss] xabian-full build error declaration of 'int eaccess

newsletter at donbruno.de newsletter at donbruno.de
Sun Nov 27 13:12:23 GMT 2011


Hello Olly,

i have done a complete install of a ubuntu...

then i update all files...

apt-cache show ruby1.8-dev
Package: ruby1.8-dev
Priority: optional
Section: devel
Installed-Size: 1964
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: akira yamada <akira at debian.org>
Architecture: i386
Source: ruby1.8
Version: 1.8.7.352-2

apt-cache show libc6-dev
Package: libc6-dev
Priority: optional
Section: libdevel
Installed-Size: 20288
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: GNU Libc Maintainers <debian-glibc at lists.debian.org>
Architecture: i386
Source: eglibc
Version: 2.13-20ubuntu5

but when i compile xapian-bindings from http://xapian.org/download

this is the message:

make[3]: Entering directory `/home/bitnami/xapian-bindings-1.2.7/ruby'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/bitnami/ruby/lib/ruby/1.8/i686-linux -I/opt/bitnami/ruby/lib/ruby/1.8/i686-linux -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c -o xapian_wrap.lo xapian_wrap.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/bitnami/ruby/lib/ruby/1.8/i686-linux -I/opt/bitnami/ruby/lib/ruby/1.8/i686-linux -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c xapian_wrap.cc -fPIC -DPIC -o .libs/xapian_wrap.o
In file included from /usr/include/c++/4.6/i686-linux-gnu/./bits/gthr-default.h:42:0,
 from /usr/include/c++/4.6/i686-linux-gnu/./bits/gthr.h:162,
 from /usr/include/c++/4.6/ext/atomicity.h:34,
 from /usr/include/c++/4.6/bits/basic_string.h:41,
 from /usr/include/c++/4.6/string:54,
 from xapian_wrap.cc:1836:
/usr/include/unistd.h:298:14: error: declaration of 'int eaccess(const char*, int) throw ()' has a different exception specifier
/opt/bitnami/ruby/lib/ruby/1.8/i686-linux/missing.h:50:12: error: from previous declaration 'int eaccess(const char*, int)'
make[3]: *** [xapian_wrap.lo] Error 1
make[3]: Leaving directory `/home/bitnami/xapian-bindings-1.2.7/ruby'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/bitnami/xapian-bindings-1.2.7/ruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bitnami/xapian-bindings-1.2.7'
make: *** [all] Error 2

i don't understand that... the xapian-core still compile and install... 

can you help me?

THX
Bruno


----- Ursprüngliche Nachricht -----
Von: Olly Betts
Gesendet: 27.11.11 00:31 Uhr
An: newsletter at donbruno.de, xapian-discuss at lists.xapian.org
Betreff: Re: [Xapian-discuss] xabian-full build error declaration of 'int eaccess

On Sat, Nov 26, 2011 at 11:14:19PM +0000, Olly Betts wrote:
> On Sat, Nov 26, 2011 at 05:27:10PM +0100, newsletter at donbruno.de wrote:
> > /usr/include/unistd.h:298: error: declaration of 'int eaccess(const char*, int) throw ()' throws different exceptions
> > /opt/bitnami/ruby/lib/ruby/1.8/i686-linux/missing.h:50: error: from previous declaration 'int eaccess(const char*, int)'
> 
> I have no idea what's wrong here. It sounds like a clash between ruby
> and the C library. Xapian's ruby bindings don't even mention eaccess...

Actually I do know what the issue is here (I have seen it before, but
over 4 years ago so it didn't ring a bell right away).

The bug is in ruby1.8 - you'll need to rebuild it against your current
libc (or install a newer pre-built package):

http://bugs.debian.org/420325 

Cheers,
 Olly




More information about the Xapian-discuss mailing list