[PATCH] Cygwin compile fix (was: Re: Cygwin compilation problem)

Diego Biurrun diego at biurrun.de
Mon Oct 24 11:45:23 CEST 2005


On Fri, Oct 07, 2005 at 06:32:45PM +0200, Diego Biurrun wrote:
> 
> libdvdcss 1.2.9 does currently not compile under Cygwin (latest Cygwin, 
> Windows XP SP2), here is the error message:
> 
> gcc -shared  .libs/libdvdcss.o .libs/device.o .libs/css.o .libs/ioctl.o 
> .libs/error.o   -o .libs/cygdvdcss-2.dll -Wl,--enable-auto-image-base 
> -Wl,--out-implib,.
> libs/libdvdcss.dll.a
> Creating library file: .libs/libdvdcss.dll.a
> .libs/device.o: In function `libc_seek':
> /home/diego/src/libdvdcss-1.2.9/src/device.c:440: undefined reference to 
> `__lseeki64'
> collect2: ld returned 1 exit status
> make[3]: *** [libdvdcss.la] Error 1
> make[3]: Leaving directory `/home/diego/src/libdvdcss-1.2.9/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/diego/src/libdvdcss-1.2.9/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/diego/src/libdvdcss-1.2.9'
> make: *** [all] Error 2
> 
> 1.2.8 does not compile as well, but gives a different error.  Sorry, I 
> cannot test subversion right now.

Subversion does not compile either.  Here is the fix from MPlayer CVS.
Please apply or commit a different fix that I can port to MPlayer then.

Regards

Diego
-------------- next part --------------
--- common.h	2005-10-11 10:55:45.000000000 +0200
+++ common.h	2005-10-11 14:07:42.000000000 +0200
@@ -50,10 +53,9 @@
 #   define PATH_MAX MAX_PATH
 #endif
 
-#define lseek _lseeki64
-
 /* several type definitions */
 #   if defined( __MINGW32__ )
+#define lseek _lseeki64
 #       if !defined( _OFF_T_ )
 typedef long long _off_t;
 typedef _off_t off_t;


More information about the libdvdcss-devel mailing list