K.Mandla's blog of Linux experiences

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.