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