mods for compiling perl && perl common packages
Ed Peschko
epeschko@den-mdev1
Fri Jul 31 01:49:00 GMT 1998
hey all,
I'm working on compiling perl smoothly with dmake and egcs, for both the
'standard' modules and the auxilliaries (libwin32, guido, etc). I'm running
into a couple of issues in compiling:
First, inside the file Windows32/Structures.h, there is the code:
typedef struct _KEY_EVENT_RECORD {
WINBOOL bKeyDown;
WORD wRepeatCount;
WORD wVirtualKeyCode;
WORD wVirtualScanCode;
char AsciiChar;
char pad;
#if 0
union {
WCHAR UnicodeChar PACKED;
CHAR AsciiChar PACKED;
} uChar PACKED;
#endif
DWORD dwControlKeyState PACKED;
} PACKED KEY_EVENT_RECORD;
and I'm wondering why the mask. Is it relatively safe to unmask the code?
Second, there are a couple of code snippets which don't seem to compile in
the File Security module, listed below. The symbols seem to be defined in
the winnt.h file in the VC++ distribution; how WinNT-savvy is GCC for EGCS?
Is it safe to use the definitions in the winnt.h file for compiling with GCC?
Ed
(PS: good job, btw. From the perl benchmarks, EGCS is approximately 25% faster
than VC++ at pretty much all of the perl tasks.)
(PPS: is there going to be a egcs-1.10 binary set released soon?)
-----
Newc( 5, pACLNew, cbACL, char, ACL ) ;
if (pACLNew == NULL) {
ErrorHandler( "Newc pACLNew") ;
goto SetCleanup;
}
if (!InitializeAcl(pACLNew, cbACL, ACL_REVISION2)) {
ErrorHandler( "InitializeAcl");
goto SetCleanup;
-----
fails on the symbol ACL_REVISION2
-----
SV* sv ;
PACL pACLNew = NULL;
PACCESS_ALLOWED_ACE pAllAce ;
PSECURITY_DESCRIPTOR pSD = NULL;
DWORD cbACL = 1024, i ;
PSID pSID = NULL;
DWORD cbSID = 1024 ;
ACCESS_MASK AccountRights ;
----
fails on the symbol PACCESS_ALLOWED_ACE
----
PSECURITY_DESCRIPTOR pSecDesc = NULL ;
SECURITY_DESCRIPTOR_CONTROL Control = 0 ;
BOOL bDaclPresent, bDaclDefaulted ;
PACL pDacl ;
PACE_HEADER pAce ;
PACCESS_ALLOWED_ACE pAllAce ;
LPTSTR FullName, Name = NULL, DName = NULL, NoName = "Unknown\000" ;
DWORD bFN = MAXIMUM_NAME_LENGTH << 1,
----
fails on the symbol PACE_HEADER
More information about the Gcc
mailing list