|
From: | LRN |
Subject: | [Libcdio-devel] W32 problems |
Date: | Sat, 15 Sep 2012 08:45:36 +0400 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Thunderbird/18.0a1 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here are some patches for W32 version of libcdio, my test results and observations. 0002-use-sleep-compatible-to.mingw32.patch - there's no sleep() on W32, but MinGW provides usleep. 0004-disable-realpath-test-on.mingw32.patch - cdio_realpath() falls back to a simple strdup() on W32, so there's no sense in testing it (and we have no symlink() anyway). 0006-fix-differences-in-_img_private_t-definition.all.patch - stdbool REDEFINES (!) "bool" to be _Bool, not int. Therefore all files that define something with "bool" type have to include stdbool.h, otherwise different source files will have different sizes for some structures. 0007-fix-struct-packing-on-latest.mingw32.patch - as of gcc-4.7.0 - -mms-bitfields is enabled by default. Problem is, when it is enabled, gcc struct member packing attributes have no effect. Pragma pack has to be used to pack structures. This patch makes sure that on W32 structures are packed (requires configuring with CFLAGS=-std=iso9899:1999). The output of `make check -k' is attached. As you can see, my patches did not quite fix the packing issue, so you might want to look into that. Lots of mmc errors, DeviceIoControl() simply returns 0 and sets error to 87. No idea why. The tests that fail to find files might be failing because i'm building OOTSD. Note that i'm running W7, and thus have no ASPI driver (AFAIK there are no free ASPI drivers). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBAgAGBQJQVAfvAAoJEOs4Jb6SI2CwXaQIALe1syfgNvq8WAH03LpPGbWb npNZ/zgYjPwbvaGOSRt29agINvQLVw5W4eXwLQgVSXJyAcihD5n+377gvpChWCaa +yEPz5mxk0lNsDHyHwGDf/iyFDdhZ5932wpHnaYvmqXgOZ658FgVyNN58Uu0+xFU GBB1Umc0wl8N5XcWiwoCXHXIBlZglm34ZnXafdWG9m/2oIqwJ8OWniZwZADorZxQ 8LNBH15nRFHvD8RDI+/Rr5iXJnKeRJPeTs4BFuFSYK8qT9DdwMga9KM+cHkxQCv8 3KuikXSMfU3ZeMswiRirH4+LZ++/V4CKdQSfoo/WpSEuueBScPlmnl5O1W6zm4A= =LPSz -----END PGP SIGNATURE-----
0002-use-sleep-compatible-to.mingw32.patch
Description: Text document
0004-disable-realpath-test-on.mingw32.patch
Description: Text document
0006-fix-differences-in-_img_private_t-definition.all.patch
Description: Text document
0007-fix-struct-packing-on-latest.mingw32.patch
Description: Text document
test.log
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |