[Mingw-w64-public] Libraries present on Ubuntu but absent from Centos

2019-05-08 Thread William Zeitler
I have a mingw64 project I've been building successfully on Ubuntu 16/18 
for some time. But I need to migrate to Centos/Rhel 7.


My project won't link on Centos due to "can't find various libraries". 
On Ubuntu, /usr/x86_64-w64-mingw32/lib has a long list of libraries 
(including the one's I'm missing on Centos) but on Centos this same 
folder contains no libraries at all.


Libraries present on Ubuntu but missing on Centos include:

libmsvcrt.dll.a
libwinpthread.a
msvcrt.dll.a
libmsvcrt.a
msvcrt.lib
libmsvcrt.dll
msvcrt.dll
libmsvcrt.a
libmsvcrt.dll.a
msvcrt.dll.a
...
and a host of others!

Using 'rpm -qa | grep mingw64' on my Centos machine I have verified that 
the following packages are installed:


mingw64-headers
mingw64-filesystem
mingw64-crt
mingw64-binutils
mingw64-winpthreads
mingw64-gcc
mingw64-gcc-c++

Groveling Google has not proven helpful.

I am grateful for your kind assistance,

William Zeitler







___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] wrong declaration of InetNtopA and InetNtopW

2019-05-08 Thread Liu Hao
在 2019/5/8 下午8:20, Vincent Torri 写道:
> hello
> 
> *pton has also the same wrong declaration, no ?
> 

No. The third parameter of `InetPton()` is output-only so it is a
pointer to unqualified `void`.


-- 
Best regards,
ltpmouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] wrong declaration of InetNtopA and InetNtopW

2019-05-08 Thread Vincent Torri
hello

*pton has also the same wrong declaration, no ?

Vincent Torri

On Mon, Apr 22, 2019 at 9:07 PM Martin Storsjö  wrote:
>
> On Mon, 22 Apr 2019, Liu Hao wrote:
>
> > 在 2019/4/22 下午8:27, Martin Storsjö 写道:
> >> On Sat, 20 Apr 2019, Liu Hao wrote:
> >>
> >>> 在 2019/4/19 下午4:59, Vincent Torri 写道:
>  when will this hit git or next mingw-w64 release ?
> 
> >>>
> >>>
> >>> For this small change I will leave it on this mailing list for
> >>> discussion. If there is no objection I may push it a couple of days
> >>> later.
> >>
> >> Your patch broke compilation, as there's no type PCVOID commonly
> >> defined, only PVOID and LPCVOID.
> >>
> >> I pushed a fix for master, I can backport it just like your patch a bit
> >> later, unless you beat me to it.
> >>
> >>
> >
> > Well, there is a definition of `PCVOID` in 'cfgmgr32.h', but it is only
> > used in that file.
>
> Yup, that's what I meant about "commonly defined". (I was a bit terse
> before, typing on a phone.)
>
> > And, thanks for the fix. I have just noticed that these functions aren't
> > available unless `_WIN32_WINNT` is at least `0x0600` and it is why it
> > didn't fail on my side. Apologize for that.
>
> Ah, yes, that explains why it slipped through.
>
> // Martin
>
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: Call the right __stdio_common_* function in UCRT _vsnwprintf

2019-05-08 Thread Martin Storsjö

On Wed, 8 May 2019, Liu Hao wrote:


在 2019/5/7 下午2:42, Martin Storsjö 写道:

Signed-off-by: Martin Storsjö 
---
This also should be applied on the v6.x branch.
---
 mingw-w64-crt/stdio/ucrt__vsnwprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c 
b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
index 4a8f275ba..bf9f4de2a 100644
--- a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
+++ b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
@@ -10,6 +10,6 @@

 int __cdecl _vsnwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const 
wchar_t * __restrict__ _Format,va_list _Args) __MINGW_ATTRIB_DEPRECATED_SEC_WARN
 {
-  return 
__stdio_common_vsprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
_Dest, _Count, _Format, NULL, _Args);
+  return 
__stdio_common_vswprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
_Dest, _Count, _Format, NULL, _Args);
 }
 int __cdecl (*__MINGW_IMP_SYMBOL(_vsnwprintf))(wchar_t *__restrict__, size_t, 
const wchar_t *__restrict__, va_list) = _vsnwprintf;



Looks good to me.


Thanks! Pushed and backported to v6.x.

// Martin

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public