[Xapian-discuss] xabian-full build error declaration of 'int eaccess
newsletter at donbruno.de
newsletter at donbruno.de
Sat Nov 26 16:27:10 GMT 2011
Hello
i have a problem with "gem install xabian-full", it would not build. The system is a Ubuntu Maverick.
i need it for redmine 1.2.2
Version lib6c-dev is 2.12.1-0
Can someone tell me, how can i do?
Thx..
Bruno
this is the error...
erflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -mfpmath=sse -msse2 -mtune=generic -g -O2 -MT examples/simplesearch.o -MD -MP -MF $depbase.Tpo -c -o examples/simplesearch.o examples/simplesearch.cc &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ./libtool --tag=CXX --mode=link g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -mfpmath=sse -msse2 -mtune=generic -g -O2 -R/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/lib -o examples/simplesearch examples/simplesearch.o libxapian.la
libtool: link: g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -mfpmath=sse -msse2 -mtune=generic -g -O2 -o examples/.libs/simplesearch examples/simplesearch.o ./.libs/libxapian.so -lz -luuid -Wl,-rpath -Wl,/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/lib
depbase=`echo examples/xapian-metadata.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I./common -I./include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -mfpmath=sse -msse2 -mtune=generic -g -O2 -MT examples/xapian-metadata.o -MD -MP -MF $depbase.Tpo -c -o examples/xapian-metadata.o examples/xapian-metadata.cc &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ./libtool --tag=CXX --mode=link g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -mfpmath=sse -msse2 -mtune=generic -g -O2 -R/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/lib -o examples/xapian-metadata examples/xapian-metadata.o libxapian.la
libtool: link: g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -mfpmath=sse -msse2 -mtune=generic -g -O2 -o examples/.libs/xapian-metadata examples/xapian-metadata.o ./.libs/libxapian.so -lz -luuid -Wl,-rpath -Wl,/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/lib
cd . && /bin/bash ./config.status xapian-config
config.status: creating xapian-config
make[2]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3'
Making all in docs
make[2]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/docs'
Making all in tests
make[2]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/tests'
make all-am
make[3]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/tests'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/tests'
make[2]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/tests'
make[1]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3'
cp -r .libs/* ../lib/
./configure --prefix=/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3 --exec-prefix=/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3 --with-ruby
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for xapian-config... /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/xapian-config
checking /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/xapian-config works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for /opt/bitnami/ruby/bin/ruby... /opt/bitnami/ruby/bin/ruby
checking /opt/bitnami/ruby/bin/ruby version... ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
checking for /opt/bitnami/ruby/lib/ruby/1.8/i686-linux/ruby.h... yes
checking ruby/io.h... no
checking whether to use -fvisibility=hidden... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xapian-version.h
config.status: creating python/Makefile
config.status: creating python/docs/Makefile
config.status: creating php/Makefile
config.status: creating php/docs/Makefile
config.status: creating java/Makefile
config.status: creating java/native/Makefile
config.status: creating java/org/xapian/Makefile
config.status: creating java/org/xapian/errors/Makefile
config.status: creating java/org/xapian/examples/Makefile
config.status: creating java-swig/Makefile
config.status: creating tcl8/Makefile
config.status: creating tcl8/docs/Makefile
config.status: creating tcl8/pkgIndex.tcl
config.status: creating csharp/Makefile
config.status: creating csharp/docs/Makefile
config.status: creating csharp/AssemblyInfo.cs
config.status: creating ruby/Makefile
config.status: creating ruby/docs/Makefile
config.status: creating xapian-bindings.spec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
*** Building bindings for languages: ruby
make clean all
Making clean in ruby
make[1]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
Making clean in docs
make[2]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby/docs'
test -z "xapian.rb" || rm -f xapian.rb
rm -rf .libs _libs
rm -f *.lo
make[2]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby/docs'
Making clean in .
make[2]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
test -z "" || rm -f
rm -rf .libs _libs
test -z "_xapian.la" || rm -f _xapian.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
make[2]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
make[1]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
Making clean in .
make[1]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3'
rm -rf .libs _libs
rm -f *.lo
make[1]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3'
make all-recursive
make[1]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3'
Making all in ruby
make[2]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
make all-recursive
make[3]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
Making all in .
make[4]: Entering directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/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/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/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/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-core-1.2.3/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.4/i686-linux-gnu/bits/gthr-default.h:42,
from /usr/include/c++/4.4/i686-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/basic_string.h:41,
from /usr/include/c++/4.4/string:53,
from xapian_wrap.cc:1832:
/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)'
make[4]: *** [xapian_wrap.lo] Error 1
make[4]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3/ruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/xapian-bindings-1.2.3'
make: *** [all] Error 2
rake aborted!
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/Rakefile:6:in `system!'
(See full trace by running task with --trace)
Gem files will remain installed in /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3 for inspection.
Results logged to /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/xapian-full-1.2.3/./gem_make.out
More information about the Xapian-discuss
mailing list