Discussion:
[PATCH] lseek vs lseek64 typo
Diego Biurrun
2006-10-31 17:16:52 UTC
Permalink
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

Loading...