You are not logged in.

#1 2008-06-21 07:29:23

mugen
Member
Registered: 2008-05-14
Posts: 51

error while downloading libtorrent using yaourt

here is the entire message :

use following PKGBUILD instead, it compiles OK:
# Contributor: Swen Simon <swsimon at gmail dot com>
pkgname=libtorrent-svn
_pkgname=libtorrent
pkgver=1060
pkgrel=1
pkgdesc="BitTorrent library written in C++"
arch=('i686')
url="http://libtorrent.rakshasa.no"
license="GPL"
depends=('libsigc++2.0' 'openssl')
makedepends=('subversion')
md5sums=('d6a3620e85d3504a8bed8c7d00896312')
source=('http://libtorrent.rakshasa.no/attachment/ticket/1266/libtorrent-gcc43-v2.patch?format=raw')
_svnmod="libtorrent"
_svntrunk="svn://rakshasa.no/libtorrent/trunk/$_svnmod"
build() {
cd $startdir/src
msg "Connecting to $_svnmod SVN server...."
svn co $_svntrunk $_svnmod -r $pkgver
msg "SVN checkout done or server timeout"
cd $_svnmod
msg "Starting make..."
./autogen.sh
./configure --prefix=/usr --disable-debug
cat $srcdir/libtorrent-gcc43-v2.patch?format=raw | patch -Np1 || return 1
make || return 1
mkdir -p $startdir/pkg/usr/bin
make DESTDIR=${startdir}/pkg install
}

      First Submitted: Tue, 27 Nov 2007 20:50:57 +0000
      Last Updated: (unknown)
libtorrent-svn 995-1 (Unsupported): BitTorrent library written in C++

==> libtorrent-svn dependencies:
 - libsigc++2.0 (already installed)
 - openssl (already installed)
 - subversion (already installed)
==>  Edit the PKGBUILD (recommended) ? [Y/n] ("A" to abort)
==>   ----------------------------------------------
==>n

==>  Continue the building of 'libtorrent-svn'? [Y/n]
==>   ----------------------------------------------
==>y



==> Building and installing package
mkdir: cannot create directory `/var/abs/local/yaourtbuild': Permission denied
==> WARNING: Unable to write in /var/abs/local/yaourtbuild/libtorrent-svn directory. Using /tmp directory
==> Determining latest svn revision...
  -> Version found: 1060
==> Making package: libtorrent-svn 1060-1  (Sat Jun 21 12:52:16 PDT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Validating source files with md5sums...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
==> Connecting to libtorrent SVN server....
Checked out revision 1060.
==> SVN checkout done or server timeout
==> Starting make...
aclocal...
/usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
/usr/share/aclocal/libxosd.m4:9:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libxosd.m4:9:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
autoheader...
libtoolize... using libtoolize
automake...
configure.ac:23: installing `./config.guess'
configure.ac:23: installing `./config.sub'
autoconf...
ready to configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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... 98304
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 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 whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) 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... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking the byte alignment... none needed
checking for user-defined CXXFLAGS... user-defined "-march=i686 -mtune=generic -O2 -pipe"
checking for TR1 support... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for epoll support... yes
checking size of long... 4
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking for statvfs... ok
checking if compiler supports __attribute__((visibility("default")))... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for STUFF... yes
checking for madvise... yes
checking signedness of mincore parameter... unsigned
checking for proper overloaded template function disambiguation... yes
checking if compiler supports __attribute__((unused))... yes
configure: creating ./config.status
config.status: creating libtorrent.pc
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/torrent/Makefile
config.status: creating src/torrent/peer/Makefile
config.status: creating src/torrent/data/Makefile
config.status: creating src/data/Makefile
config.status: creating src/dht/Makefile
config.status: creating src/download/Makefile
config.status: creating src/net/Makefile
config.status: creating src/protocol/Makefile
config.status: creating src/tracker/Makefile
config.status: creating src/utils/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
cd . && /bin/sh /tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/missing --run aclocal-1.10 -I scripts
/usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
/usr/share/aclocal/libxosd.m4:9:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libxosd.m4:9:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
 cd . && /bin/sh /tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/missing --run automake-1.10 --gnu 
cd . && /bin/sh /tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/missing --run autoconf
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/usr --disable-debug CFLAGS=-march=i686 -mtune=generic -O2 -pipe CXXFLAGS=-march=i686 -mtune=generic -O2 -pipe --no-create --no-recursion
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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... 98304
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 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 whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) 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... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking the byte alignment... none needed
checking for user-defined CXXFLAGS... user-defined "-march=i686 -mtune=generic -O2 -pipe"
checking for TR1 support... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for epoll support... yes
checking size of long... 4
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking for statvfs... ok
checking if compiler supports __attribute__((visibility("default")))... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for STUFF... yes
checking for madvise... yes
checking signedness of mincore parameter... unsigned
checking for proper overloaded template function disambiguation... yes
checking if compiler supports __attribute__((unused))... yes
configure: creating ./config.status
 /bin/sh ./config.status
config.status: creating libtorrent.pc
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/torrent/Makefile
config.status: creating src/torrent/peer/Makefile
config.status: creating src/torrent/data/Makefile
config.status: creating src/data/Makefile
config.status: creating src/dht/Makefile
config.status: creating src/download/Makefile
config.status: creating src/net/Makefile
config.status: creating src/protocol/Makefile
config.status: creating src/tracker/Makefile
config.status: creating src/utils/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
cd . && /bin/sh /tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent'
Making all in src
make[2]: Entering directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/src'
Making all in torrent
make[3]: Entering directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/src/torrent'
Making all in data
make[4]: Entering directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/src/torrent/data'
/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..    -march=i686 -mtune=generic -O2 -pipe -DNDEBUG -fvisibility=hidden   -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include   -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c -o file_list_iterator.lo file_list_iterator.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -march=i686 -mtune=generic -O2 -pipe -DNDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -MT file_list_iterator.lo -MD -MP -MF .deps/file_list_iterator.Tpo -c file_list_iterator.cc  -fPIC -DPIC -o .libs/file_list_iterator.o
In file included from file_list_iterator.cc:42:
file_list_iterator.h: In member function 'uint32_t torrent::FileListIterator::depth() const':
file_list_iterator.h:64: error: 'abs' is not a member of 'std'
make[4]: *** [file_list_iterator.lo] Error 1
make[4]: Leaving directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/src/torrent/data'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-svs/aur-libtorrent-svn/libtorrent-svn/src/libtorrent'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build libtorrent-svn package.

Offline

#2 2008-06-21 09:04:29

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: error while downloading libtorrent using yaourt

It needs a patch for gcc 4.3 to compile

Last edited by dolby (2008-06-21 09:04:39)


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2008-08-24 13:55:47

Misery
Member
Registered: 2008-04-10
Posts: 41

Re: error while downloading libtorrent using yaourt

It's old ... but maybe someone will search it. :-)

libtorrent: http://libtorrent.rakshasa.no/attachmen … 3-v2.patch
rtorrent: http://libtorrent.rakshasa.no/attachmen … cc43.patch

Last edited by Misery (2008-08-24 14:52:10)

Offline

Board footer

Powered by FluxBB