Discussion:
Cygwin compilation problem
Diego Biurrun
2005-10-07 16:32:45 UTC
Permalink
Hi everybody!

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.

Diego
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Diego Biurrun
2005-10-07 16:55:52 UTC
Permalink
Post by Diego Biurrun
libdvdcss 1.2.9 does currently not compile under Cygwin (latest Cygwin,
1.2.8 does not compile as well, but gives a different error. Sorry, I
cannot test subversion right now.
Correction: 1.2.8 compiles if I run ./bootstrap befor ./configure.

Diego
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Diego Biurrun
2005-10-24 09:45:23 UTC
Permalink
Post by Diego Biurrun
libdvdcss 1.2.9 does currently not compile under Cygwin (latest Cygwin,
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
/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
Diego Biurrun
2005-11-08 11:41:06 UTC
Permalink
Post by Diego Biurrun
Post by Diego Biurrun
libdvdcss 1.2.9 does currently not compile under Cygwin (latest Cygwin,
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
/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.
Rejected? Applied? No interest?

Do you see problems or a way to fix this differently?

Diego
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Sam Hocevar
2005-11-08 13:59:33 UTC
Permalink
Post by Diego Biurrun
Post by Diego Biurrun
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.
Rejected? Applied? No interest?
I have no Cygwin system to test it. But from what I see, this patch
simply uses lseek instead of the non (no longer?) existent _lseeki64.
What is expected together with such a patch is an explanation on whether
lseek understands 64 bit offsets in Cygwin.
--
Sam.
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Joey Parrish
2005-11-08 14:42:03 UTC
Permalink
Post by Sam Hocevar
Post by Diego Biurrun
Post by Diego Biurrun
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.
Rejected? Applied? No interest?
I have no Cygwin system to test it. But from what I see, this patch
simply uses lseek instead of the non (no longer?) existent _lseeki64.
What is expected together with such a patch is an explanation on whether
lseek understands 64 bit offsets in Cygwin.
Cygwin wrapper provides 64-bit lseek and defines off_t as a 64-bit type.
MinGW uses MSVCRT lseek, which is 32-bit. MSVCRT also exports the
obscure _lseeki64, which is the MS 64-bit version. This function is not
available in Cygwin.

--Joey
--
"Indeed do many things come to pass."
HBT; The Book of Predictions, Chap. 19
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Loading...