rtorrent, libtorrent and gcc 4.3.2

I ran into a small glitch last night while trying to compile rtorrent 0.8.2 and libtorrent 0.12.2 with gcc 4.3.2. Both halted in compiling, with errors like “‘abs’ is not a member of ‘std'” and “‘gmtime’ is not a member of ‘std'”.

I found a page that shows how to circumvent similar errors in Ubuntu, and the patches it linked work for Crux too. Here’s the page, here’s the rtorrent patch and here’s the libtorrent patch. Click the download link at the bottom of both of those patch reports to download the text files.

Adding a patch line to the ports worked fine both times.

# Description: Very efficient C++ torrent library
# URL:         http://libtorrent.rakshasa.no/
# Maintainer:  
# Packager:    
# Depends on:  libsigc++

name=libtorrent
version=0.12.2
release=1
source=("http://libtorrent.rakshasa.no/downloads/libtorrent-$version.tar.gz" \
"libtorrent-gcc43-v2.patch")

build()
{
   cd $name-$version
   patch -p1 -i $SRC/libtorrent-gcc43-v2.patch
   ./configure \
   --prefix=/usr \
   --disable-nls \
   --disable-debug
   make
   make install DESTDIR=$PKG
}
# Description: curses frontend for libtorrent
# URL:         http://libtorrent.rakshasa.no/
# Maintainer:  
# Packager:    
# Depends on:  libtorrent curl

name=rtorrent
version=0.8.2
release=1
source=("http://libtorrent.rakshasa.no/downloads/rtorrent-$version.tar.gz" \
"rtorrent-gcc43.patch")

build()
{
	cd $name-$version
	patch -p1 -i $SRC/rtorrent-gcc43.patch
	./configure \
	--prefix=/usr \
	--disable-nls \
	--disable-debug
	make
	make install DESTDIR=$PKG
	install -d $PKG/usr/share/$name/
	install doc/rtorrent.rc $PKG/usr/share/$name/
}

It looks like this time Ubuntu saves Crux. 😉

1 thought on “rtorrent, libtorrent and gcc 4.3.2

  1. Pingback: Case in point: rtorrent slave at 100Mhz 16Mb 810Mb « Motho ke motho ka botho

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s