[MPlayer-dev-eng] Cygwin link error (libdvdcss related)

Gianluigi Tiesi mplayer at netfarm.it
Fri Oct 7 19:48:56 CEST 2005


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?
> 

I think cygwin headers have been changed somehow,
I cannot find anymore:
LARGEFILE_SOURCE
FILE_OFFSET_BITS

in includes so the preprocessor uses msvcrt one:

#ifndef __NO_MINGW_LFS
__CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) 
{
  return _lseeki64(fd, (__int64) offset, whence);
}
#endif

If you add libmsvcrt.a (from mingw) to libraries it works.

Are u often updating cygwin? I don't have anymore old includes
version so I cannot check.

Bye

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/




More information about the MPlayer-dev-eng mailing list