ports/76463: Update port: net/libtorrent - fix compilation on 64 bits architectures
Florent Thoumie
flz at xbsd.org
Wed Jan 19 13:30:29 UTC 2005
>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 at 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:
More information about the freebsd-ports-bugs
mailing list