Hi,

There seems to be a rather simple fix for this bug. lsdvd fails to
stat() the file (in lsdvd.c:main()) because DVD images are usually
larger than the 32-bit ~2G file size limit.

The solution is to tell the C-library to use the 64-bit versions of the
relevant system calls. This is as simple as just #define
_FILE_OFFSET_BITS=64, which can be easily accomplished with the
following patch to Makefile.am:

--- Makefile.am.orig 2004-12-24 12:39:04.000000000 +0200
+++ Makefile.am       2005-08-04 00:28:54.000000000 +0300
@@ -1,3 +1,3 @@
 bin_PROGRAMS = lsdvd
 lsdvd_SOURCES = lsdvd.c operl.c ohuman.c oxml.c oruby.c lsdvd.h operl.h oxml.h 
oruby.h
-lsdvd_CFLAGS = -ggdb
+lsdvd_CFLAGS = -ggdb -D_FILE_OFFSET_BITS=64


Or, at least it Works For Me(tm) :)


-- 
olli helenius <[EMAIL PROTECTED]> | [EMAIL PROTECTED] | [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to