| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:from:date:message-id:subject:to | |
| :content-type:content-transfer-encoding; q=dns; s=default; b=K4F | |
| OQWr7XlS2AJOhrD3BwCJnby4MuDHGrKNRuu8MvWUEpyv7IdtSS7Z2X3oX580eYg1 | |
| V7hqrgzbmH4be4EZyAUrxfXx86VXg4eDHuj9ZLXNB6rRCekzDMsJPw6J9eXQldHt | |
| P0C8aScmxIEVK9sY43Lq3WJcMOQgFscNvF7b4zZU= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:from:date:message-id:subject:to | |
| :content-type:content-transfer-encoding; s=default; bh=phRlwvEDZ | |
| MtkrWtnQBOmak2pyQ4=; b=vTKRiSIadgXEdjcOmtaG+bZyepqhluagGtarFN+3v | |
| MUSID8y3s85FB6KCty6VQinwq0VF8nLkpTBu9HocVmUAL+XUptNZPPiQgqzARCpS | |
| 7S5/fyifRPCOGkWEbyfXjTxTeTKcdyEK7Rx+Pi6EaAy/AmtxabRYS0W+aEc9ZYXp | |
| 3w= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| 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 |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=4.6 required=5.0 tests=BAYES_50,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS,WEBMAIL_BODY autolearn=no version=3.3.2 spammy=lineheight, line-height, _blank, arial |
| X-HELO: | mail-ua0-f175.google.com |
| X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=8ftR09KjSleReR3DAAgtsxzmJJGTxjU5vl3n6sKXyUM=; b=aTlRwRZ/HFV4rsytq3bZWaVPLEDkedwbrVbJdWe0UdZ2QYm3ieg1Gdizx6mQK4qSkd 7SRC7j9Ol1NPsaaNEYxbNnMXFR7MwT3pEFc1gZl1+WC92tdE0zyto0qYFyAhRVtK3xdL /CxA7fSNunUnVSSOszO2/91JQmQhQyYsZD+sk8axMVausCPeqtSoVF+RL83ICZmj+Qdz 46wDgMvfeRpNAXmuoLzzWZ1klUy58y/ipgEbHevzv9DWq70F/9A8Dhsxsl+21j1kDhHB NiDmH0cLRnQTT7veY/S9hu2s8COSO82EYLNEpA/LZ8HA0HDCNcei4xPOwbEqGv5J8t/1 wYAg== |
| X-Gm-Message-State: | ALQs6tBtr8HRtzeeFyX27+9HUhw/zyQ4b9KlSOWqjsgT7xq2+cz+fKzl ez6tVPGcm5ZbWpCgnatkjGv0ztlsCjQXEu+nbOA5fQ== |
| X-Google-Smtp-Source: | AB8JxZqUzm2lefs9RKZpnU9ouQSgUrbXNbOGflye1PoJCjKDamU9j7u/CAp8VbLaKfL7DEbDnymQaLcKvo2X52AgoEs= |
| X-Received: | by 10.159.36.131 with SMTP id 3mr3946984uar.7.1524915672378; Sat, 28 Apr 2018 04:41:12 -0700 (PDT) |
| MIME-Version: | 1.0 |
| From: | SJ Luo <sjaluo AT gmail DOT com> |
| Date: | Sat, 28 Apr 2018 19:41:11 +0800 |
| Message-ID: | <CAMoHPCY=hMwHco8=quQ0zpvPDw3srMxjzM6v9u-ZcdgQ_6avNw@mail.gmail.com> |
| Subject: | perl-Win32-API package problem |
| To: | cygwin AT cygwin DOT com |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id w3SBfWZZ014397 |
Hi,
I have a small Perl program that utilize module
Win32::API::Callback. This module works properly if I downloaded this
module from CPAN and compile by myself. There occurs a problem if I
get it from binary package perl-Win32-API downloaded by Cygwin setup
program. I then tried to figure this problem out by downloading source
module and compile by myself. I found a simple flow to duplicate the
fail with the following sequence.
----- Cut here -----
% cd /usr/src/perl-Win32-API-0.84-1.src
% cygport perl-Win32-API.cygport prep compile
:
% cd perl-Win32-API-0.84-1.x86_64/build/
% mv API_test64.dll API_test64.dll.lnk; cp API_test64.dll.lnk API_test64.dll
% mv rtc64.dll rtc64.dll.lnk; cp rtc64.dll.lnk rtc64.dll
% cd Callback
% make test
:
(Failed test 'callback function works' at t/02_Callback.t line 58.)
:
% touch Callback.c
% make
% make test
:
(All tests passed)
:
----- Cut here -----
The two lines of commands "mv xxxx; cp xxx" are to dereference the
symbolic links of testing-needed dll files because
Win32::API::LoadLibrary() seems not be able to resolve Cygwin symbolic
link.
Two "make test" commands are shown above. The first test fails at
02_Callback.t line 75. After fail, a force recompile of the
Callback.dll module is done by touch and make. Doing "make test"
again, this time all test items passed.
By checking the gcc compile option, I found there is a gcc option
"-fno-stack-protector" provided when I compile this module by myself,
while the option is removed when I compile with cygport. If I try
manually compiling without this option, the same problem occurs.
The host system is Windows7. Cygwin dll is 64bit version 2.10.0-1.
wish it can be solved soon in next package release.
Thanks,
SJ
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table
style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" width="46" height="29" style="width: 46px; height: 29px;"
/></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e;
font-size: 13px; font-family: Arial, Helvetica, sans-serif;
line-height: 18px;">不含病毒。<a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail"
target="_blank" style="color: #4453ea;">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright 2019 by DJ Delorie | Updated Jul 2019 |