develooper Front page | perl.libwin32 | Postings from August 2010

[rt.cpan.org #58537] CAST in lvalue : compilation error under gcc 4.4.3

From:
Burak Gursoy via RT
Date:
August 18, 2010 01:47
Subject:
[rt.cpan.org #58537] CAST in lvalue : compilation error under gcc 4.4.3
Message ID:
rt-3.8.HEAD-11058-1282090044-847.58537-15-0@rt.cpan.org
Tue Aug 17 20:07:23 2010: Request 58537 was acted upon.
Transaction: Correspondence added by BURAK
       Queue: Win32API-Net
     Subject: CAST in lvalue : compilation error under gcc 4.4.3
   Broken in: 0.14
    Severity: Critical
       Owner: Nobody
  Requestors: DAMI@cpan.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58537 >


20 Jun 2010 Sun, 03:57:56 tarihinde, DAMI yazdı:
> Win32API-Net fails to compile under gcc 4.4.3 (and hence under 
Strawberry 
> Perl 5.12.1 beta)
> 
> The reason is that a type cast is not considered as an lvalue and 
> therefore gcc won't accept an assignment to it.
> 
> The solution is to simply remove the (BYTE) typecasts on lvalues in 
> HV_GET_AV definition (lines 593 and 595).

I second the patch request. The suggested patch seems to work. This is 
also a showstopper for any other module depending on Win32API::Net



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About