delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/16/09:53:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: Re: Help to compile an activestate perl module under cygwin ( Win32-API & assembly )
From: Dave Yearke <yearke AT eng DOT buffalo DOT edu>
Reply-To: yearke AT eng DOT buffalo DOT edu
To: cygwin AT cygwin DOT com
Organization: SENS, University at Buffalo
Message-Id: <1092664374.31263.29.camel@dot.eng.buffalo.edu>
Mime-Version: 1.0
Date: Mon, 16 Aug 2004 09:52:54 -0400
X-DCC-Buffalo.EDU-Metrics: fate.eng.buffalo.edu 1028; Body=0 Fuz1=0 Fuz2=0

--=-o/s7DslgMzzSEowU/LFe
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Stephen More schrieb:
> I found a patch from an earlier cygwin post:
http://www.cygwin.com/ml/cygwin/2003-01/msg00594.html
> I assume this will fix it. Is there any way we can get a new version
> with this patch posted on cpan ?

I was able to get libwin32-0.191 to build with the latest Cygwin + gcc +
perl 5.8.5, using the patch cited above plus a couple of fixes of my
own, which I've attached. The resulting build did not pass all the
tests, but it works well enough to get me back in business wrt using
Win32::OLE in various perl scripts.

I hope this helps.

-- 
                      Dave Yearke, yearke AT eng DOT buffalo DOT edu
                    "Things should be as simple as possible,
                      but no simpler." -- Albert Einstein

--=-o/s7DslgMzzSEowU/LFe
Content-Disposition: attachment; filename=libwin32-0.191-port2.diff
Content-Type: text/x-patch; name=libwin32-0.191-port2.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit

*** libwin32-0.191/Job/Job.xs.orig	Sat Aug 14 22:48:19 2004
--- libwin32-0.191/Job/Job.xs	Sat Aug 14 22:53:52 2004
***************
*** 76,89 ****
  }
  
  #undef TerminateJobObject
! BOOL TerminateJobObject(HANDLE hJob, UINT uExitCode)
  {
  	if (kernel32_dll == NULL) { kernel32_init(); }
  	return (BOOL)(*kernel32_TerminateJobObject)(hJob, uExitCode);
  }
  
  #undef AssignProcessToJobObject
! BOOL AssignProcessToJobObject(HANDLE hJob, HANDLE hProcess)
  {
  	if (kernel32_dll == NULL) { kernel32_init(); }
  	return (BOOL)(*kernel32_AssignProcessToJobObject)(hJob, hProcess);
--- 76,89 ----
  }
  
  #undef TerminateJobObject
! BOOL WINAPI TerminateJobObject(HANDLE hJob, UINT uExitCode)
  {
  	if (kernel32_dll == NULL) { kernel32_init(); }
  	return (BOOL)(*kernel32_TerminateJobObject)(hJob, uExitCode);
  }
  
  #undef AssignProcessToJobObject
! BOOL WINAPI AssignProcessToJobObject(HANDLE hJob, HANDLE hProcess)
  {
  	if (kernel32_dll == NULL) { kernel32_init(); }
  	return (BOOL)(*kernel32_AssignProcessToJobObject)(hJob, hProcess);
*** libwin32-0.191/OLE/OLE.xs.orig	Sat Aug 14 22:48:19 2004
--- libwin32-0.191/OLE/OLE.xs	Sat Aug 14 22:58:24 2004
***************
*** 51,56 ****
--- 51,57 ----
  #   include <netdb.h>
  #   include <sys/socket.h>
  #   include <unistd.h>
+ #   include <w32api/olectl.h>
  #   define _wcscmpi _wcsicmp
      int	_wcsicmp(const wchar_t*, const wchar_t*);	/* likewise */
      long _wtol (const wchar_t*);	/* from mingw stdlib.h */


--=-o/s7DslgMzzSEowU/LFe
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--=-o/s7DslgMzzSEowU/LFe--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019