Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2005 14:31:41 +0100 (CET)
From:      Florent Thoumie <flz@xbsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/76463: Update port: net/libtorrent - fix compilation on 64 bits architectures
Message-ID:  <20050119133141.4C4F1119D2@gate.xbsd.org>
Resent-Message-ID: <200501191330.j0JDUSb8013594@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76463
>Category:       ports
>Synopsis:       Update port: net/libtorrent - fix compilation on 64 bits architectures
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 19 13:30:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Florent Thoumie
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
Xbsd.org
>Environment:

System: FreeBSD gate.xbsd.org 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Wed Nov 24 16:35:34 CET 2004 root@gate.xbsd.org:/usr/src/sys/i386/compile/GATE i386

>Description:

Fix compilation on amd64, sparc64 and probably ia64 by removing useless casts.

>How-To-Repeat:

N/A

>Fix:

--- libtorrent.diff begins here ---
diff -ruN libtorrent.orig/files/patch-src::data::file_chunk.cc libtorrent/files/patch-src::data::file_chunk.cc
--- libtorrent.orig/files/patch-src::data::file_chunk.cc	Thu Jan  1 01:00:00 1970
+++ libtorrent/files/patch-src::data::file_chunk.cc	Wed Jan 19 14:25:56 2005
@@ -0,0 +1,28 @@
+--- src/data/file_chunk.cc.orig	Mon Jan 17 21:31:30 2005
++++ src/data/file_chunk.cc	Mon Jan 17 21:32:21 2005
+@@ -6,6 +6,7 @@
+ #include <sstream>
+ #include <unistd.h>
+ #include <sys/mman.h>
++#include <sys/types.h>
+ 
+ namespace torrent {
+ 
+@@ -32,7 +33,7 @@
+     std::stringstream s;
+ 
+     s << "Tried to check incore status in FileChunk with out of range parameters or a NULL buffer ("
+-      << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ')';
++      << std::hex << '(' << m_begin << ',' << m_end << ')';
+ 
+     throw internal_error(s.str());
+   }
+@@ -63,7 +64,7 @@
+     std::stringstream s;
+ 
+     s << "Tried to advise FileChunk with out of range parameters"
+-      << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ',' << offset << ',' << len << ')';
++      << std::hex << '(' << m_begin << ',' << m_end << ',' << offset << ',' << len << ')';
+ 
+     throw internal_error(s.str());
+   }
--- libtorrent.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050119133141.4C4F1119D2>