Discussion:
[perl #125718] [META] U64/I64 now exposed beyond PERL_CORE
Jarkko Hietaniemi (via RT)
2015-07-29 12:59:50 UTC
Permalink
# New Ticket Created by Jarkko Hietaniemi
# Please include the string: [perl #125718]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125718 >


In http://perl5.git.perl.org/perl.git/commit/16d89be8 I (jhi) exposed the U64/I64 to anyone, not just PERL_CORE.

This is a meta ticket for any CPAN breakages caused by this: because of the long history, some XS might have
workarounds for the lack of U64/I64.
Jarkko Hietaniemi via RT
2015-08-12 13:25:56 UTC
Permalink
Not a CPAN breakage directly, but net-snmp breakage, noticed by Mathieu Arnold <***@freebsd.org>

What happened was that the SNMP code has its own U64 which was a struct of two ulongs {hi, lo}; probably to emulate a 64-bit int in 32-bit lands.

The workaround which was tested to work was to add

+#ifdef U64TYPE
+#define U64 U64pairU32
+#endif

before any

#include <net-snmp/net-snmp-config.h>

in any code using the Perl headers.

Mathieu submitted a patch for net-snmp for this:

http://sourceforge.net/p/net-snmp/patches/1307/


---
via perlbug: queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=125718

Loading...