Skip Menu |
 

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 106825
Status: open
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: ArntW [...] enfocus.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X-Asg-Orig-Subj: failure to load mysql.xs.dll because it cannot find libmysql_.dll
MIME-Version: 1.0
X-Asg-Whitelist: Client
X-TM-As-User-Approved-Sender: No
X-Spam-Flag: NO
X-Virus-Checked: Checked
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: by bsmtpd at esko.com
X-Spam-Score: -2.6
X-TM-As-User-Blocked-Sender: No
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8F0422403F9 for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Wed, 2 Sep 2015 11:09:29 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FprIYGDI8PHa for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Wed, 2 Sep 2015 11:09:26 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 90705240061 for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Wed, 2 Sep 2015 11:09:26 -0400 (EDT)
Received: (qmail 19908 invoked by alias); 2 Sep 2015 15:09:24 -0000
Received: from mxt2.esko.com (HELO mxt2.esko.com) (82.143.95.208) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Wed, 02 Sep 2015 08:09:20 -0700
Received: from mail.esko.com (egwbeex004.esko-graphics.com [10.31.248.6]) by mxt2.esko.com with ESMTP id 8bjuv5DO1IKHmDou for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Wed, 02 Sep 2015 17:09:12 +0200 (CEST)
Received: from EGWBEEX005.esko-graphics.com ([fe80::d4e5:7f61:1e98:2414]) by EGWBEEX004.esko-graphics.com ([fe80::d52d:4df6:ee21:e464%16]) with mapi id 14.03.0235.001; Wed, 2 Sep 2015 17:09:11 +0200
X-Barracuda-BRTS-Status: 1
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
Subject: failure to load mysql.xs.dll because it cannot find libmysql_.dll
Thread-Index: AdDliVHAln3nxsI/TQucgTeoy8E1OQ==
X-Spam-Check-BY: la.mx.develooper.com
Date: Wed, 2 Sep 2015 15:09:10 +0000
X-Spam-Level:
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
X-Barracuda-Connect: egwbeex004.esko-graphics.com[10.31.248.6]
X-Spam-Status: No, score=-2.6 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-TM-As-Product-Ver: SMEX-11.0.0.1191-8.000.1202-21786.007
X-Barracuda-Envelope-From: ArntW [...] enfocus.com
Content-Language: en-US
Message-ID: <C2D7ABB1582E5046BF472F4F49527850F1D03EEC [...] EGWBEEX005.esko-graphics.com>
X-Barracuda-Start-Time: 1441206552
X-MS-Tnef-Correlator:
X-Asg-Debug-ID: 1441206552-05017368d23f7e90001-EhFxjy
X-TM-As-Result: No--51.971900-8.000000-31
Return-Path: <ArntW [...] enfocus.com>
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-dist-strawberry
X-Barracuda-Url: http://10.31.138.248:8000/cgi-mod/mark.cgi
Thread-Topic: failure to load mysql.xs.dll because it cannot find libmysql_.dll
X-MS-Has-Attach:
X-Originating-Ip: [84.199.91.122]
Accept-Language: en-US, nl-BE
From: "Witteveen, Arnt" <ArntW [...] enfocus.com>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 4913
Download (untitled) / with headers
text/plain 4.7k
Hi, I'm running into a problem described in a few places online, e.g. here: http://stackoverflow.com/questions/4206439/sequenced-steps-to-install-perl-strawberry-mysql-and-dbdmysql-on-windows-xp The only solution found online seems to be to copy a dll from one folder of perl into another one. A similar problem seems to be described here https://rt.cpan.org/Public/Bug/Display.html?id=99104 (and in reports linked form that). I've looked into this a bit more on my system, because copying files from one part of a distribution to another does not seem like a good solution. In particular, many comments suggest the problem is in the PATH variable, and as far as I can see, it isn't for me. First, the error message, when I access any of the pages of Bugzilla (which I'm trying to set up): -------- install_driver(mysql) failed: Can't load 'C:/StrawberryPerl/perl/vendor/lib/auto/DBD/mysql/mysql.xs.dll' for module DBD::mysql: load_file:The specified module could not be found at C:/StrawberryPerl/perl/lib/DynaLoader.pm line 193. at (eval 44) line 3. Compilation failed in require at (eval 44) line 3. Perhaps a required shared library or dll isn't installed where expected at Bugzilla/DB.pm line 1284. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Sep 2 16:01:24 2015] index.cgi: install_driver(mysql) failed: Can't load 'C:/StrawberryPerl/perl/vendor/lib/auto/DBD/mysql/mysql.xs.dll' for module DBD::mysql: load_file:The specified module could not be found at C:/StrawberryPerl/perl/lib/DynaLoader.pm line 193. [Wed Sep 2 16:01:24 2015] index.cgi: at (eval 44) line 3. [Wed Sep 2 16:01:24 2015] index.cgi: Compilation failed in require at (eval 44) line 3. [Wed Sep 2 16:01:24 2015] index.cgi: Perhaps a required shared library or dll isn't installed where expected [Wed Sep 2 16:01:24 2015] index.cgi: at Bugzilla/DB.pm line 1284. -------- As you can see, I've installed Strawberry perl 'C:/StrawberryPerl'. Version is 5.22.0.1 64bit. The OS is a Windows Server 2008 R2 Standard. I have installed the necessary perl modules through bugzilla's script to do so ("C:\StrawberryPerl\perl\bin\perl.exe install-module.pl --all"), which made it get a bunch of modules from cpan. Tracing this issue with Microsoft Sysinternals Process Monitor, I can see that mysql.xs.dll fails to load because its dependency libmysql_.dll is not found. This file is part of the distribution, found at: C:\StrawberryPerl\c\bin\libmysql_.dll . Process Monitor shows these locations are searched for libmysql_.dll : C:\StrawberryPerl\perl\vendor\lib\auto\DBD\mysql\libmysql_.dll C:\Windows\SysWOW64\libmysql_.dll C:\Windows\system\libmysql_.dll C:\Windows\libmysql_.dll C:\inetpub\Bugzilla\libmysql_.dll Looking at https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx#search_order_for_desktop_applications I can see this matches " Standard Search Order for Desktop Applications" with SafeDllSearchMode enabled, but without searching PATH. To make sure perl is seeing the path I think it sees, I made a perl script in the Bugzilla folder, and accessed it via a browser just like I access the rest of Bugzilla, and let it print the path and INC: print "path : $ENV{PATH}\n"; print "INC: @INC \n" ; the result is: path : C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\System Center Operations Manager 2007\;C:\Program Files\Perforce;C:\Program Files (x86)\PDFtk\bin\;C:\StrawberryPerl\c\bin;C:\StrawberryPerl\perl\site\bin;C:\StrawberryPerl\perl\bin; INC: C:/StrawberryPerl/perl/site/lib C:/StrawberryPerl/perl/vendor/lib C:/StrawberryPerl/perl/lib I've then updated the Handler Mapping in IIS 7 to add -IC:/StrawberryPerl/c/bin to the perl command line. This is reflected in 'INC' as expected: path : path : C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\System Center Operations Manager 2007\;C:\Program Files\Perforce;C:\Program Files (x86)\PDFtk\bin\;C:\StrawberryPerl\c\bin;C:\StrawberryPerl\perl\site\bin;C:\StrawberryPerl\perl\bin; INC: C:/StrawberryPerl/c/bin C:/StrawberryPerl/perl/site/lib C:/StrawberryPerl/perl/vendor/lib C:/StrawberryPerl/perl/lib However this does not change the error, nor does it change the locations that are searched for libmysql_.dll seen in Process Monitor. So, in summary: as far as I can determine, the folders in the path are not used to load the dependent dll's . I've also tried to run, command line: perl -IC:/StrawberryPerl/c/bin -xC:\inetpub\Bugzilla -wT "index.cgi" index.cgi this returns the same error message, so it's not caused by IIS or it's cgi implementation. This then causes issues when one dll installed by Strawberry Perl needs another one.
X-Asg-Orig-Subj: [rt.cpan.org #106825] additional information
MIME-Version: 1.0
X-Asg-Whitelist: Client
X-Spam-Flag: NO
X-TM-As-User-Approved-Sender: No
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: by bsmtpd at esko.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -2.6
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B5ED32405F1 for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 04:14:41 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CS9DHymt9GDv for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 04:14:39 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 977C7240389 for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 04:14:39 -0400 (EDT)
Received: (qmail 7698 invoked by alias); 3 Sep 2015 08:14:38 -0000
Received: from mxt2.esko.com (HELO mxt2.esko.com) (82.143.95.208) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Thu, 03 Sep 2015 01:14:35 -0700
Received: from mail.esko.com (egwbeex004.esko-graphics.com [10.31.248.6]) by mxt2.esko.com with ESMTP id i4hjrOyTW8BQL5kS for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 03 Sep 2015 10:14:29 +0200 (CEST)
Received: from EGWBEEX005.esko-graphics.com ([fe80::d4e5:7f61:1e98:2414]) by EGWBEEX004.esko-graphics.com ([fe80::d52d:4df6:ee21:e464%16]) with mapi id 14.03.0235.001; Thu, 3 Sep 2015 10:14:29 +0200
X-TM-As-User-Blocked-Sender: No
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-Barracuda-BRTS-Status: 1
Subject: [rt.cpan.org #106825] additional information
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AdDmIIPMRBYO7OOUS02xR7ZcdH2pvg==
Date: Thu, 3 Sep 2015 08:14:27 +0000
X-Spam-Level:
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
Content-Transfer-Encoding: base64
X-Barracuda-Connect: egwbeex004.esko-graphics.com[10.31.248.6]
X-Spam-Status: No, score=-2.6 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-TM-As-Product-Ver: SMEX-11.0.0.1191-8.000.1202-21788.003
X-Barracuda-Envelope-From: ArntW [...] enfocus.com
X-RT-Interface: API
Content-Language: en-US
Message-ID: <C2D7ABB1582E5046BF472F4F49527850F1D0402D [...] EGWBEEX005.esko-graphics.com>
X-Barracuda-Start-Time: 1441268069
X-MS-Tnef-Correlator:
X-TM-As-Result: No--32.837100-8.000000-31
X-Asg-Debug-ID: 1441268069-05017368d24428b0001-EhFxjy
Return-Path: <ArntW [...] enfocus.com>
X-RT-Mail-Extension: perl-dist-strawberry
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-Barracuda-Url: http://10.31.138.248:8000/cgi-mod/mark.cgi
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #106825] additional information
X-Originating-Ip: [84.199.91.122]
Accept-Language: en-US, nl-BE
From: "Witteveen, Arnt" <ArntW [...] enfocus.com>
RT-Message-ID: <rt-4.0.18-315-1441268082-409.106825-0-0 [...] rt.cpan.org>
Content-Length: 596
Download (untitled) / with headers
text/plain 596b
Looking further for reasons why the path isn't used to search for dll's, it turns out that MS KB 2533623 (https://support.microsoft.com/en-us/kb/2533623 ) is installed. This changes the dll search path as documented on https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586.aspx#search_order_using_load_library_search_flags_ and https://msdn.microsoft.com/en-us/library/windows/desktop/hh310515.aspx . Specifically, those pages show that the PATH will not be used at all to search for a dll. However, AddDllDirectory and SetDllDirectory can be used to influence the search path.
MIME-Version: 1.0
X-Spam-Status: No, score=-6.167 tagged_above=-99.9 required=10 tests=[AWL=0.433, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-12259-1441206571-407.106825-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-106825 [...] rt.cpan.org> <C2D7ABB1582E5046BF472F4F49527850F1D03EEC [...] EGWBEEX005.esko-graphics.com> <rt-4.0.18-12259-1441206571-407.106825-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <55E829C1.5040003 [...] cpan.org>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.167
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E665C24039A for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:06:54 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mvrtxs8d0guh for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:06:53 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id EA6AE24020C for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 07:06:52 -0400 (EDT)
Received: (qmail 19837 invoked by alias); 3 Sep 2015 11:06:51 -0000
Received: from app.dcit.cz (HELO app.dcit.cz) (193.84.252.35) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 03 Sep 2015 04:06:48 -0700
Received: by app.dcit.cz (Postfix, from userid 98) id 1F42E3E83; Thu, 3 Sep 2015 13:06:44 +0200 (CEST)
Received: from [193.84.252.215] (dcit-215.dcit.cz [193.84.252.215]) by app.dcit.cz (Postfix) with ESMTP id D9A293E82 for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 13:06:42 +0200 (CEST)
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #106825] failure to load mysql.xs.dll because it cannot find libmysql_.dll
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
Return-Path: <kmx [...] cpan.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-dist-strawberry
Date: Thu, 3 Sep 2015 13:06:41 +0200
X-Spam-Level:
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
X-Bogosity: Unsure, tests=bogofilter, spamicity=0.581379, version=0.17.5
From: kmx <kmx [...] cpan.org>
RT-Message-ID: <rt-4.0.18-28446-1441278416-211.106825-0-0 [...] rt.cpan.org>
Content-Length: 600
Download (untitled) / with headers
text/plain 600b
Thanks for your analysis. The problem with moving or copying (duplicating) libmysql_.dll to C:/StrawberryPerl/perl/vendor/lib/auto/DBD/mysql/ is that is fixes only DBD::mysql but what about DBD::Pg? or DBD::Oracle? or what if the perl app will use quite common Net::SSLeay? or some XML or graphics modules using external *._dll? IMO we cannot duplicate all possible dlls packed with strawberry perl in this way. I'll try to think about that a bit more. What definitely would be great is having something like HOWTO.strawberry-perl+MS-IIS.txt (describing all necessary workarounds) -- kmx
MIME-Version: 1.0
X-Spam-Status: No, score=-6.2 tagged_above=-99.9 required=10 tests=[AWL=0.400, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-315-1441268082-1996.106825-5-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-106825 [...] rt.cpan.org> <C2D7ABB1582E5046BF472F4F49527850F1D0402D [...] EGWBEEX005.esko-graphics.com> <rt-4.0.18-315-1441268082-1996.106825-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <55E82C65.5030405 [...] cpan.org>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.2
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B484B24020C for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:18:10 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wePQjLdlw6Ho for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:18:09 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id E6CF924039A for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 07:18:08 -0400 (EDT)
Received: (qmail 20712 invoked by alias); 3 Sep 2015 11:18:07 -0000
Received: from app.dcit.cz (HELO app.dcit.cz) (193.84.252.35) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 03 Sep 2015 04:18:03 -0700
Received: by app.dcit.cz (Postfix, from userid 98) id E86323E83; Thu, 3 Sep 2015 13:17:59 +0200 (CEST)
Received: from [193.84.252.215] (dcit-215.dcit.cz [193.84.252.215]) by app.dcit.cz (Postfix) with ESMTP id C38943E82 for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 13:17:58 +0200 (CEST)
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #106825] additional information
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
Return-Path: <kmx [...] cpan.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-dist-strawberry
Date: Thu, 3 Sep 2015 13:17:57 +0200
X-Spam-Level:
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
X-Bogosity: Unsure, tests=bogofilter, spamicity=0.763136, version=0.17.5
From: kmx <kmx [...] cpan.org>
RT-Message-ID: <rt-4.0.18-26476-1441279091-1294.106825-0-0 [...] rt.cpan.org>
Content-Length: 106
Download (untitled) / with headers
text/plain 106b
I mean something like this: http://php.net/manual/en/install.windows.iis7.php Just for strawberry perl.
X-Asg-Orig-Subj: [rt.cpan.org #106825]
MIME-Version: 1.0
X-Asg-Whitelist: Client
X-Spam-Flag: NO
X-TM-As-User-Approved-Sender: No
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: by bsmtpd at esko.com
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -2.6
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 434AA240467 for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:50:41 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nKcRvMvzYu7F for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:50:38 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id F3EF324020C for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 07:50:36 -0400 (EDT)
Received: (qmail 22451 invoked by alias); 3 Sep 2015 11:50:36 -0000
Received: from mxt2.esko.com (HELO mxt2.esko.com) (82.143.95.208) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Thu, 03 Sep 2015 04:50:33 -0700
Received: from mail.esko.com (egwbeex004.esko-graphics.com [10.31.248.6]) by mxt2.esko.com with ESMTP id Th8mHkUe41j6AlII for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 03 Sep 2015 13:50:20 +0200 (CEST)
Received: from EGWBEEX005.esko-graphics.com ([fe80::d4e5:7f61:1e98:2414]) by EGWBEEX004.esko-graphics.com ([fe80::d52d:4df6:ee21:e464%16]) with mapi id 14.03.0235.001; Thu, 3 Sep 2015 13:50:20 +0200
X-TM-As-User-Blocked-Sender: No
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-Barracuda-BRTS-Status: 1
Subject: [rt.cpan.org #106825]
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AdDmPeYn1WwkCIgwSOafYH4oLnXPrA==
Date: Thu, 3 Sep 2015 11:50:19 +0000
X-Spam-Level:
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
Content-Transfer-Encoding: base64
X-Barracuda-Connect: egwbeex004.esko-graphics.com[10.31.248.6]
X-Spam-Status: No, score=-2.6 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-TM-As-Product-Ver: SMEX-11.0.0.1191-8.000.1202-21788.003
X-Barracuda-Envelope-From: ArntW [...] enfocus.com
X-RT-Interface: API
Content-Language: en-US
Message-ID: <C2D7ABB1582E5046BF472F4F49527850F1D0411B [...] EGWBEEX005.esko-graphics.com>
X-Barracuda-Start-Time: 1441281020
X-MS-Tnef-Correlator:
X-TM-As-Result: No--38.191000-8.000000-31
X-Asg-Debug-ID: 1441281020-05017368d2460fe0001-EhFxjy
Return-Path: <ArntW [...] enfocus.com>
X-RT-Mail-Extension: perl-dist-strawberry
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-Barracuda-Url: http://10.31.138.248:8000/cgi-mod/mark.cgi
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #106825]
X-Originating-Ip: [84.199.91.122]
Accept-Language: en-US, nl-BE
From: "Witteveen, Arnt" <ArntW [...] enfocus.com>
RT-Message-ID: <rt-4.0.18-25462-1441281043-372.106825-0-0 [...] rt.cpan.org>
Content-Length: 696
Download (untitled) / with headers
text/plain 696b
I agree that duplicating these files isn't a good solution (although I guess you could copy all the dependencies needed by each one to their folders, but that would probably be a lot of duplicate files). Depending on the reasons for having mysql.xs.dll in a path like perl/vendor/lib/auto/DBD/mysql, a solution might be to do it the other way around: move mysql.xs.dll and all similar dll's into 1 folder together with their dependencies? One other way would be to patch the loading of the module in perl to add the right dll search paths with something like AddDllDirectory, but I've never looked at perl source so I haven't really been able to find where the module loading happens.
MIME-Version: 1.0
X-Spam-Status: No, score=-6.229 tagged_above=-99.9 required=10 tests=[AWL=0.371, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-25462-1441281043-805.106825-5-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-106825 [...] rt.cpan.org> <C2D7ABB1582E5046BF472F4F49527850F1D0411B [...] EGWBEEX005.esko-graphics.com> <rt-4.0.18-25462-1441281043-805.106825-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <55E835FE.2010008 [...] cpan.org>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.229
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 89EF8240467 for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:59:05 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H6mis2NLJ4ka for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Thu, 3 Sep 2015 07:59:04 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id F244824020C for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 07:59:03 -0400 (EDT)
Received: (qmail 23676 invoked by alias); 3 Sep 2015 11:59:03 -0000
Received: from app.dcit.cz (HELO app.dcit.cz) (193.84.252.35) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 03 Sep 2015 04:59:01 -0700
Received: by app.dcit.cz (Postfix, from userid 98) id 9239D3E83; Thu, 3 Sep 2015 13:58:57 +0200 (CEST)
Received: from [193.84.252.215] (dcit-215.dcit.cz [193.84.252.215]) by app.dcit.cz (Postfix) with ESMTP id 6E7573E82 for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Thu, 3 Sep 2015 13:58:55 +0200 (CEST)
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #106825]
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
Return-Path: <kmx [...] cpan.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-dist-strawberry
Date: Thu, 3 Sep 2015 13:58:54 +0200
X-Spam-Level:
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
X-Bogosity: No, tests=bogofilter, spamicity=0.093379, version=0.17.5
From: kmx <kmx [...] cpan.org>
RT-Message-ID: <rt-4.0.18-25468-1441281546-1406.106825-0-0 [...] rt.cpan.org>
Content-Length: 181
Download (untitled) / with headers
text/plain 181b
Another trouble is that when you install an upgrade of DBD::mysql yourself it will be installed in: perl/_*site*_/lib/auto/DBD/mysql/mysql.xs.dll and the problem is back again.
MIME-Version: 1.0
Subject: My quick suggestion
In-Reply-To: <rt-4.0.18-25468-1441281546-1406.106825-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-106825 [...] rt.cpan.org> <C2D7ABB1582E5046BF472F4F49527850F1D0411B [...] EGWBEEX005.esko-graphics.com> <rt-4.0.18-25462-1441281043-805.106825-5-0 [...] rt.cpan.org> <55E835FE.2010008 [...] cpan.org> <rt-4.0.18-25468-1441281546-1406.106825-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-28013-1441330359-93.106825-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 690
Download (untitled) / with headers
text/plain 690b
My quick suggestion is that we release-note this problem with this example code (I seem to recall that we install Win32::API along with Strawberry) based on what I see at https://support.microsoft.com/en-us/kb/2533623 and the links under 'More Information' there. # Given an unchanged @INC, $INC[-2] is $Strawberry/perl/lib. my $SetDDFlags = Win32::API::More->new( 'kernel32', 'SetDefaultDirectoryFlags', 'i', 'i' ); if ($SetDDFlags) { $SetDDFlags(0x00001000); } my $AddDLLDirectory = Win32::API::More->new( 'kernel32', 'AddDLLDirectory', 'P', 'v' ); if (AddDLLDirectory) { $AddDLLDirectory($INC[-2] . "/../../c/lib\0"); }
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-28013-1441330359-93.106825-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-106825 [...] rt.cpan.org> <C2D7ABB1582E5046BF472F4F49527850F1D0411B [...] EGWBEEX005.esko-graphics.com> <rt-4.0.18-25462-1441281043-805.106825-5-0 [...] rt.cpan.org> <55E835FE.2010008 [...] cpan.org> <rt-4.0.18-25468-1441281546-1406.106825-0-0 [...] rt.cpan.org> <rt-4.0.18-28013-1441330359-93.106825-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-29019-1441330439-768.106825-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 65
Or, at least, something to that effect, this code is first-draft.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.