Bug#190887: the "sizeof" hash is missing

2018-02-22 Thread Declercq Laurent

This is a far long outstanding issue indeed.

Well, one way could be to build the %sizeof hash through a C program. We 
are doing that for us.


For instance: 
https://github.com/i-MSCP/imscp/tree/hotfixes/engine/PerlLib/h2ph


--

Laurent Declercq
iHMS/i-MSCP CEO & Lead Developer



This message and any attachment are intended solely for the addressees 
and are
confidential. iHMS/i-MSCP, including any part representing these 
entities may
not be held responsible for their contents whose accuracy and 
completeness cannot
be guaranteed over the Internet. Unauthorized use, disclosure, 
distribution, copying,
or any part thereof is strictly prohibited. If you are not the intended 
recipient of

this message, please notify the sender immediately and delete it.


<>

Bug#190887: the sizeof hash is missing

2012-11-10 Thread Celelibi
Hi,

Almost 10 years later this bug still exists and still bother a few
people every once in a while... Including me these last days. :)
If perl developers arn't willing to patch h2ph to generate a %sizeof
hash, I think debian could (at least) patch the .ph files it
distributes.

Moreover, a portable way to define %sizeof for simple types could be
something like:

our %sizeof = (
'int' = length(pack(i!, 0)),
'unsigned int' = length(pack(I!, 0))
);

However, I don't see any automatic way to determine the size of
structures like 'struct termios', which is used by a few ioctl.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org