Skip Menu |

This queue is for tickets about the File-Map CPAN distribution.

Report information
The Basics
Id: 76311
Status: resolved
Priority: 0/
Queue: File-Map

People
Owner: Nobody in particular
Requestors: chm [...] cpan.org
Cc:
AdminCc:

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



Subject: cygwin missing madvise
Hi Leon-

It turns out that cygwin was missing the madvise routine but
had implemented the posix_madvise.  The latest cygwin DLL
has that alias in it but if you wish to build successfully with
older cygwin releases, the problem can be fixed by a

  #define madvise posix_madvise

Cheers, and thanks for the 0.47 update for the sys_map fix.

--Chris
On Thu, Apr 5, 2012 at 12:11 AM, Chris Marshall via RT <bug-File-Map@rt.cpan.org> wrote: Show quoted text
> Hi Leon- > > It turns out that cygwin was missing the madvise routine but > had implemented the posix_madvise. The latest cygwin DLL > has that alias in it but if you wish to build successfully with > older cygwin releases, the problem can be fixed by a > > #define madvise posix_madvise
I see. Quite frankly I have no idea how to detect the difference the presence or absence of madvise. I suppose hard-coding for the cygwin version would be ok, but I'd need someone to figure out exactly when it started working. Show quoted text
> Cheers, and thanks for the 0.47 update for the sys_map fix.
NP :-) Leon
Subject: Re: [rt.cpan.org #76311] cygwin missing madvise
Date: Wed, 04 Apr 2012 19:07:21 -0400
To: bug-File-Map [...] rt.cpan.org
From: chm <devel.chm.01 [...] gmail.com>
On 4/4/2012 6:25 PM, Leon Timmermans via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=76311> > > On Thu, Apr 5, 2012 at 12:11 AM, Chris Marshall via RT > <bug-File-Map@rt.cpan.org> wrote:
>> Hi Leon- >> >> It turns out that cygwin was missing the madvise routine but >> had implemented the posix_madvise. The latest cygwin DLL >> has that alias in it but if you wish to build successfully with >> older cygwin releases, the problem can be fixed by a >> >> #define madvise posix_madvise
> > I see. Quite frankly I have no idea how to detect the difference the > presence or absence of madvise. I suppose hard-coding for the cygwin > version would be ok, but I'd need someone to figure out exactly when it > started working.
The cygwin madvise is their already existing posix_madvise. There was discussion on their list about it. I recommend a blanket #define and the problem will eventually go away as the cygwin versions advance. Special casing by version would not gain anything here. --Chris Show quoted text
>> Cheers, and thanks for the 0.47 update for the sys_map fix.
> > NP :-) > > Leon > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1424 / Virus Database: 2113/4914 - Release Date: 04/04/12 > >
On Wed Apr 04 19:07:29 2012, devel.chm.01@gmail.com wrote: Show quoted text
> The cygwin madvise is their already existing posix_madvise. > There was discussion on their list about it. I recommend > a blanket #define and the problem will eventually go away > as the cygwin versions advance. Special casing by version > would not gain anything here.
This was fixed in 0.48. Leon