unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
@ 2010-09-06  0:55 Stephen Powell
  2010-09-06  6:18 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Stephen Powell @ 2010-09-06  0:55 UTC (permalink / raw)
  To: 6989

I get this error when compiling emacs under cygwin:

w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'

This is the code in w32.c:

#include <psapi.h>
/* This either is not in psapi.h or guarded by higher value of
   _WIN32_WINNT than what we use.  */
typedef struct _PROCESS_MEMORY_COUNTERS_EX {

However since the update of w32api-3.15-1
<http://cygwin.com/ml/cygwin-announce/2010-08/msg00033.html>
on the 28 August struct _PROCESS_MEMORY_COUNTERS_EX is defined.


In GNU Emacs 24.0.50.1 (i386-mingw-nt6.0.6002)
 of 2010-09-02 on STEVEP-PC
Windowing system distributor `Microsoft Corp.', version 6.0.6002
configured using `configure --with-gcc (3.4)'





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
  2010-09-06  0:55 bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX' Stephen Powell
@ 2010-09-06  6:18 ` Eli Zaretskii
  2010-09-06  8:54 ` Stephen Powell
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2010-09-06  6:18 UTC (permalink / raw)
  To: Stephen Powell; +Cc: 6989

> Date: Mon, 06 Sep 2010 01:55:19 +0100
> From: Stephen Powell <stephen_powell@optusnet.com.au>
> Cc: 
> 
> I get this error when compiling emacs under cygwin:
> 
> w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
> 
> This is the code in w32.c:
> 
> #include <psapi.h>
> /* This either is not in psapi.h or guarded by higher value of
>    _WIN32_WINNT than what we use.  */
> typedef struct _PROCESS_MEMORY_COUNTERS_EX {
> 
> However since the update of w32api-3.15-1
> <http://cygwin.com/ml/cygwin-announce/2010-08/msg00033.html>
> on the 28 August struct _PROCESS_MEMORY_COUNTERS_EX is defined.

Can you show its definition in w32api 3.15-1, and also tell which
header defines it?

Thanks.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
  2010-09-06  0:55 bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX' Stephen Powell
  2010-09-06  6:18 ` Eli Zaretskii
@ 2010-09-06  8:54 ` Stephen Powell
  2010-09-06 17:38   ` Eli Zaretskii
  2010-09-07  9:35 ` Stephen Powell
  2010-09-07  9:41 ` Stephen Powell
  3 siblings, 1 reply; 7+ messages in thread
From: Stephen Powell @ 2010-09-06  8:54 UTC (permalink / raw)
  To: eliz; +Cc: 6989

Eli Zaretskii <eliz@gnu.org> writes:

> Can you show its definition in w32api 3.15-1, and also tell which
> header defines it?

,----[ c:/cygwin/usr/include/w32api/psapi.h ]
|
| typedef struct _PROCESS_MEMORY_COUNTERS_EX {
| 	DWORD cb;
| 	DWORD PageFaultCount;
| 	DWORD PeakWorkingSetSize;
| 	DWORD WorkingSetSize;
| 	DWORD QuotaPeakPagedPoolUsage;
| 	DWORD QuotaPagedPoolUsage;
| 	DWORD QuotaPeakNonPagedPoolUsage;
| 	DWORD QuotaNonPagedPoolUsage;
| 	DWORD PagefileUsage;
| 	DWORD PeakPagefileUsage;
| 	DWORD PrivateUsage;
| } PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX;
|
`----





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
  2010-09-06  8:54 ` Stephen Powell
@ 2010-09-06 17:38   ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2010-09-06 17:38 UTC (permalink / raw)
  To: Stephen Powell; +Cc: 6989

> Date: Mon, 06 Sep 2010 09:54:04 +0100
> From: Stephen Powell <stephen_powell@optusnet.com.au>
> CC: 6989@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Can you show its definition in w32api 3.15-1, and also tell which
> > header defines it?
> 
> ,----[ c:/cygwin/usr/include/w32api/psapi.h ]
> |
> | typedef struct _PROCESS_MEMORY_COUNTERS_EX {
> | 	DWORD cb;
> | 	DWORD PageFaultCount;
> | 	DWORD PeakWorkingSetSize;
> | 	DWORD WorkingSetSize;
> | 	DWORD QuotaPeakPagedPoolUsage;
> | 	DWORD QuotaPagedPoolUsage;
> | 	DWORD QuotaPeakNonPagedPoolUsage;
> | 	DWORD QuotaNonPagedPoolUsage;
> | 	DWORD PagefileUsage;
> | 	DWORD PeakPagefileUsage;
> | 	DWORD PrivateUsage;
> | } PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX;
> |
> `----

Thanks.  One more question: is it true that w32api 3.14 didn't have
this typedef in psapi.h, and 3.15 introduced it?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
  2010-09-06  0:55 bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX' Stephen Powell
  2010-09-06  6:18 ` Eli Zaretskii
  2010-09-06  8:54 ` Stephen Powell
@ 2010-09-07  9:35 ` Stephen Powell
  2010-09-07  9:41 ` Stephen Powell
  3 siblings, 0 replies; 7+ messages in thread
From: Stephen Powell @ 2010-09-07  9:35 UTC (permalink / raw)
  To: eliz; +Cc: stephen_powell, 6989

*** E-Mail body has been placed on clipboard, please paste it here! ***





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
  2010-09-06  0:55 bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX' Stephen Powell
                   ` (2 preceding siblings ...)
  2010-09-07  9:35 ` Stephen Powell
@ 2010-09-07  9:41 ` Stephen Powell
  2010-09-17 21:38   ` Eli Zaretskii
  3 siblings, 1 reply; 7+ messages in thread
From: Stephen Powell @ 2010-09-07  9:41 UTC (permalink / raw)
  To: eliz; +Cc: stephen_powell, 6989

Eli Zaretskii <eliz@gnu.org> writes:

> Thanks.  One more question: is it true that w32api 3.14 didn't have
> this typedef in psapi.h, and 3.15 introduced it?

According to the cvs log the upstream change was introduced here
<http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/ChangeLog?rev=1.1055&cvsroot=src>
:

2010-06-28 Rick Rankin <rrankin1424-mingw@yahoo.com>

	* include/psapi.h (PROCESS_MEMORY_COUNTERS_EX, PERFORMANCE_INFORMATION,
	GetPerformanceInfo): Define.
	* lib/psapi.def (GetPerformanceInfo): Define.
	* include/wincrypt.h (CryptEnumProvidersA, CryptEnumProvidersW,
	CryptEnumProviders): Define.

The diff of the two versions:

--8<---------------cut here---------------start------------->8---
*** c:/temp/w32api-3.14-1/include/psapi.h	2008-01-30 07:34:43.000000000
+1100
--- c:/cygwin/usr/include/w32api/psapi.h	2010-08-28 10:11:17.001000000 +1000
***************
*** 50,55 ****
--- 50,86 ----
  	DWORD PeakPagefileUsage;
  } PROCESS_MEMORY_COUNTERS,*PPROCESS_MEMORY_COUNTERS;

+ typedef struct _PROCESS_MEMORY_COUNTERS_EX {
+ 	DWORD cb;
+ 	DWORD PageFaultCount;
+ 	DWORD PeakWorkingSetSize;
+ 	DWORD WorkingSetSize;
+ 	DWORD QuotaPeakPagedPoolUsage;
+ 	DWORD QuotaPagedPoolUsage;
+ 	DWORD QuotaPeakNonPagedPoolUsage;
+ 	DWORD QuotaNonPagedPoolUsage;
+ 	DWORD PagefileUsage;
+ 	DWORD PeakPagefileUsage;
+ 	DWORD PrivateUsage;
+ } PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX;
+
+ typedef struct _PERFORMANCE_INFORMATION {
+   DWORD cb;
+   DWORD CommitTotal;
+   DWORD CommitLimit;
+   DWORD CommitPeak;
+   DWORD PhysicalTotal;
+   DWORD PhysicalAvailable;
+   DWORD SystemCache;
+   DWORD KernelTotal;
+   DWORD KernelPaged;
+   DWORD KernelNonpaged;
+   DWORD PageSize;
+   DWORD HandleCount;
+   DWORD ProcessCount;
+   DWORD ThreadCount;
+ } PERFORMANCE_INFORMATION, *PPERFORMANCE_INFORMATION;
+
  /* Grouped by application,not in alphabetical order. */
  BOOL WINAPI EnumProcesses(DWORD *,DWORD,DWORD *);
  BOOL WINAPI EnumProcessModules(HANDLE,HMODULE *,DWORD,LPDWORD);
***************
*** 70,75 ****
--- 101,107 ----
  DWORD WINAPI GetDeviceDriverFileNameA(LPVOID,LPSTR,DWORD);
  DWORD WINAPI GetDeviceDriverFileNameW(LPVOID,LPWSTR,DWORD);
  BOOL WINAPI GetProcessMemoryInfo(HANDLE,PPROCESS_MEMORY_COUNTERS,DWORD);
+ BOOL WINAPI GetPerformanceInfo(PPERFORMANCE_INFORMATION,DWORD);
  #if (_WIN32_WINNT >= 0x0501)
  DWORD WINAPI GetProcessImageFileNameA(HANDLE,LPSTR,DWORD);
  DWORD WINAPI GetProcessImageFileNameW(HANDLE,LPWSTR,DWORD);
--8<---------------cut here---------------end--------------->8---





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
  2010-09-07  9:41 ` Stephen Powell
@ 2010-09-17 21:38   ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2010-09-17 21:38 UTC (permalink / raw)
  To: Stephen Powell; +Cc: 6989-done

> Date: Tue, 07 Sep 2010 10:41:48 +0100
> From: Stephen Powell <stephen_powell@optusnet.com.au>
> CC: stephen_powell@optusnet.com.au, 6989@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Thanks.  One more question: is it true that w32api 3.14 didn't have
> > this typedef in psapi.h, and 3.15 introduced it?
> 
> According to the cvs log the upstream change was introduced here
> <http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/ChangeLog?rev=1.1055&cvsroot=src>
> :
> 
> 2010-06-28 Rick Rankin <rrankin1424-mingw@yahoo.com>
> 
> 	* include/psapi.h (PROCESS_MEMORY_COUNTERS_EX, PERFORMANCE_INFORMATION,
> 	GetPerformanceInfo): Define.
> 	* lib/psapi.def (GetPerformanceInfo): Define.
> 	* include/wincrypt.h (CryptEnumProvidersA, CryptEnumProvidersW,
> 	CryptEnumProviders): Define.

Thanks.  This should now be fixed (revno 101465).  Please try it, and
if the problem still persists, reopen this bug report.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-17 21:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-06  0:55 bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX' Stephen Powell
2010-09-06  6:18 ` Eli Zaretskii
2010-09-06  8:54 ` Stephen Powell
2010-09-06 17:38   ` Eli Zaretskii
2010-09-07  9:35 ` Stephen Powell
2010-09-07  9:41 ` Stephen Powell
2010-09-17 21:38   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).