pobrn / mktorrent

A simple command line utility to create BitTorrent metainfo files
Other
472 stars 73 forks source link

Unable to create torrent of files over 2GB on 32bit OS #28

Closed eWU6yS6F closed 5 years ago

eWU6yS6F commented 5 years ago

Trying to create torrents containing files over 2GB, with mktorrent 1.1, on ubuntu 16.04 32bit:

mktorrent -a https://random-tracker.com some_file_larger_than_2gb.iso
mktorrent 1.1 (c) 2007, 2009 Emil Renner Berthing

Error stat'ing 'some_file_larger_than_2gb.iso: Value too large for defined data type

Trying with mktorrent 1.0 and it creates files without problem:

/usr/bin/mktorrent -a https://some-tracker.com some_file_larger_than_2gb.iso
mktorrent 1.0 (c) 2007, 2009 Emil Renner Berthing

Hashed 1114 of 1114 pieces.
Writing metainfo file... done.

Creating torrents with files under 2GB works without problem on both 1.0 and 1.1

uname -a: Linux montera 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 09:00:45 UTC 2018 i686 i686 i686 GNU/Linux

eWU6yS6F commented 5 years ago

uncommenting: USE_LARGE_FILES = 1 in the makefile did the trick, issue closed.