[PATCH] lseek vs lseek64 typo
Diego Biurrun
diego at biurrun.de
Tue Oct 31 18:16:52 CET 2006
There seems to be a typo in the MinGW section of src/common.h, we have
# define lseek _lseeki64
there, but there is no lseek in the code. I assume this is a typo and
what was meant was
# define lseek64 _lseeki64
The error message is
/bin/sh ../libtool --mode=link gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDVDCSS_DIST -Wsign-compare -Wall -g -O2 -o libdvdcss.la -rpath /usr/local/lib -version-info 2:8:0 -no-undefined libdvdcss.lo device.lo css.lo ioctl.lo error.lo
gcc -shared .libs/libdvdcss.o .libs/device.o .libs/css.o .libs/ioctl.o .libs/error.o -o .libs/libdvdcss-2.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libdvdcss.dll.a
Creating library file: .libs/libdvdcss.dll.a .libs/device.o(.text+0xa16): In function `libc_seek':
d:/mplayer-testclips/libdvdcss/trunk/src/device.c:595: undefined reference to `lseek64'
Attached patch fixes this. Tested to work within MPlayer, please apply.
Diego
-------------- next part --------------
Index: src/common.h
===================================================================
--- src/common.h (revision 201)
+++ src/common.h (working copy)
@@ -52,7 +52,7 @@
/* several type definitions */
# if defined( __MINGW32__ )
-# define lseek _lseeki64
+# define lseek64 _lseeki64
# if !defined( _OFF_T_ )
typedef long long _off_t;
typedef _off_t off_t;
More information about the libdvdcss-devel
mailing list