[Mingw-w64-public] Kerberos Support

2017-01-30 Thread Jacob Evans
Does anyone know how to get the kinit binary installed for MINGW64
delivered via git-bash package?

I would like to be able to ssh using kerberos delegation without installing
cygwin.

Thank You,
-Jake
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
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] mprapi.h: Added missing includes.

2017-01-30 Thread Jacek Caban
On 30.01.2017 17:13, Kai Tietz wrote:
> Hmm, you are sure we need those includes just for DESKTOP?  Could you
> please recheck if for APP mode things will still work?
> If so, patch is ok for apply.

I verified that and pushed patches. Thanks for reviews.

Jacek

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
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] stdio.h: Ignore extern "C++" for Clang

2017-01-30 Thread Adrien Nader
Hi,

Do you know how much this (still?) applies to GCC?

The goal should be to reduce the number of compiler-specific sections
rather than add new ones.

-- 
Adrien Nader

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] stdio.h: Ignore extern "C++" for Clang

2017-01-30 Thread Mateusz
Hello,

I don't know why it was required but it breaks some cases of using GCC
together with Clang as reported here:
https://github.com/Alexpux/MINGW-packages/issues/1678

In case attachment didn't work:

>From f59cbc266025bc070e05a0d7ad44853b1771c21a Mon Sep 17 00:00:00 2001
From: Mateusz Mikula 
Date: Mon, 30 Jan 2017 18:09:09 +0100
Subject: [PATCH] stdio.h: Ignore extern "C++" for Clang

---
 mingw-w64-headers/crt/stdio.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index c37ae15f..9c064246 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -218,7 +218,7 @@ int vasprintf(char **__ret, const char *__format,
__builtin_va_list __local_argv

 /* There seems to be a bug about builtins and static overrides of them
in g++.  So we need to do here some trickery.  */
-#ifdef __cplusplus
+#ifdef __cplusplus && !defined(__clang__)
 extern "C++" {
 #endif

@@ -367,7 +367,7 @@ int vsnprintf (char *__stream, size_t __n, const
char *__format, __builtin_va_li

 /* #endif */ /* __NO_ISOCEXT */

-#ifdef __cplusplus
+#ifdef __cplusplus && !defined(__clang__)
 }
 #endif

-- 
2.11.0


Regards,

Mateusz
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
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] propvarutil.h: Added NTSTATUS declaration.

2017-01-30 Thread Kai Tietz
Patch is ok.

Thanks,
Kai

2017-01-30 14:39 GMT+01:00 Jacek Caban :
> ---
>  mingw-w64-headers/include/propvarutil.h | 5 +
>  1 file changed, 5 insertions(+)
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
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] mprapi.h: Added missing includes.

2017-01-30 Thread Kai Tietz
Hmm, you are sure we need those includes just for DESKTOP?  Could you
please recheck if for APP mode things will still work?
If so, patch is ok for apply.

Thanks,
Kai

2017-01-30 14:31 GMT+01:00 Jacek Caban :
> ---
>  mingw-w64-headers/include/mprapi.h | 8 +---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
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] setupapi.h: Fixed includes.

2017-01-30 Thread Kai Tietz
Seems to be ok.

Thanks,
Kai

2017-01-30 14:33 GMT+01:00 Jacek Caban :
> ---
>  mingw-w64-headers/include/setupapi.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
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 2/2] psapi.h: Added sipport for PSAPI_VERSION 2.

2017-01-30 Thread Kai Tietz
Patch is ok. Thanks, Kai

2017-01-30 14:29 GMT+01:00 Jacek Caban :
> ---
>  mingw-w64-headers/include/psapi.h | 38
> ++
>  1 file changed, 38 insertions(+)
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
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 1/2] libkernel32.a: Added K32* PSAPI exports.

2017-01-30 Thread Kai Tietz
This is of course fine, too.

Thanks,
Kai

2017-01-30 14:29 GMT+01:00 Jacek Caban :
> ---
>  mingw-w64-crt/lib32/kernel32.def | 27 +++
>  1 file changed, 27 insertions(+)
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] Added support for providing typelibs and use it to provide stdole2.tlb.

2017-01-30 Thread Jacek Caban
typelibs are important if someone wants to build his own typelibs with
widl. stdole2.tlb is single most important typelib that other typelibs
import, so we need to provide that. I took IDL file from Wine.

I added support for .tlb files exactly the same way it's done for
headers generated for .idl files: they are stored in Git, built in
"maintainer" mode if one requests that with --with-widl configure
argument (which is strongly recommended for anyone touching .idl files)
and installed together with .idl files.

There is one detail which makes it different from headers: typelibs are
binary files. Some people may object from storing binary files in Git,
so if there are objections, let me know. The alternative would be to
have stronger dependency on widl to build headers (which I think we
don't want).

Please review.

---
 mingw-w64-headers/Makefile.am |  13 +-
 mingw-w64-headers/configure.ac|   2 +-
 mingw-w64-headers/tlb/stdole2.idl | 439
++
 3 files changed, 450 insertions(+), 4 deletions(-)
 create mode 100644 mingw-w64-headers/tlb/stdole2.idl


diff --git a/mingw-w64-headers/Makefile.am b/mingw-w64-headers/Makefile.am
index 8c92b40..feaf611 100644
--- a/mingw-w64-headers/Makefile.am
+++ b/mingw-w64-headers/Makefile.am
@@ -34,7 +34,7 @@ CLEANFILES = $(nodist_sdkshead_HEADERS)
 
 DISTCHECK_CONFIGURE_FLAGS = --enable-crt --enable-sdk=all --enable-idl
 
-EXTRA_DIST = $(srcdir)/ChangeLog.* include crt direct-x ddk
+EXTRA_DIST = $(srcdir)/ChangeLog.* include crt direct-x ddk tlb
 
 dist-hook:
 	find $(distdir) -name ".svn" -type d -delete
@@ -60,7 +60,8 @@ EXTRA_HEADERS = \
   crt/sec_api/sys/*.h \
   direct-x/include/*.h \
   direct-x/include/*.idl \
-  ddk/include/ddk/*.h
+  ddk/include/ddk/*.h \
+  tlb/*.tlb
 
 if HAVE_WIDL
 
@@ -213,11 +214,17 @@ IDL_SRCS = \
   direct-x/include/qnetwork.idl \
   direct-x/include/vmr9.idl
 
-BUILT_SOURCES = $(IDL_SRCS:.idl=.h)
+TLB_SRCS = \
+  tlb/stdole2.idl
+
+BUILT_SOURCES = $(IDL_SRCS:.idl=.h) $(TLB_SRCS:.idl=.tlb)
 
 .idl.h: crt/_mingw.h
 	$(WIDL) -DBOOL=WINBOOL -I$(srcdir)/include -I$(srcdir)/direct-x/include -Icrt -I$(srcdir)/crt -h -o $@ $<
 
+.idl.tlb:
+	$(WIDL) -I$(srcdir)/include -t -o $@ $<
+
 endif
 
 _mingw_directx.h: $(srcdir)/crt/sdks/_mingw_directx.h.in
diff --git a/mingw-w64-headers/configure.ac b/mingw-w64-headers/configure.ac
index 4c20762..84109c9 100644
--- a/mingw-w64-headers/configure.ac
+++ b/mingw-w64-headers/configure.ac
@@ -136,7 +136,7 @@ AC_ARG_ENABLE([idl],
 [enable_idl=no])
 AC_MSG_RESULT([$enable_idl])
 AS_VAR_IF([enable_idl],[yes],
-[IDLHEAD_LIST=$srcdir/include/*.idl],
+[IDLHEAD_LIST=$srcdir/include/*.idl" "$srcdir/tlb/*.tlb],
 [IDLHEAD_LIST=""])
 AC_SUBST([IDLHEAD_LIST])
 
diff --git a/mingw-w64-headers/tlb/stdole2.idl b/mingw-w64-headers/tlb/stdole2.idl
new file mode 100644
index 000..9839c4c
--- /dev/null
+++ b/mingw-w64-headers/tlb/stdole2.idl
@@ -0,0 +1,439 @@
+/*
+ * Copyright (C) 2003 Robert Shearman
+ *   2005 Huw Davies
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#if 0
+#pragma makedep install
+#pragma makedep typelib
+#endif
+
+#include 
+
+[
+  uuid(00020430---C000-0046),
+  version(2.0),
+  helpstring("OLE Automation")
+]
+library stdole
+{
+	/* typedefs aren't stored in the type library.
+   These type names are known by the type compiler so it
+   doesn't really matter what we define them as. */
+
+typedef short VARIANT_BOOL;
+typedef long BSTR;
+typedef double CURRENCY;
+typedef unsigned long HRESULT;
+typedef void *VARIANT;
+typedef unsigned long SCODE;
+
+typedef struct GUID {
+unsigned long  Data1;
+unsigned short Data2;
+unsigned short Data3;
+unsigned char  Data4[ 8 ];
+} GUID;
+
+typedef struct DISPPARAMS {
+VARIANT *rgvarg;
+long *rgdispidNamedArgs;
+unsigned int cArgs;
+unsigned int cNamedArgs;
+} DISPPARAMS;
+
+typedef struct EXCEPINFO {
+unsigned short wCode;
+unsigned short wReserved;
+BSTR  bstrSource;
+BSTR  bstrDescription;
+BSTR  bstrHelpFile;
+unsigned long dwHelpContext;
+void *pvReserved;
+void *pfnDeferredFillIn;
+

[Mingw-w64-public] [PATCH] propvarutil.h: Added NTSTATUS declaration.

2017-01-30 Thread Jacek Caban
---
 mingw-w64-headers/include/propvarutil.h | 5 +
 1 file changed, 5 insertions(+)


diff --git a/mingw-w64-headers/include/propvarutil.h b/mingw-w64-headers/include/propvarutil.h
index bac1769..5be1e1d 100644
--- a/mingw-w64-headers/include/propvarutil.h
+++ b/mingw-w64-headers/include/propvarutil.h
@@ -22,6 +22,11 @@
 #include 
 #include 
 
+#if !defined (_NTDEF_) && !defined (_NTSTATUS_PSDK)
+#define _NTSTATUS_PSDK
+typedef LONG NTSTATUS, *PNTSTATUS;
+#endif
+
 enum tagPROPVAR_CHANGE_FLAGS
 {
 PVCHF_DEFAULT   = 0x,

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] setupapi.h: Fixed includes.

2017-01-30 Thread Jacek Caban
---
 mingw-w64-headers/include/setupapi.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/mingw-w64-headers/include/setupapi.h b/mingw-w64-headers/include/setupapi.h
index a0244a3..1513b63 100644
--- a/mingw-w64-headers/include/setupapi.h
+++ b/mingw-w64-headers/include/setupapi.h
@@ -23,8 +23,9 @@
 typedef GUID *LPGUID;
 #endif
 
+/* FIXME: #include  */
 #include 
-#include 
+#include 
 
 #ifdef _WIN64
 #include 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] mprapi.h: Added missing includes.

2017-01-30 Thread Jacek Caban
---
 mingw-w64-headers/include/mprapi.h | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)


diff --git a/mingw-w64-headers/include/mprapi.h b/mingw-w64-headers/include/mprapi.h
index 7bbc1d7..1e98b09 100644
--- a/mingw-w64-headers/include/mprapi.h
+++ b/mingw-w64-headers/include/mprapi.h
@@ -6,13 +6,15 @@
 #ifndef __ROUTING_MPRADMIN_H__
 #define __ROUTING_MPRADMIN_H__
 
-#include 
-#include 
-
 #include 
 
 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
 
+#include 
+#include 
+#include 
+#include 
+
 #ifdef __cplusplus
 extern "C" {
 #endif

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 2/2] psapi.h: Added sipport for PSAPI_VERSION 2.

2017-01-30 Thread Jacek Caban
---
 mingw-w64-headers/include/psapi.h | 38
++
 1 file changed, 38 insertions(+)


diff --git a/mingw-w64-headers/include/psapi.h b/mingw-w64-headers/include/psapi.h
index f3f5220..4b17dd6 100644
--- a/mingw-w64-headers/include/psapi.h
+++ b/mingw-w64-headers/include/psapi.h
@@ -12,6 +12,44 @@
 extern "C" {
 #endif
 
+#ifndef PSAPI_VERSION
+#if NTDDI_VERSION >= NTDDI_WIN7
+#define PSAPI_VERSION 2
+#else
+#define PSAPI_VERSION 1
+#endif
+#endif
+
+#if PSAPI_VERSION > 1
+#define EnumProcesses   K32EnumProcesses
+#define EnumProcessModules  K32EnumProcessModules
+#define EnumProcessModulesExK32EnumProcessModulesEx
+#define GetModuleBaseNameA  K32GetModuleBaseNameA
+#define GetModuleBaseNameW  K32GetModuleBaseNameW
+#define GetModuleFileNameExAK32GetModuleFileNameExA
+#define GetModuleFileNameExWK32GetModuleFileNameExW
+#define GetModuleInformationK32GetModuleInformation
+#define EmptyWorkingSet K32EmptyWorkingSet
+#define QueryWorkingSet K32QueryWorkingSet
+#define QueryWorkingSetEx   K32QueryWorkingSetEx
+#define InitializeProcessForWsWatch K32InitializeProcessForWsWatch
+#define GetWsChangesK32GetWsChanges
+#define GetWsChangesEx  K32GetWsChangesEx
+#define GetMappedFileNameW  K32GetMappedFileNameW
+#define GetMappedFileNameA  K32GetMappedFileNameA
+#define EnumDeviceDrivers   K32EnumDeviceDrivers
+#define GetDeviceDriverBaseNameAK32GetDeviceDriverBaseNameA
+#define GetDeviceDriverBaseNameWK32GetDeviceDriverBaseNameW
+#define GetDeviceDriverFileNameAK32GetDeviceDriverFileNameA
+#define GetDeviceDriverFileNameWK32GetDeviceDriverFileNameW
+#define GetProcessMemoryInfoK32GetProcessMemoryInfo
+#define GetPerformanceInfo  K32GetPerformanceInfo
+#define EnumPageFilesW  K32EnumPageFilesW
+#define EnumPageFilesA  K32EnumPageFilesA
+#define GetProcessImageFileNameAK32GetProcessImageFileNameA
+#define GetProcessImageFileNameWK32GetProcessImageFileNameW
+#endif
+
 #define GetModuleBaseName __MINGW_NAME_AW(GetModuleBaseName)
 #define GetModuleFileNameEx __MINGW_NAME_AW(GetModuleFileNameEx)
 #define GetMappedFileName __MINGW_NAME_AW(GetMappedFileName)

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH 1/2] libkernel32.a: Added K32* PSAPI exports.

2017-01-30 Thread Jacek Caban
---
 mingw-w64-crt/lib32/kernel32.def | 27 +++
 1 file changed, 27 insertions(+)


diff --git a/mingw-w64-crt/lib32/kernel32.def b/mingw-w64-crt/lib32/kernel32.def
index 4959233..7467ecf 100644
--- a/mingw-w64-crt/lib32/kernel32.def
+++ b/mingw-w64-crt/lib32/kernel32.def
@@ -800,6 +800,33 @@ IsValidLanguageGroup@8
 IsValidLocale@8
 IsValidLocaleName@4
 IsWow64Process@8
+K32EmptyWorkingSet@4
+K32EnumDeviceDrivers@12
+K32EnumPageFilesA@8
+K32EnumPageFilesW@8
+K32EnumProcessModules@16
+K32EnumProcessModulesEx@20
+K32EnumProcesses@12
+K32GetDeviceDriverBaseNameA@12
+K32GetDeviceDriverBaseNameW@12
+K32GetDeviceDriverFileNameA@12
+K32GetDeviceDriverFileNameW@12
+K32GetMappedFileNameA@16
+K32GetMappedFileNameW@16
+K32GetModuleBaseNameA@16
+K32GetModuleBaseNameW@16
+K32GetModuleFileNameExA@16
+K32GetModuleFileNameExW@16
+K32GetModuleInformation@16
+K32GetPerformanceInfo@8
+K32GetProcessImageFileNameA@12
+K32GetProcessImageFileNameW@12
+K32GetProcessMemoryInfo@12
+K32GetWsChanges@12
+K32GetWsChangesEx@12
+K32InitializeProcessForWsWatch@4
+K32QueryWorkingSet@12
+K32QueryWorkingSetEx@12
 LCIDToLocaleName@16
 LCMapStringA@24
 LCMapStringEx@36

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public