develooper Front page | perl.libwin32 | Postings from January 2011

[rt.cpan.org #64577] Won't compile on Strawberry Perl 64 bit

From:
Haiko Strotbek via RT
Date:
January 7, 2011 07:27
Subject:
[rt.cpan.org #64577] Won't compile on Strawberry Perl 64 bit
Message ID:
rt-3.8.HEAD-19315-1294414035-1882.64577-15-0@rt.cpan.org
Fri Jan 07 10:27:15 2011: Request 64577 was acted upon.
Transaction: Ticket created by haiko@strotbek.com
       Queue: Win32-Daemon
     Subject: Won't compile on Strawberry Perl 64 bit
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: haiko@strotbek.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=64577 >


Hi,

when I'm trying to compile Win32::Daemon on a 64 bit edition of
Strawberry Perl there are two errors preventing a successful installation:


Daemon.xs:1355: error: cast from 'void*' to 'DWORD' loses precision

Daemon.xs:2225: error: cast from 'SERVICE_STATUS_HANDLE__*' to 'DWORD'
loses precision


I was able to get around the problem by replacing

Daemon.xs:1355 by
RETVAL = PTR2IV(ghServiceThread);

and Daemon.xs:2225 by
RETVAL = PTR2IV(ghService);

It seems to work for me but I think the return type of functions should
also be changed to T_PTR or any other 64 bit capable type.


Regards

Haiko Strotbek




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