|
From: Keith M. <kei...@us...> - 2016-07-20 11:53:37
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20/07/16 12:25, Anton Shepelev wrote:
> Keith Marshall:
>> Anton Shepelev:
>>
>>> When trying to buid DOSBox in a freshly-installed MinGW, I am
>>> having this error: macro "__IOCTL_STORAGE_" requires 3
>>> arguments, but only 2 given
>>
>> Okay, I can reproduce this. [...] Please file a formal bug
>> report, on the bug track- er, so that I have an appropriately
>> attributable point of reference for the necessary follow up.
>
> I not being conversant in either C or C++, could you please tell me
> what would a minimal test case be, for I only saw the error
> while compiling the huge 3rd-party project that DOSBox is? What
> should I feed gcc -- the lone .h file?
I reproduced it with:
$ cat fubar.c
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <winioctl.h>
int main()
{ printf( "IOCTL_STORAGE_EJECT_MEDIA = %1$08d (0x%1$08X)\n",
IOCTL_STORAGE_EJECT_MEDIA
);
return 0;
}
$ gcc fubar.c
> I will file a bug report upon returning home from work.
Thanks. I already have a good idea how to fix it, so I'll attend
to it, and publish an update once I have your formal bug report for
reference. As an aside, that test case also revealed a bug which
has crept into our printf() implementation; I'll file my own report
for that.
- --
Regards,
Keith.
Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
iQIcBAEBAgAGBQJXj2Y5AAoJEMCtNsY0flo/z8sP/18Q+4xrg9j9U+ipG/ZVpMPA
H3T/3qOtj0CvpXxGGJ8mM1HeuHkpUTH+de6JcfftSCUfHzXFaz50367Kpshbi6/+
Ms5/L4y98ejCMZz+NXeyUgxp187IyqI+SaI7VQWk2bESKnz/NBIcEBcReHoZWtzu
owccHUIwAkcGFH4Vo+EQ8aWlCiE1bk6EVm6pCNmvEJ5OzWDha+rhDjkWmAxbEmo3
Z84wChD6Eee4fn9x/O8dupki3fAsVyQXQUxXfAEEVee1UPNm+EOyC0ZAxFY4FmLX
oU63wULBt0rJVjVf8SZik/F9cZSMRKE1qpwM3j9zTazmadznqxGGLmQXNuWnhIxD
GySQrPXACX4dnlukkWXGUIBOf10K9dXAS6pUa2zhAcE9s1MXRiitpFDHJEvgQILW
qrVr5pCIAWOX/BfK5XqSSX/SofztfwekA8A5/PBhaM7JKIOch6b39tN1nbkN210j
Sy47eYnjQ1eCQAsaAcOwrpsGVkT1nVNb/HzmAeOg2Is4/5EXRnwcVe5pEw9f/AyP
yOAkpCckH5nJnsWgqL8XpxihZnYTd2C3uWSH3btOIog6kbUJSVRXcCg29nUizBD+
ydY67LsFNdGM1gRFM4dGTyTx+NfnCJqj1FLhA3TCt+gkYAFJXF/lH8CUqOJ0UOyq
gTFYDlE6Vk+8CeyFp7By
=7L+X
-----END PGP SIGNATURE-----
|