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. ;)

About these ads

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,830 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: