Skip Menu |

This queue is for tickets about the Win32API-Net CPAN distribution.

Report information
The Basics
Id: 58537
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Win32API-Net

People
Owner: Nobody in particular
Requestors: DAMI [...] cpan.org
YSAWANT [...] cpan.org
Cc: deepakcoep [...] gmail.com
dilip.s.jha [...] gmail.com
prasadjoshi124 [...] gmail.com
sameer.sahoo007 [...] gmail.com
AdminCc:

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



Subject: CAST in lvalue : compilation error under gcc 4.4.3
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).
20 Jun 2010 Sun, 03:57:56 tarihinde, DAMI yazdı: Show quoted text
> Win32API-Net fails to compile under gcc 4.4.3 (and hence under
Strawberry Show quoted text
> 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
CC: prasadjoshi124 [...] gmail.com, dilip.s.jha [...] gmail.com, sameer.sahoo007 [...] gmail.com, deepakcoep [...] gmail.com
Subject: Failed to install Win32API::Net with Strawberry Perl 5.12.1
Hi, I could not install Win32API::Net with Strawberry Perl 5.12.1, please see error listed below. I am running Win XP 2.16 Professional Version 2002 Service Pack 3 C:\>perl -MCPAN -e "install Win32API::Net" Database was generated on Thu, 06 Jan 2011 07:06:29 GMT Running install for module 'Win32API::Net' Running make for J/JD/JDB/Win32API-Net-0.14.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\J\JD\JDB\Win32API-Net-0.14.ta r.gz ok CPAN.pm: Going to build J/JD/JDB/Win32API-Net-0.14.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Win32API::Net cp Net.pm blib\lib\Win32API\Net.pm C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap Net.xs > Net.xsc && C:\strawberry\perl \bin\perl.exe -MExtUtils::Command -e "mv" -- Net.xsc Net.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPL ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVC RT_READFIX -s -O2 -DVERSION=\"0.14\" -DXS_VERSION=\"0.14\" "-IC:\str awberry\perl\lib\CORE" Net.c Net.xs: In function 'allocUserInfoX': Net.xs:631: error: lvalue required as left operand of assignment Net.xs:631: error: lvalue required as left operand of assignment Net.xs:660: error: lvalue required as left operand of assignment Net.xs:660: error: lvalue required as left operand of assignment Net.xs:750: error: lvalue required as left operand of assignment Net.xs:750: error: lvalue required as left operand of assignment dmake.EXE: Error code 129, while making 'Net.o' JDB/Win32API-Net-0.14.tar.gz C:\strawberry\c\bin\dmake.EXE -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible C:\> Thanks, Yogesh Sawant
Fixed in Win32API-Net-0.15 which is on its way to CPAN right now.
Hi, Thanks for fixing the errors, I could install Win32API::Net. Thanks, Yogesh Sawant