[MPlayer-dev-eng] Cygwin link error (libdvdcss related)
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Oct 9 18:04:22 CEST 2005
Hi,
On Fri, Oct 07, 2005 at 06:08:30PM +0200, Diego Biurrun wrote:
> MPlayer currently fails to link on Cygwin with the following error:
>
> libmpdvdkit2/libmpdvdkit.a(device.o): In function `libc_seek':
> /home/diego/mplayer/dev/libmpdvdkit2/device.c:436: undefined reference
> to `__lseeki64'
> libmpdvdkit2/libmpdvdkit.a(device.o): In function `libc_read':
> /home/diego/mplayer/dev/libmpdvdkit2/device.c:436: undefined reference
> to `__lseeki64'
> libmpdvdkit2/libmpdvdkit.a(device.o): In function `libc_readv':
> /home/diego/mplayer/dev/libmpdvdkit2/device.c:436: undefined reference
> to `__lseeki64'
> collect2: ld returned 1 exit status
> make: *** [mplayer.exe] Error 1
>
> Replacing the libc_ functions in libmpdvdkit2/device.c with their win2k_
> equivalents does not appear to help much.
>
> Can anybody shine a light on this?
The patch you applied added to common.h, line 45
#define lseek _lseeki64
I thought it might break MinGW, that's why I asked for more time to
test. But I didn't expect it to break cygwin...
See if just moving it a few lines down into the
# if defined( __MINGW32__ )
fixes it.
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list