delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/06/08:25:49

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
Message-ID: <418CD0C0.6010009@x-ray.at>
Date: Sat, 06 Nov 2004 14:25:20 +0100
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Jason Pearce <jason DOT pearce AT ieee DOT org>
CC: Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: Win32::API perl module
References: <4188D163 DOT 7020204 AT ieee DOT org> <418922E1 DOT 5060408 AT x-ray DOT at> <418CA7A0 DOT 1000502 AT ieee DOT org>
In-Reply-To: <418CA7A0.1000502@ieee.org>
X-IsSubscribed: yes

Jason Pearce schrieb:
> This worked a treat Reini, thanks very much for your help.
> I need this on several machines at work, so I will package it up in a 
> tar.bz2 for use with setup.exe. Once tested I'll post it back here.

Well packaging is easy, but IMHO not before enabling W32 Callbacks. 
Otherwise I would have proposed it by myself.

But if people want it without callbacks I could propose it.

BTW: I'd rather prefer pmoore's FFI or the C-DynaLib-0.55, which work 
like a charm with w32 and cdecl callbacks and don't use such a horrible 
and MSVC-only aldo-style hack.
Or any other libffi or ffcall based FFI solution, which can be used for 
Win32::API callbacks.

> Reini Urban wrote:
>> Jason Pearce schrieb:
>>> I have been trying to compile up Win32::API perl module under 
>>> Cygwin's perl.
>>>
>>> The latest version off CPAN doesn't build (see below).
 >>>
>> http://xarch.tu-graz.ac.at/home/rurban/software/perl/Win32-API-0.41-cygwin.patch 
>> =>
>> http://xarch.tu-graz.ac.at/home/rurban/software/perl/Win32-API-0.42.tar.gz 
>>
>> just the new-style win32 callbacks do not work that way with gcc.
>> old style it worked, but backporting seemed to much effort for me.
>>
>>> I have found some refernces to patches people have applied to get it 
>>> working in the past.  In particular Win32:API version 0.20.
>>>    http://anfaenger.de/cygwin/libwin32/Win32-API-0.20cygwin/
>>> But I was unable to get that working either, maybe because the 
>>> Cygwin.dll and/or Perl (v5.8.2) has moved on since that patch was done?
>>>
>>> I was wondering if anyone has got it working for themselves?
>>> If not, I'd really appreciate someone taking a look. I am happy to do 
>>> some of my own dirty work, but I have little knowledge of the 
>>> Cygwin.dll so I really struggle to know where to look. I gather 
>>> Win32::API is relying on a hook that the Cygwin.dll is not providing?
>>>
>>> All I really need this for is to call a procedure in a DLL, that does 
>>> some port IO for me. At the moment my work around is to use Active 
>>> State perl, for which Win32::API does build, but it would be better 
>>> to only have one version of Perl around.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
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/

- Raw text -


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